Commit graph

4332 commits

Author SHA1 Message Date
VonC
49b8ac5fbc Make sure hugo --version prints the version and does *nothing* else.
Any program, when asks to print their version, only prints that, and then
stops.
hugo checks the config (and prints a warning message if not found), and
proceeds to generate the site!
Yet, the user just wanted to check the version.

This patch makes sure hugo stops after printing the version.
2013-08-08 22:21:56 +02:00
spf13
a870f4d955 Fixing missing trailing slash in baseUrl 2013-08-08 12:30:01 +01:00
Steve Francia
d89c7ec7a2 Merge pull request #19 from nsabine/master
Populated page Site metadata.  Enables accessing Indexes from Page template.
2013-08-07 14:05:07 -07:00
Nick Sabine
780e2f311b Populated page Site metadata. Enables accessing Indexes from Page template. 2013-08-07 14:23:24 -04:00
Steve Francia
42de9bd8bb Merge pull request #15 from hhatto/update-doc
update document for content directory
2013-08-06 08:05:18 -07:00
spf13
0e57fcc9c2 Merge branch 'master' of github.com:spf13/hugo 2013-08-06 01:10:10 +02:00
spf13
783f0d6154 fixing badlink on homepage 2013-08-06 01:06:59 +02:00
spf13
6789b6c5ce removing erroneous debugging output 2013-08-06 01:05:50 +02:00
Hideo Hattori
78afe8d344 update document for content directory 2013-08-06 03:14:40 +09:00
Steve Francia
c5715e9800 Merge pull request #12 from imrehg/docfix
Fix example in docs that wouldn't work in practice
2013-08-05 07:13:42 -07:00
Gergely Imreh
f31ec3c280 Fix example in docs that wouldn't work in practice
The pflag package used in hugo has to use the "=" sign
for double dash options such as --source. Thus the original
example `--source ~/mysite` is already incorrect. Adding
the = sign though woul not fix things in this case, since
`--source=~/mysite` does not get resolved to /home/username/mysite,
but looks for the ./~/mysite directory within the current directory.

To resolve this, either the directory name has to be changed in
the docs not to use the "~" sign, or have to change to use the
single dash version of the command line flag. The latter seems
to be more in line with the rest of the example.

Leaving `--watch` as a double dash option to minimize the change,
though it could be either way, since the follow up example uses
the single dash version of both.
2013-08-05 21:45:01 +08:00
spf13
de9f9ae16e Fixing getting started link. 2013-08-05 11:12:39 +02:00
Steve Francia
57b206ca11 Merge pull request #11 from noahcampbell/master
Removing OSX files from repo.  Updating .gitignore to not track these files
2013-08-03 07:29:16 -07:00
spf13
f6e590e536 Fixing link to contributor page on github 2013-08-03 03:33:39 -04:00
spf13
6a1a038c57 Shrinking the readme to just the basics to avoid dupe with doc site 2013-08-03 03:31:25 -04:00
spf13
6efbd93a38 Updating a bunch of the docs 2013-08-03 03:30:34 -04:00
spf13
def5f10183 Including documentation on indexes 2013-08-03 03:29:49 -04:00
spf13
dff86cb22c Renaming indexes template to indexes.html 2013-08-03 03:29:24 -04:00
spf13
21a7b72535 Moved static content to /static 2013-08-03 03:10:14 -04:00
spf13
52c089ffbd Added support for indexes of indexes & ordered indexes 2013-08-03 03:09:28 -04:00
spf13
ddad1e04ac adding previous next capabilities 2013-08-02 16:30:26 -04:00
Noah Campbell
66610a65d1 Removing OSX files from repo. Updating .gitignore to not track these files. 2013-08-02 10:00:25 -07:00
Steve Francia
d36d7fba6a Merge pull request #8 from SebastianM/doc-json-fix
Fix JSON syntax error in example configuration
2013-08-01 22:04:03 -07:00
Steve Francia
47783c1f03 Merge pull request #10 from noahcampbell/master
Fixed section labels causing panic on windows.
2013-08-01 22:00:58 -07:00
Noah Campbell
3e539c7126 Adding error message when no content pages exists. 2013-08-01 13:27:56 -07:00
Noah Campbell
03e804ffd2 Updating the .gitignore for windows and vim users.
Adding hugo.exe for us windows fanbois.  Also adding gvim support.
2013-08-01 13:27:56 -07:00
Noah Campbell
c9a09418e7 Fixed section labels causing panic on windows.
The filename path was being split using a unix specific path seperator.  This fix uses the os.PathSeperator to ensure proper evaluation regardless of platform.
2013-08-01 13:27:56 -07:00
Sebastian Müller
4efdb90943 Fix JSON syntax error in example configuration 2013-08-01 20:52:00 +02:00
spf13
61258858af copying static content to destination 2013-07-30 01:26:02 -04:00
spf13
736677a21d Using MkdirAll instead of my own logic 2013-07-26 18:10:03 -04:00
spf13
7ab28c564f Adding support for destination dir, split out static 2013-07-26 18:06:13 -04:00
spf13
92c31bbe10 permalink now respects pretty urls 2013-07-26 09:56:00 -04:00
spf13
d5f5543061 create content at any level of nesting 2013-07-26 09:28:26 -04:00
spf13
e08d14ad49 fixing issue with some urls missing '/' 2013-07-26 09:27:22 -04:00
spf13
b7bbc28caf fixing bug with server not finding right path 2013-07-26 09:25:30 -04:00
spf13
c560a7537a adding more verbose output to server functionality 2013-07-26 09:24:35 -04:00
spf13
b2385f062a create missing directories recurisvely 2013-07-26 09:22:23 -04:00
spf13
dd9a7e6455 Fixing headers in readme 2013-07-24 11:47:58 -04:00
spf13
16b1f284ca Improving installation instructions 2013-07-24 11:43:23 -04:00
spf13
f2e4c9d709 Merge branch 'master' of github.com:spf13/hugo 2013-07-24 11:27:48 -04:00
spf13
3ad3f2f0e0 Merge branch 'doc-fix' of https://github.com/brandonblack/hugo into brandonblack-doc-fix
Conflicts:
	README.md
2013-07-24 11:27:03 -04:00
Brandon Black
580bb9bb5b minor: adding some more instructions for building from source 2013-07-22 14:40:45 -07:00
Steve Francia
2dde27f0dc Update README.md
fixing typo in readme.
2013-07-21 00:51:39 -04:00
spf13
627cf26571 Adding proper command line option parsing 2013-07-19 00:38:24 -07:00
spf13
8fae5f0dd6 Default is now pretty urls (without .html)
Adding --uglyurls option to retain previous behavior
2013-07-19 00:10:42 -07:00
spf13
dcd8ff716a Adding better source build instructions 2013-07-18 22:30:55 -07:00
spf13
f199004989 GO -> Go 2013-07-15 17:44:51 -07:00
spf13
8d50dd9160 fixing typo in config readme 2013-07-11 23:29:14 -04:00
spf13
c24112ce86 Render shortcodes before index and section rss feeds 2013-07-11 23:26:03 -04:00
spf13
649560fca2 proper BaseUrl handling (if has trailing slash or not) 2013-07-11 22:55:07 -04:00