brevno-suite/hugo
11 years agoComplete overhaul of the docs
spf13 [Sat, 17 Aug 2013 12:34:25 +0000 (08:34 -0400)]
Complete overhaul of the docs

11 years agoMerge pull request #40 from VonC/clarify_uglyurls_flag
Steve Francia [Sat, 17 Aug 2013 13:35:31 +0000 (06:35 -0700)]
Merge pull request #40 from VonC/clarify_uglyurls_flag

Clarify uglyurls flag.

11 years agoClarify uglyurls flag.
VonC [Wed, 14 Aug 2013 08:53:41 +0000 (10:53 +0200)]
Clarify uglyurls flag.

Mention more clearly that, for generating `/filename.html`, you need to
set the `uglyurls` flag to `true`.

11 years agoMerge branch 'master' of github.com:spf13/hugo
spf13 [Wed, 14 Aug 2013 14:19:59 +0000 (10:19 -0400)]
Merge branch 'master' of github.com:spf13/hugo

11 years agoFurther work on path/section stuff. Tests passing now.
spf13 [Wed, 14 Aug 2013 12:57:14 +0000 (08:57 -0400)]
Further work on path/section stuff. Tests passing now.

11 years agoMerge pull request #38 from noahcampbell/workflow_dotfile
Steve Francia [Wed, 14 Aug 2013 03:03:18 +0000 (20:03 -0700)]
Merge pull request #38 from noahcampbell/workflow_dotfile

Workflow dotfile

11 years agoNow support for nested paths. Better section detection.
spf13 [Tue, 13 Aug 2013 23:39:24 +0000 (19:39 -0400)]
Now support for nested paths. Better section detection.

11 years agoMerge branch 'master' of github.com:spf13/hugo
spf13 [Tue, 13 Aug 2013 14:47:58 +0000 (10:47 -0400)]
Merge branch 'master' of github.com:spf13/hugo

11 years agoMerge pull request #37 from noahcampbell/master
Steve Francia [Tue, 13 Aug 2013 14:44:43 +0000 (07:44 -0700)]
Merge pull request #37 from noahcampbell/master

Test GetParam and the various incarnations of frontmatter.

11 years agoMerge pull request #31 from cactus/issue-31
Steve Francia [Tue, 13 Aug 2013 14:44:00 +0000 (07:44 -0700)]
Merge pull request #31 from cactus/issue-31

sanitizeRegex chopping dots

11 years agoAdding support for a default content type template
spf13 [Tue, 13 Aug 2013 13:23:43 +0000 (09:23 -0400)]
Adding support for a default content type template
default template found at layouts/_default/single.html

11 years agoAdding support for recent content.
spf13 [Tue, 13 Aug 2013 12:43:42 +0000 (08:43 -0400)]
Adding support for recent content.

11 years agoIgnore dotfiles in content directory
Noah Campbell [Mon, 12 Aug 2013 23:10:38 +0000 (16:10 -0700)]
Ignore dotfiles in content directory

This supports my personal workflow of using vim which places a temporary file in the same directory as the file I'm editing.

11 years agogofmt pass
Noah Campbell [Tue, 13 Aug 2013 03:38:37 +0000 (20:38 -0700)]
gofmt pass

Clean up test files.

11 years agoTest GetParam and the various incarnations of frontmatter.
Noah Campbell [Tue, 13 Aug 2013 00:14:54 +0000 (17:14 -0700)]
Test GetParam and the various incarnations of frontmatter.

11 years agomove "dot" in regex to avoid it being part of a range
elij [Tue, 13 Aug 2013 02:55:52 +0000 (19:55 -0700)]
move "dot" in regex to avoid it being part of a range

11 years agoMerge pull request #32 from cactus/issue-32
Steve Francia [Tue, 13 Aug 2013 02:42:44 +0000 (19:42 -0700)]
Merge pull request #32 from cactus/issue-32

indexes rss.xml has wrong permalinks with ugly urls off

11 years agofix sanitizeRegex to not strip "dots"
elij [Tue, 13 Aug 2013 02:02:43 +0000 (19:02 -0700)]
fix sanitizeRegex to not strip "dots"

sanitizeRegex was stripping dots in permalinks when generating
RenderIndexes (noted during feed/rss generation).

permalink was being set to `.../indexxml` instead of `.../index.xml`.

Adding "dot" to the regex whitelist fixed the issue.

11 years agofix bad tab/space due to paste
elij [Tue, 13 Aug 2013 02:01:23 +0000 (19:01 -0700)]
fix bad tab/space due to paste

