shithub: hugo

Download patch

ref: 6fda9012d6e1e17366000d0218297099751e5f6a
parent: 6c5a7b7b6436e2aa99189f60c5aae27d0ff694c3
author: Dan Hersam <[email protected]>
date: Sun Jan 11 18:05:32 EST 2015

Fixed error in tutorial, added site variable docs

While following the github pages tutorial I found some issues. These are
the commands I ran that worked.

Added site variables to the docs from the code.

--- a/docs/content/templates/variables.md
+++ b/docs/content/templates/variables.md
@@ -79,7 +79,7 @@
 
 Also available is `.Site` which has the following:
 
-**.Site.BaseUrl** The base URL for the site as defined in the config.json file.<br>
+**.Site.BaseUrl** The base URL for the site as defined in the site configuration file.<br>
 **.Site.Taxonomies** The indexes for the entire site.<br>
 **.Site.LastChange** The date of the last change of the most recent content.<br>
 **.Site.Recent** Array of all content ordered by Date, newest first.<br>
@@ -90,3 +90,15 @@
     [params]
       description = "Tesla's Awesome Hugo Site"
       author = "Nikola Tesla"
+**.Site.Sections** Top level directories of the site.<br>
+**.Site.Pages** All of the content pages of the site.<br>
+**.Site.Files** All of the source files of the site.<br>
+**.Site.Menus** All of the menus in the site.<br>
+**.Site.Title** A string representing the title of the site.<br>
+**.Site.Author** A map of the authors as defined in the site configuration.<br>
+**.Site.LanguageCode** A string representing the language as defined in the site configuration.<br>
+**.Site.DisqusShortname** A string representing the shortname of the Disqus shortcode as defined in the site configuration.<br>
+**.Site.Copyright** A string representing the copyright of your web site as defined in the site configuration.<br>
+**.Site.LastChange** A string representing the last time content has been updated.<br>
+**.Site.Permalinks** A string to override the default permalink format. Defined in the site configuration.<br>
+**.Site.BuildDrafts** A boolean (Default: false) to indicate whether to build drafts. Defined in the site configuration.<br>
--- a/docs/content/tutorials/github_pages_blog.md
+++ b/docs/content/tutorials/github_pages_blog.md
@@ -128,10 +128,10 @@
     rm -rf public
 
     # Add the gh-pages branch of the repository. It will look like a folder named public
-    git subtree add --prefix public [email protected]:spencerlyon2/hugo_gh_blog.git gh-pages --squash
+    git subtree add --prefix=public [email protected]:spencerlyon2/hugo_gh_blog.git gh-pages --squash
 
     # Pull down the file we just committed. This helps avoid merge conflicts
-    git subtree pull --prefix=public
+    git subtree pull --prefix=public [email protected]:spencerlyon2/hugo_gh_blog.git gh-pages
 
     # Run hugo. Generated site will be placed in public directory (or omit -t ThemeName if you're not using a theme)
     hugo -t ThemeName