Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/gohugoio/hugo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/parser
AgeCommit message (Collapse)Author
2016-09-11parser: Use strings.Contains instead of strings.Indexbogem
Closes #2400
2016-09-11parser: Simplify err conditionsbogem
2016-08-20Switch to a more up to date TOML libraryBjørn Erik Pedersen
Fixes #2089
2016-07-14Update frontmatter.goHenrique Dias
2016-04-26Export "detectFrontMatter" to fix caddy-hugoHenrique Dias
Closes #2108
2016-04-14Chomp Unicode BOM if presentMattias 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-24parser: Remove unused varsBjørn Erik Pedersen
2016-03-23parser: Make the constant vars ... constantsBjørn Erik Pedersen
2016-03-23parser: Fix ALL_CAPS var names in testBjørn Erik Pedersen
2016-03-23parser: Spring code cleaningBjørn Erik Pedersen
2016-03-14parser: Unexport some internalsBjørn Erik Pedersen
2016-03-14parser: Remove unused codeBjørn Erik Pedersen
2016-02-13Fix spelling and go vet errorsDerek Perkins
2015-12-11Add copyright header to that source files that don’t have one.Anthony Fok
See #1646
2015-12-07Fix copyright headers in source filesBjørn Erik Pedersen
Still need to add some missing headers and an AUTHORS file. See #1646
2015-11-24Change the license to Apache 2.0Steve Francia
2015-09-25Allow for any (short) line begining or ending with html commentSven Dowideit
Fixes #1428
2015-08-19Fix typo, "delemiters" -> "delimiters"Icaro Seara
2015-08-03Fix searching YAML/TOML delimiters in frontmatterTatsushi 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-02Trim trailing spaces from YAML and TOML delimitersJeff 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-09Update test logs for uniformity and consistencybep
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-09add undraft commandJoel Scoble
2015-03-11Correct initialisms as suggested by golintAnthony 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-11parser: add some frontmatter test casesbep
2015-03-07parser: apply some Golint rulesbep
2015-01-24Upgrade from gopkg.in/yaml.v1 to gopkg.in/yaml.v2Anthony Fok
2015-01-10Fix "hugo new" EOF error with an archetype file without the final EOLTatsushi 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-18switch to new location of goyamlAndrew Gerrand
2014-05-09Adding new commands (new site [path], new theme [name])spf13
2014-05-02adding a front matter format to lead rune methodspf13
2014-05-01moving front matter parsing (and creation) to parse packagespf13
2014-03-01Fixing issues go vet reports.Mike Keesey
2014-02-19Call the json delimiter 'json_lead' instead of 'java_lead'Ask Bjørn Hansen
2013-12-28Allowing empty files (ignored) so you can touch a new file while watchingspf13
2013-12-28Don't shutdown hugo on an empty file.Egon Elbre
2013-10-02Switching to the rjson library which is more friendly to human generated json.spf13
2013-09-18Add IsRenderable to PageNoah 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-18Fix parsing edge case of frontmatterNoah Campbell
When the frontmatter contains a - (or other delimiter) close to the closing frontmatter delimiter, frontmatter detection would fail.
2013-09-18Merge remote-tracking branch 'origin/parser' into mrg_praserNoah Campbell
Also brought in parse for github.com/noahcampbell/akebia Conflicts: hugolib/page.go hugolib/page_test.go