11 years agofix wrong renderlist feed permalink
elij [Tue, 13 Aug 2013 01:51:01 +0000 (18:51 -0700)]
fix wrong renderlist feed permalink

when not using ugly urls, the feed permalink does not end up in the
expected location, and instead always behaves as if using ugly urls.

this fixes that behavior and inserts the feed xml file into the
directory as index.xml.

fixes #32

11 years agoMerge pull request #36 from noahcampbell/master
Steve Francia [Mon, 12 Aug 2013 22:36:06 +0000 (15:36 -0700)]
Merge pull request #36 from noahcampbell/master

Use / for template names regardless of platform.

11 years agoUse / for template names regardless of platform.
Noah Campbell [Mon, 12 Aug 2013 20:57:47 +0000 (13:57 -0700)]
Use / for template names regardless of platform.

The path seperator was causing templates to not be loaded on windows.
Now all template names use / internally.

11 years agoMerge pull request #35 from noahcampbell/master
Steve Francia [Mon, 12 Aug 2013 21:43:56 +0000 (14:43 -0700)]
Merge pull request #35 from noahcampbell/master

Address the time parsing issue.

11 years agoSupport for non-standard formats.
Noah Campbell [Mon, 12 Aug 2013 21:13:31 +0000 (14:13 -0700)]
Support for non-standard formats.

Forgot to include existing formats.  Integration tests include new
format.

11 years agoMove timezone tests to integration test.
Noah Campbell [Mon, 12 Aug 2013 16:41:41 +0000 (09:41 -0700)]
Move timezone tests to integration test.

Interacting with timezones will result in checks against the filesystem.
This access, by definition, is an integration test.  Creating a
*integration_test.go file will signify this change.

When interacting with Travis-ci.org, the ubuntu boxes plus go 1.1 do not
seem to support shortcode timezones, think PST.  In this case, the tests
are skipped.  This is not ideal, but the IRC #go-nuts channel has
indicated timezone support is still lacking.  We should advise users of
hugo that timezone support may be an issue and report any odd behavior.
The workaround is to use numeric timezones (-08:00 for PST, etc.)

11 years agoAdd additional details to date test cases.
Noah Campbell [Mon, 12 Aug 2013 04:03:04 +0000 (21:03 -0700)]
Add additional details to date test cases.

11 years agoProvide better support for various date formats.
Noah Campbell [Mon, 12 Aug 2013 03:34:54 +0000 (20:34 -0700)]
Provide better support for various date formats.

Fixes #30 as long as the date is well formatted.

11 years agoAvoid error if no content.
VonC [Mon, 12 Aug 2013 12:31:24 +0000 (14:31 +0200)]
Avoid error if no content.

The homepage should still be generated.
This is useful especially in the beginning, where you start just with
the homepage.

11 years agoMerge pull request #26 from noahcampbell/master
Steve Francia [Sun, 11 Aug 2013 14:23:08 +0000 (07:23 -0700)]
Merge pull request #26 from noahcampbell/master

Add support for continuous testing.

11 years agoStarted new release notes, added nitro step for aliases
spf13 [Sat, 10 Aug 2013 14:44:22 +0000 (15:44 +0100)]
Started new release notes, added nitro step for aliases

11 years agoAdding correct canonical link to alias pages
spf13 [Sat, 10 Aug 2013 14:41:10 +0000 (15:41 +0100)]
Adding correct canonical link to alias pages

11 years agoAdding support for aliases (redirects)
spf13 [Sat, 10 Aug 2013 14:35:34 +0000 (15:35 +0100)]
Adding support for aliases (redirects)

11 years agoMerge branch 'redirect' of https://github.com/rozza/hugo into rozza-redirect
spf13 [Sat, 10 Aug 2013 13:08:38 +0000 (14:08 +0100)]
Merge branch 'redirect' of https://github.com/rozza/hugo into rozza-redirect

Conflicts:
hugolib/page.go

11 years agoAdd support for continuous testing.
Noah Campbell [Sat, 10 Aug 2013 01:24:42 +0000 (18:24 -0700)]
Add support for continuous testing.

Using travis-ci.org

11 years agoMerge branch 'master' of github.com:spf13/hugo
spf13 [Sat, 10 Aug 2013 01:07:35 +0000 (02:07 +0100)]
Merge branch 'master' of github.com:spf13/hugo

Conflicts:
hugolib/site.go

