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
AgeCommit message (Collapse)Author
2015-01-28Add .mailmap to get a more correct author logbep
2015-01-28ignore root path, no need strip traling slashfundon
2015-01-28Version uses binary name instead of hugoDan Hersam
On Windows the binary name is hugo.exe and running hugo version results in this error: GetFileAttributesEx D:\Dev\Go\gopath\bin\hugo: The system cannot find the file specified. This fixes that error and allows the binary name to be something other than hugo on any OS.
2015-01-28Added three videos to documentation.Dan Hersam
Created shortcode for YouTube videos and made the videos responsive in the stylesheet.
2015-01-28Use runtime.GOOS to identify Windows specific path testsbep
2015-01-27[doc] Improve paginator docbep
2015-01-27Replace assert.Equal(true/false) with assert.True/Falsebep
2015-01-27Do not panic on permission deniedbep
Replace panic with FATAL logging and graceful shutdown. Fixes #837
2015-01-27Split Windows and Unix specific path testsbep
2015-01-27Temporarily comment out breaking Windows test casebep
2015-01-27Introduce FilepathPathBridgebep
This commit introduces the new interface FilepathPathBridge to remove some code that differs only in their use of either the path or filepath package.
2015-01-27Add more tests to helperbep
2015-01-27Improve pagination testingbep
* Add missing pagination test cases * Remove some unreachable code paths * Fix some corner cases
2015-01-26Linkify release notesbep
2015-01-26Set detault for Paginate to 10bep
10 is a better default than 0, since no paginator pages will be created unles referenced by a `.Paginator`. See #750
2015-01-26Add documentation for paginationbep
See #750
2015-01-26Add Bootstrap-compatible pagination.htmlbep
See #750
2015-01-26Add pagination to release notesbep
2015-01-26Add pagination support for home page, sections and taxonomiesbep
Two new configuration properties, `Paginate` (default `0`) and `PaginatePath` (default `page`) are added. Setting `paginate` to a positive value will split the list pages for the home page, sections and taxonomies into chunks of size of the `paginate` property. A `.Paginator` is provided to help building a pager menu. There are two ways to configure a `.Paginator`: 1. The simplest way is just to call `.Paginator.Pages` from a template. It will contain the pages for "that page" (`.Data.Pages` will (like today) contain all the pages). 2. Select a sub-set of the pages with the available template functions and pass the slice to `.Paginate` : `{{ range (.Paginate (where .Data.Pages "Type" "post")).Pages }}` **NOTE:** For a given Node, it's one of the options above. It's perfectly legitimate to iterate over the same pager more than once, but it's static and cannot change. The `.Paginator` contains enough information to build a full-blown paginator interface. The pages are built on the form (note: BLANK means no value, i.e. home page): ``` [SECTION/TAXONOMY/BLANK]/index.html [SECTION/TAXONOMY/BLANK]/page/1/index.html => redirect to [SECTION/TAXONOMY/BLANK]/index.html [SECTION/TAXONOMY/BLANK]/page/2/index.html .... ``` Fixes #96
2015-01-26Add site-wide/per-page [blackfriday] `extensions` optionNaoya Inada
2015-01-26Wrong URL for Github PagesWade Wegner
2015-01-26Move s.prepUrl() before prepending BaseUrl.Jonathan Anderson
When we have an absolute menu url specified in the config file (e.g., `menu: { main: { name: "News", url: "/news" } }`), its menu entry is generated by prefixing it with the BaseUrl. The result is then run through prepUrl(), which uses helpers.Urlize to convert urls such as 'My First Link' to 'my-first-link'. The behaviour is backwards: we do not want to run helpers.Urlize on the BaseUrl, only on the absolute component. Currently, a BaseUrl such as 'http://my.edu/ENG101' will be converted to 'http://my.edu/eng101', resulting in broken links in all of my menus. This commit switches the URL prep and BaseUrl prepending actions around. I would argue that these URLs shouldn't be run through prepUrl anyway because the site developer has specified them explicitly in a config file and might be surprised for, e.g., URLs to change case, but that's another commit for another time.
2015-01-25Correct wercker URLKartik Singhal
2015-01-25Fix inverse notationNaoya Inada
2015-01-25Make Blackfriday smart fractions to really default to `true`Anthony Fok
Fix my own bug in Pull Request #829, commit eb686352b1785844778e1cba8c69b85079e3044f
2015-01-24Add site-wide/per-page [blackfriday] `fractions` optionAnthony Fok
Make Blackfriday's `HTML_SMARTYPANTS_FRACTIONS` option user-configurable. Defaults to `true` as before. See discussions at: http://discuss.gohugo.io/t/any-way-to-disable-smart-fractions/328 Thanks to @bjornerik and @spf13 for laying the groundwork making it easy to expose Blackfriday's underlying configurable options.
2015-01-24Fix for page.GetParam() for JSON and TOML mapsAnthony Fok
Setting per-page Blackfriday angledQuotes did not work with TOML or JSON front matter, but it does work with YAML. It turns out that page.Params("blackfriday") returns type map[interface{}]interface{} for YAML, but type map[string]interface{} for JSON and TOML. This patch updates page.GetParam() to catch the latter, with an error message if page.GetParam() does not recognize a type. A test is also added.
2015-01-24Upgrade from gopkg.in/yaml.v1 to gopkg.in/yaml.v2Anthony Fok
2015-01-24Handle empty front matter in archetype.Jonathan Anderson
If an archetype has deliberately empty front matter (e.g., to suppress generation of the 'draft' field or to force a particular front matter type instead of the default TOML), we should handle it gracefully rather than panic ("assignment to entry in nil map").
2015-01-23[Docs]: Add new press/blog coverage about HugoAnthony Fok
2015-01-23Fix RelPermalink() and Urls in menus vs canonifyUrlsbep
canonifyUrls=true, RelPermalink and baseUrl with sub-path did not work. This fixes that by adding a check for canonifyUrl=trues=true in RelPermalink(). So given - baseUrl "http://somehost.com/sub/" - the path "some-path/file.html" For canonifyUrls=false RelPermalink() returns "/sub/some-path/file.html" For canonifyUrls=true RelPermalink() returns "/some-path/file.html" In the last case, the Url will be made absolute and clickable in a later step. This commit also makes the menu urls defined in site config releative. To make them work with canonifying of urls, the context root is prepended if canonifying is turned off. Fixes #519 Fixes #711
2015-01-23[Docs] Document the new (temp?) default of `canonifyurls = false`Anthony Fok
Also add a **Caveat** on http://gohugo.io/tutorials/github-pages-blog/ warning the reader that a `canonifyurls = true` must be added for Spencer's old example files to work. Fixes #802
2015-01-23Revert "Try to fix mysterious test failures on Travis"Anthony Fok
This reverts commit 71fe85df9b7193f790fbb5e3af415b176fdb6a4f. See https://github.com/PuerkitoBio/purell/pull/5 for the cause of the mysterious `go test -v ./...` failure.
2015-01-23Try to fix mysterious test failures on Travisbep
2015-01-22Add menu tests for pages with both Yaml and Toml front matterbep
See #817
2015-01-22Revert "Quick-and-dirty way to print details of template errors"bep
This reverts commit 42b33102cf619e08c6b6a49a50a0995e8f14773f.
2015-01-22Add dateFormat to release notesbep
2015-01-22Add dateFormat template functionTatsushi Demachi
This is the implementation of the proposal at #235 and http://discuss.gohugo.io/t/parsing-dates-in-templates/603/3
2015-01-21Protect the innerShortCodeCache by a RW lockbep
2015-01-21Cache the page's rendering context flagsbep
This map can potentially be used many times for a given page, and altough the cost of re-creating the map should be minimal, caching it is simple -- and could save some GC and CPU cycles.
2015-01-21Register rstHandler to restore experimental reST supportAnthony Fok
(Experimental) reStructuredText support was working in v0.12, but was no longer handled after some refactoring in v0.13-DEV. That experimental support is now restored. Furthermore, check for both rst2html and rst2html.py in the PATH, and execute whichever is found. See #472 for more information.
2015-01-21Make ref and relref respect plainIdAnchorsbep
Fixes #813
2015-01-21fix outdated MathJax CDN URLPeter Krautzberger
The rackspace address has been retired, see http://www.mathjax.org/changes-to-the-mathjax-cdn/
2015-01-21[Docs] Use of `$.` to access global context from anywhereAnthony Fok
See #804, http://discuss.gohugo.io/t/templates-multiple-parameters/600/3 and http://stackoverflow.com/questions/16734503/access-out-of-loop-value-inside-golang-templates-loop for related discussions.
2015-01-21[Docs] Recommend the use of backticks for IE conditionalsAnthony Fok
Special thanks to @tatsushid and @bjornerik for the insight! Fixes #778.
2015-01-21Fix string comparison for .Truncated page variableAnthony Fok
Instead of `strings.TrimSpace()`, use `strings.Join(strings.Fields(s), " ")` to collapse all whitespaces into single spaces, in order to match the behaviour of helpers.TruncateWordsToWholeSentence(), in order to detect non-truncated content correctly.
2015-01-21[Docs] Correct description of "Read More" links in SummariesAnthony Fok
Also revise some paragraphs for succinctness. Fixes #788
2015-01-21Fix two errors in two internal templatesAnthony Fok
* template: _internal/_default/opengraph.html:39: unexpected EOF * template: _internal/_default/schema.html:15: unexpected {{end}} Also change the DateTime inside these templates to ISO 8601 format, and skip <meta itemprop="datePublished"> if `publishdate` is not set. Perhaps it would be a good idea to expose `func (Time) IsZero` to our templates? :-)
2015-01-21Add missing assertion to trim-testbep
2015-01-20fix --uglyUrls paramsNikolay Kirsh