8d28686edc
Trim trailing spaces from YAML and TOML delimiters
...
When someone hits space after typing "---" (or "+++") but before they
hit return, hugo silently failed to parse the file. This corrects that.
2015-08-02 14:46:46 +02:00
b4871787f0
add undraft command
2015-05-08 22:18:51 -04:00
63ffb916d6
parser: apply some Golint rules
2015-03-07 12:59:04 +01:00
78e9229c52
Fix "hugo new" EOF error with an archetype file without the final EOL
...
This rewrites `extractFrontMatterDelims` function to make it work with
an archetype file without the final EOL and adds more detailed error
messages and comments.
It also removes `matches` and `matches_quick` functions which aren't
called anywhere.
2015-01-10 19:48:35 +01:00
cbd9506c29
moving front matter parsing (and creation) to parse package
2014-05-01 13:20:09 -04:00
2540d884d8
Fixing issues go vet reports.
2014-03-01 09:56:17 -05:00
1dbed5ee06
Call the json delimiter 'json_lead' instead of 'java_lead'
2014-02-18 18:44:27 -05:00
1c60d5bf20
Don't shutdown hugo on an empty file.
2013-12-28 13:47:21 -05:00
67b2abaf09
Add IsRenderable to Page
...
As pages are read from the target, they will be assessed if they should
be rendered or not. The logic for IsRenderable is in the parser/page.go
and looks for anything exception '<'.
2013-09-18 10:17:43 -07:00
d8e1834910
Fix parsing edge case of frontmatter
...
When the frontmatter contains a - (or other delimiter) close to the
closing frontmatter delimiter, frontmatter detection would fail.
2013-09-18 09:15:46 -07:00
a82efe5bb1
Merge remote-tracking branch 'origin/parser' into mrg_praser
...
Also brought in parse for github.com/noahcampbell/akebia
Conflicts:
hugolib/page.go
hugolib/page_test.go
2013-09-17 15:52:40 -07:00