11 years agoMerge pull request #25 from noahcampbell/master
Steve Francia [Sat, 10 Aug 2013 01:01:51 +0000 (18:01 -0700)]
Merge pull request #25 from noahcampbell/master

Internal API changes and introduce testing.

11 years agoBetter reporting when the template is missing.
Noah Campbell [Thu, 8 Aug 2013 00:34:17 +0000 (17:34 -0700)]
Better reporting when the template is missing.

11 years agoNitro timer is encapsulated.
Noah Campbell [Thu, 8 Aug 2013 00:21:22 +0000 (17:21 -0700)]
Nitro timer is encapsulated.

Remove the need for NewSite by relying on appropriate defaults.  Renamed
site.c to site.Config to allow Sites to be created outside the package.

11 years agoAdding more test cases
Noah Campbell [Wed, 7 Aug 2013 06:04:49 +0000 (23:04 -0700)]
Adding more test cases

11 years agoAdding benchmark for parsing pages using unicode.
Noah Campbell [Tue, 6 Aug 2013 23:29:49 +0000 (16:29 -0700)]
Adding benchmark for parsing pages using unicode.

The resulting comparsion is not equal because NewPage reads the file each time where ReadFrom just reads a buffer in memory.

11 years agoAdding ability to read from io.Reader
Noah Campbell [Mon, 5 Aug 2013 14:53:58 +0000 (07:53 -0700)]
Adding ability to read from io.Reader

This allows for testing without relying on the file system.  Parsing algorithm to not read the entire file into memory.

11 years agoIntroduce unit testing for page.go
Noah Campbell [Mon, 5 Aug 2013 02:02:15 +0000 (19:02 -0700)]
Introduce unit testing for page.go

11 years agoRemove unreachable code path.
Noah Campbell [Sat, 3 Aug 2013 17:14:24 +0000 (10:14 -0700)]
Remove unreachable code path.

11 years agoUsing a composite literal to create a page.
Noah Campbell [Sat, 3 Aug 2013 17:52:40 +0000 (10:52 -0700)]
Using a composite literal to create a page.

Wonder why the need for composite structs.  Not sure if my go knowledge is lacking or if this is cruft from other programming language doctrine.

11 years agoSupport pages without folders
Noah Campbell [Sat, 3 Aug 2013 17:51:21 +0000 (10:51 -0700)]
Support pages without folders

11 years agoProvide better error handling
Noah Campbell [Fri, 2 Aug 2013 23:48:09 +0000 (16:48 -0700)]
Provide better error handling

Change the method signatures to follow the check ok pattern.

11 years agoAdd redirect to page parameters and redirects example
Ross Lawley [Fri, 9 Aug 2013 20:35:23 +0000 (21:35 +0100)]
Add redirect to page parameters and redirects example

11 years agoMerge pull request #22 from nsabine/master
Steve Francia [Fri, 9 Aug 2013 09:16:10 +0000 (02:16 -0700)]
Merge pull request #22 from nsabine/master

Added examples to indexes.md

11 years agoMerge pull request #21 from duncanbeevers/master
Steve Francia [Fri, 9 Aug 2013 09:15:50 +0000 (02:15 -0700)]
Merge pull request #21 from duncanbeevers/master

Added .Content variable to docs

11 years agoAdded examples to indexes.md
Nick Sabine [Fri, 9 Aug 2013 04:10:35 +0000 (00:10 -0400)]
Added examples to indexes.md

11 years agoAdded .Content variable to docs
Duncan Beevers [Thu, 8 Aug 2013 23:13:03 +0000 (16:13 -0700)]
Added .Content variable to docs

11 years agoMerge pull request #20 from VonC/version
Steve Francia [Thu, 8 Aug 2013 22:52:50 +0000 (15:52 -0700)]
Merge pull request #20 from VonC/version

Make sure hugo --version prints the version and does *nothing* else.

11 years agoMake sure hugo --version prints the version and does *nothing* else.
VonC [Thu, 8 Aug 2013 20:18:37 +0000 (22:18 +0200)]
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.

11 years agoFixing missing trailing slash in baseUrl
spf13 [Thu, 8 Aug 2013 11:30:01 +0000 (12:30 +0100)]
Fixing missing trailing slash in baseUrl

11 years agoMerge pull request #19 from nsabine/master
Steve Francia [Wed, 7 Aug 2013 21:05:07 +0000 (14:05 -0700)]
Merge pull request #19 from nsabine/master

Populated page Site metadata.  Enables accessing Indexes from Page template.

