summaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)Author
2017-06-23vendor: Fix +-timezones in TOMLBjørn Erik Pedersen
Fixes #29
2017-06-23create: Preserve shortcodes in archetype templatesBjørn Erik Pedersen
Fixes #3623
2017-06-22commands: Create default archetype on new siteBjørn Erik Pedersen
See #3626
2017-06-22create: Fix archetype regression when no archetype fileBjørn Erik Pedersen
Fixes #3626
2017-06-21docs: UpdateBjørn Erik Pedersen
2017-06-21Update docsBjørn Erik Pedersen
2017-06-21releaser: Fix typo, change "relase" to "release"Anthony Fok
2017-06-21Update docsBjørn Erik Pedersen
2017-06-21releaser: Prepare repository for 0.25-DEVBjørn Erik Pedersen
[ci skip]
2017-06-21releaser: Update /docs to 0.24 [ci skip]v0.24Bjørn Erik Pedersen
2017-06-21releaser: Bump versions for release of 0.24Bjørn Erik Pedersen
[ci skip]
2017-06-21releaser: Update /docs [ci skip]Bjørn Erik Pedersen
2017-06-21releaser: Add release notes draft for 0.24Bjørn Erik Pedersen
2017-06-20output: Identify extension-less text types as textBjørn Erik Pedersen
See #3614
2017-06-20Support non-md files as archetype filesBjørn Erik Pedersen
It now properly uses the extension of the target file to determine archetype file. Fixes #3597 Fixes #3618
2017-06-20media, hugolib: Support extension-less media typesBjørn Erik Pedersen
This change is motivated by Netlify's `_redirects` files, which is currently not possible to generate with Hugo. This commit adds a `Delimiter` field to media type, which defaults to ".", but can be blanked out. Fixes #3614
2017-06-20hugolib: Add disableAliasesBjørn Erik Pedersen
Note that even with this setting enabled, the aliases themselves are preserved on the pages. The big motivation for this change is to be able to use the alias definitions to generate `.htaccess` or Netlify's `_redirect` files with server-side redirects. Fixes #3613
2017-06-19parser: Fix handling of quoted brackets in JSON front matterBjørn Erik Pedersen
Also remove a broken JSON test. Fixes #3511
2017-06-19vendor: Update ViperBjørn Erik Pedersen
2017-06-19hugolib: Fix error handling for JSON front matterBjørn Erik Pedersen
Fixes #3610
2017-06-19commands, create: Add .Site to the archetype templatesBjørn Erik Pedersen
This commit completes the "The Revival of the Archetypes!" If `.Site` is used in the arcetype template, the site is built and added to the template context. Note that this may be potentially time consuming for big sites. A more complete example would then be for the section `newsletter` and the archetype file `archetypes/newsletter.md`: ``` --- title: "{{ replace .TranslationBaseName "-" " " | title }}" date: {{ .Date }} tags: - x categories: - x draft: true --- <!--more--> {{ range first 10 ( where .Site.RegularPages "Type" "cool" ) }} * {{ .Title }} {{ end }} ``` And then create a new post with: ```bash hugo new newsletter/the-latest-cool.stuff.md ``` **Hot Tip:** If you set the `newContentEditor` configuration variable to an editor on your `PATH`, the newly created article will be opened. The above _newsletter type archetype_ illustrates the possibilities: The full Hugo `.Site` and all of Hugo's template funcs can be used in the archetype file. Fixes #1629
2017-06-18create: Use archetype template as-is as a Go templateBjørn Erik Pedersen
This commit removes the fragile front matter decoding, and takes the provided archetype file as-is and processes it as a template. This also means that we no longer will attempt to fill in default values for `title` and `date`. The upside is that it is now easy to create these values in a dynamic way: ```toml +++ title = {{ .BaseFileName | title }} date = {{ .Date }} draft = true +++ ``` You can currently use all of Hugo's template funcs, but the data context is currently very shallow: * `.Type` gives the archetype kind provided * `.Name` gives the target file name without extension. * `.Path` gives the target file name * `.Date` gives the current time as RFC3339 formatted string The above will probably be extended in #1629. Fixes #452 Updates #1629
2017-06-17Update links to new discuss URLBjørn Erik Pedersen
2017-06-16vendor: Update depsBjørn Erik Pedersen
2017-06-16releaser: Add TODOBjørn Erik Pedersen
2017-06-16releaser: Prepare repository for 0.24-DEVBjørn Erik Pedersen
[ci skip]
2017-06-16releaser: Update /docs to 0.23 [ci skip]v0.23Bjørn Erik Pedersen
2017-06-16releaser: Bump versions for release of 0.23Bjørn Erik Pedersen
[ci skip]
2017-06-16releaser: Update /docs [ci skip]Bjørn Erik Pedersen
2017-06-16releaser: AdjustBjørn Erik Pedersen
2017-06-16releaser: Add release notes draft for 0.23Bjørn Erik Pedersen
[ci skip]
2017-06-16releaser: Adapt release logic to docs submoduleBjørn Erik Pedersen
2017-06-14Update logo link in READMEBjørn Erik Pedersen
2017-06-14Remove docs building from CI buildsBjørn Erik Pedersen
We could probably get it working, but we have plenty of site tests now.
2017-06-14commands: Adjust docs pathBjørn Erik Pedersen
2017-06-14Add docs as submoduleBjørn Erik Pedersen
2017-06-14docs: RemoveBjørn Erik Pedersen
Docs site is moved to https://github.com/gohugoio/hugoDocs Will be re-added here as a Git submodule.
2017-06-13Update Gitter link in READMEBjørn Erik Pedersen
That is still running under spf13.
2017-06-13vendor: Update to new org nameBjørn Erik Pedersen
2017-06-13Change Windows build badge link, take #3Bjørn Erik Pedersen
2017-06-13Change Windows build badge link, take #2Bjørn Erik Pedersen
2017-06-13Update Windows build linkBjørn Erik Pedersen
2017-06-13hugolib: Disable shaky leaktest on CIBjørn Erik Pedersen
2017-06-13Update links in CONTRIBUTING.md due to the org transitiondigitalcraftsman
2017-06-13Update source path in Dockerfile due to the org transitiondigitalcraftsman
2017-06-13Update clone folder in appveyor.yml due to the org transitiondigitalcraftsman
2017-06-13Update import path in snapcraft.yaml due to the org transitiondigitalcraftsman
2017-06-13Run gofmt to get imports in line vs gohugoio/hugoBjørn Erik Pedersen
2017-06-13Update Makefile vs gohugoio/hugoBjørn Erik Pedersen
2017-06-13Update README to point to gohugoio/hugoBjørn Erik Pedersen