Age | Commit message (Collapse) | Author | |
---|---|---|---|
2016-09-11 | parser: Use strings.Contains instead of strings.Index | bogem | |
Closes #2400 | |||
2016-09-11 | parser: Simplify err conditions | bogem | |
2016-08-20 | Switch to a more up to date TOML library | Bjørn Erik Pedersen | |
Fixes #2089 | |||
2016-07-14 | Update frontmatter.go | Henrique Dias | |
2016-04-26 | Export "detectFrontMatter" to fix caddy-hugo | Henrique Dias | |
Closes #2108 | |||
2016-04-14 | Chomp Unicode BOM if present | Mattias Wadman | |
Useful if using or sharing files with users that use editors that append a unicode byte order marker header (like Windows notepad). This will still assume files are UTF-8 encoded. Closes #2075 | |||
2016-03-24 | parser: Remove unused vars | Bjørn Erik Pedersen | |
2016-03-23 | parser: Make the constant vars ... constants | Bjørn Erik Pedersen | |
2016-03-23 | parser: Fix ALL_CAPS var names in test | Bjørn Erik Pedersen | |
2016-03-23 | parser: Spring code cleaning | Bjørn Erik Pedersen | |
2016-03-14 | parser: Unexport some internals | Bjørn Erik Pedersen | |
2016-03-14 | parser: Remove unused code | Bjørn Erik Pedersen | |
2016-02-13 | Fix spelling and go vet errors | Derek Perkins | |
2015-12-11 | Add copyright header to that source files that don’t have one. | Anthony Fok | |
See #1646 | |||
2015-12-07 | Fix copyright headers in source files | Bjørn Erik Pedersen | |
Still need to add some missing headers and an AUTHORS file. See #1646 | |||
2015-11-24 | Change the license to Apache 2.0 | Steve Francia | |
2015-09-25 | Allow for any (short) line begining or ending with html comment | Sven Dowideit | |
Fixes #1428 | |||
2015-08-19 | Fix typo, "delemiters" -> "delimiters" | Icaro Seara | |
2015-08-03 | Fix searching YAML/TOML delimiters in frontmatter | Tatsushi Demachi | |
When a YAML/TOML's delimiter character sequence is included in a frontmatter string, parser mistakes it as a delimiter. This fixes it by checking a character right before the delimiter sequence is '\n' or it is the beginning of the frontmatter. Fix #1320 | |||
2015-08-02 | Trim trailing spaces from YAML and TOML delimiters | Jeff Hodges | |
When someone hits space after typing "---" (or "+++") but before they hit return, hugo silently failed to parse the file. This corrects that. | |||
2015-05-09 | Update test logs for uniformity and consistency | bep | |
Many minor fixes to make test logs more consistent and correct a mispelling. Standardize on "[%i] got X but expected Y" for log messages. Using a consistent layout makes it easier to read the test results. This was mostly changing "Got" to "got". Swapped the order of values on several calls to bring them in line with the convention. A few log messages had a sequence number added to identify the exact scenario that failed. Otherwise, there would be no way to ascertain which failed When there are many scenarios. Correct spelling of "expected." Fixes #1028 Merged be2097e1ad789eca5d893805a059d94defbe5c48 [close #1040] | |||
2015-05-09 | add undraft command | Joel Scoble | |
2015-03-11 | Correct initialisms as suggested by golint | Anthony Fok | |
First step to use initialisms that golint suggests, for example: Line 116: func GetHtmlRenderer should be GetHTMLRenderer as see on http://goreportcard.com/report/spf13/hugo Thanks to @bep for the idea! Note that command-line flags (cobra and pflag) as well as struct fields like .BaseUrl and .Url that are used in Go HTML templates need more work to maintain backward-compatibility, and thus are NOT yet dealt with in this commit. First step in fixing #959. | |||
2015-03-11 | parser: add some frontmatter test cases | bep | |
2015-03-07 | parser: apply some Golint rules | bep | |
2015-01-24 | Upgrade from gopkg.in/yaml.v1 to gopkg.in/yaml.v2 | Anthony Fok | |
2015-01-10 | Fix "hugo new" EOF error with an archetype file without the final EOL | Tatsushi Demachi | |
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. | |||
2014-08-18 | switch to new location of goyaml | Andrew Gerrand | |
2014-05-09 | Adding new commands (new site [path], new theme [name]) | spf13 | |
2014-05-02 | adding a front matter format to lead rune method | spf13 | |
2014-05-01 | moving front matter parsing (and creation) to parse package | spf13 | |
2014-03-01 | Fixing issues go vet reports. | Mike Keesey | |
2014-02-19 | Call the json delimiter 'json_lead' instead of 'java_lead' | Ask Bjørn Hansen | |
2013-12-28 | Allowing empty files (ignored) so you can touch a new file while watching | spf13 | |
2013-12-28 | Don't shutdown hugo on an empty file. | Egon Elbre | |
2013-10-02 | Switching to the rjson library which is more friendly to human generated json. | spf13 | |
2013-09-18 | Add IsRenderable to Page | Noah Campbell | |
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 | Fix parsing edge case of frontmatter | Noah Campbell | |
When the frontmatter contains a - (or other delimiter) close to the closing frontmatter delimiter, frontmatter detection would fail. | |||
2013-09-18 | Merge remote-tracking branch 'origin/parser' into mrg_praser | Noah Campbell | |
Also brought in parse for github.com/noahcampbell/akebia Conflicts: hugolib/page.go hugolib/page_test.go |