11 years agoPopulated page Site metadata. Enables accessing Indexes from Page template.
Nick Sabine [Wed, 7 Aug 2013 18:23:24 +0000 (14:23 -0400)]
Populated page Site metadata.  Enables accessing Indexes from Page template.

11 years agoMerge pull request #15 from hhatto/update-doc
Steve Francia [Tue, 6 Aug 2013 15:05:18 +0000 (08:05 -0700)]
Merge pull request #15 from hhatto/update-doc

update document for content directory

11 years agoMerge branch 'master' of github.com:spf13/hugo
spf13 [Mon, 5 Aug 2013 23:10:10 +0000 (01:10 +0200)]
Merge branch 'master' of github.com:spf13/hugo

11 years agofixing badlink on homepage
spf13 [Mon, 5 Aug 2013 23:06:59 +0000 (01:06 +0200)]
fixing badlink on homepage

11 years agoremoving erroneous debugging output
spf13 [Mon, 5 Aug 2013 23:05:50 +0000 (01:05 +0200)]
removing erroneous debugging output

11 years agoupdate document for content directory
Hideo Hattori [Mon, 5 Aug 2013 18:14:40 +0000 (03:14 +0900)]
update document for content directory

11 years agoMerge pull request #12 from imrehg/docfix
Steve Francia [Mon, 5 Aug 2013 14:13:42 +0000 (07:13 -0700)]
Merge pull request #12 from imrehg/docfix

Fix example in docs that wouldn't work in practice

11 years agoFix example in docs that wouldn't work in practice
Gergely Imreh [Mon, 5 Aug 2013 13:45:01 +0000 (21:45 +0800)]
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.

11 years agoFixing getting started link.
spf13 [Mon, 5 Aug 2013 09:12:39 +0000 (11:12 +0200)]
Fixing getting started link.

11 years agoMerge pull request #11 from noahcampbell/master v0.8
Steve Francia [Sat, 3 Aug 2013 14:29:16 +0000 (07:29 -0700)]
Merge pull request #11 from noahcampbell/master

Removing OSX files from repo.  Updating .gitignore to not track these files

11 years agoFixing link to contributor page on github
spf13 [Sat, 3 Aug 2013 07:33:39 +0000 (03:33 -0400)]
Fixing link to contributor page on github

11 years agoShrinking the readme to just the basics to avoid dupe with doc site
spf13 [Sat, 3 Aug 2013 07:31:25 +0000 (03:31 -0400)]
Shrinking the readme to just the basics to avoid dupe with doc site

11 years agoUpdating a bunch of the docs
spf13 [Sat, 3 Aug 2013 07:30:34 +0000 (03:30 -0400)]
Updating a bunch of the docs

11 years agoIncluding documentation on indexes
spf13 [Sat, 3 Aug 2013 07:29:49 +0000 (03:29 -0400)]
Including documentation on indexes

11 years agoRenaming indexes template to indexes.html
spf13 [Sat, 3 Aug 2013 07:29:24 +0000 (03:29 -0400)]
Renaming indexes template to indexes.html

11 years agoMoved static content to /static
spf13 [Sat, 3 Aug 2013 07:10:14 +0000 (03:10 -0400)]
Moved static content to /static

11 years agoAdded support for indexes of indexes & ordered indexes
spf13 [Sat, 3 Aug 2013 07:09:28 +0000 (03:09 -0400)]
Added support for indexes of indexes & ordered indexes

11 years agoadding previous next capabilities
spf13 [Fri, 2 Aug 2013 20:30:26 +0000 (16:30 -0400)]
adding previous next capabilities

11 years agoRemoving OSX files from repo. Updating .gitignore to not track these files.
Noah Campbell [Fri, 2 Aug 2013 17:00:25 +0000 (10:00 -0700)]
Removing OSX files from repo.  Updating .gitignore to not track these files.

11 years agoMerge pull request #8 from SebastianM/doc-json-fix
Steve Francia [Fri, 2 Aug 2013 05:04:03 +0000 (22:04 -0700)]
Merge pull request #8 from SebastianM/doc-json-fix

Fix JSON syntax error in example configuration

11 years agoMerge pull request #10 from noahcampbell/master
Steve Francia [Fri, 2 Aug 2013 05:00:58 +0000 (22:00 -0700)]
Merge pull request #10 from noahcampbell/master

Fixed section labels causing panic on windows.

11 years agoAdding error message when no content pages exists.
Noah Campbell [Thu, 1 Aug 2013 18:55:18 +0000 (11:55 -0700)]
Adding error message when no content pages exists.

11 years agoUpdating the .gitignore for windows and vim users.
Noah Campbell [Tue, 30 Jul 2013 23:27:23 +0000 (16:27 -0700)]
Updating the .gitignore for windows and vim users.

Adding hugo.exe for us windows fanbois.  Also adding gvim support.

11 years agoFixed section labels causing panic on windows.
Noah Campbell [Thu, 1 Aug 2013 20:27:07 +0000 (13:27 -0700)]
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.

11 years agoFix JSON syntax error in example configuration
Sebastian Müller [Thu, 1 Aug 2013 18:52:00 +0000 (20:52 +0200)]
Fix JSON syntax error in example configuration

11 years agocopying static content to destination
spf13 [Tue, 30 Jul 2013 05:26:02 +0000 (01:26 -0400)]
copying static content to destination

11 years agoUsing MkdirAll instead of my own logic
spf13 [Fri, 26 Jul 2013 22:10:03 +0000 (18:10 -0400)]
Using MkdirAll instead of my own logic

11 years agoAdding support for destination dir, split out static
spf13 [Fri, 26 Jul 2013 22:06:13 +0000 (18:06 -0400)]
Adding support for destination dir, split out static

11 years agopermalink now respects pretty urls
spf13 [Fri, 26 Jul 2013 13:51:07 +0000 (09:51 -0400)]
permalink now respects pretty urls

11 years agocreate content at any level of nesting
spf13 [Fri, 26 Jul 2013 13:28:26 +0000 (09:28 -0400)]
create content at any level of nesting

11 years agofixing issue with some urls missing '/'
spf13 [Fri, 26 Jul 2013 13:27:22 +0000 (09:27 -0400)]
fixing issue with some urls missing '/'

11 years agofixing bug with server not finding right path
spf13 [Fri, 26 Jul 2013 13:25:30 +0000 (09:25 -0400)]
fixing bug with server not finding right path

11 years agoadding more verbose output to server functionality
spf13 [Fri, 26 Jul 2013 13:24:35 +0000 (09:24 -0400)]
adding more verbose output to server functionality

11 years agocreate missing directories recurisvely
spf13 [Fri, 26 Jul 2013 13:22:23 +0000 (09:22 -0400)]
create missing directories recurisvely

11 years agoFixing headers in readme
spf13 [Wed, 24 Jul 2013 15:47:58 +0000 (11:47 -0400)]
Fixing headers in readme

11 years agoImproving installation instructions
spf13 [Wed, 24 Jul 2013 15:43:23 +0000 (11:43 -0400)]
Improving installation instructions

11 years agoMerge branch 'master' of github.com:spf13/hugo
spf13 [Wed, 24 Jul 2013 15:27:48 +0000 (11:27 -0400)]
Merge branch 'master' of github.com:spf13/hugo

11 years agoMerge branch 'doc-fix' of https://github.com/brandonblack/hugo into brandonblack...
spf13 [Wed, 24 Jul 2013 15:27:03 +0000 (11:27 -0400)]
Merge branch 'doc-fix' of https://github.com/brandonblack/hugo into brandonblack-doc-fix

Conflicts:
README.md

11 years agominor: adding some more instructions for building from source
Brandon Black [Mon, 22 Jul 2013 17:32:25 +0000 (10:32 -0700)]
minor: adding some more instructions for building from source

11 years agoUpdate README.md
Steve Francia [Sun, 21 Jul 2013 04:51:39 +0000 (00:51 -0400)]
Update README.md

fixing typo in readme.

11 years agoAdding proper command line option parsing
spf13 [Fri, 19 Jul 2013 07:38:24 +0000 (00:38 -0700)]
Adding proper command line option parsing

11 years agoDefault is now pretty urls (without .html)
spf13 [Fri, 19 Jul 2013 07:10:42 +0000 (00:10 -0700)]
Default is now pretty urls (without .html)
Adding --uglyurls option to retain previous behavior

11 years agoAdding better source build instructions
spf13 [Fri, 19 Jul 2013 05:27:21 +0000 (22:27 -0700)]
Adding better source build instructions

11 years agoGO -> Go
spf13 [Tue, 16 Jul 2013 00:44:51 +0000 (17:44 -0700)]
GO -> Go

11 years agofixing typo in config readme
spf13 [Fri, 12 Jul 2013 03:29:14 +0000 (23:29 -0400)]
fixing typo in config readme