Commit Graph
10191 Commits
Author SHA1 Message Date
Bjørn Erik Pedersen 1b4319be62 Squashed 'docs/' changes from 1d052b16..44fe0285
44fe0285 Fix links to JSON spec

git-subtree-dir: docs
git-subtree-split: 44fe0285a0
2017-09-10 17:27:23 +02:00
Bjørn Erik Pedersen d21a59d2db docs: Merge commit '1b4319be62ba071f79e90ef32dbe92eb893429f7' 2017-09-10 17:27:23 +02:00
Bjørn Erik Pedersen 509ad6cc00 docs: Merge commit '1b4319be62ba071f79e90ef32dbe92eb893429f7' 2017-09-10 17:27:23 +02:00
Bjørn Erik Pedersen 58245a29df docs: Merge commit '1b4319be62ba071f79e90ef32dbe92eb893429f7' 2017-09-10 17:27:23 +02:00
Bjørn Erik Pedersen d2249c5099 Set up Hugo release flow on CircleCI
This rewrites the release logic to use CircleCI 2.0 and its approve workflow in combination with the state of the release notes to determine what to do next.

Fixes #3779
2017-09-10 17:14:02 +02:00
Bjørn Erik Pedersen f4bf214137 tpl/time: Add time.Duration and time.ParseDuration template funcs
And with time.Duration with the convenient alias `duration`:

```
{{ mul 60 60 | duration "second" }}
```

Fixes #3828
2017-09-09 09:43:00 +02:00
Bjørn Erik Pedersen 0462c96a5a tpl/compare: Add cond (ternary) template func
Fixes #3860
2017-09-08 16:59:43 +02:00
Bjørn Erik Pedersen 202510fdc9 hugolib: Fix "published" front matter handling
Also related:

* support "modified" as an optional way to signal "last modified"
* make sure all relevant page dates are also added to params

Fixes #3867
2017-09-08 12:28:15 +02:00
Frank Taillandier 44fe0285a0 Fix links to JSON spec 2017-09-07 16:26:06 +02:00
Fiisio 573deca089 hugolib: Fix typo in aquired
Signed-off-by: wgliang <liangcszzu@163.com>
2017-09-07 16:21:33 +02:00
Bjørn Erik Pedersen 9c4ff2d8e7 docs: Document Related Content
See https://github.com/gohugoio/hugo/issues/98
2017-09-06 00:20:02 +02:00
Bjørn Erik Pedersen c625ae1ceb docs: Document Related Content
See https://github.com/gohugoio/hugo/issues/98
2017-09-06 00:20:02 +02:00
Bjørn Erik Pedersen eeb057f222 docs: Document Related Content
See https://github.com/gohugoio/hugo/issues/98
2017-09-06 00:20:02 +02:00
Bjørn Erik Pedersen 3b4f17bbc9 hugolib: Implement "related content"
This closes #98, even if this commit does not do full content text search.

We may revisit that problem in the future, but that deserves its own issue.

Fixes #98
2017-09-06 00:20:02 +02:00
Bjørn Erik Pedersen 7d63a23b0c Squashed 'docs/' changes from f887bd7b..1d052b16
1d052b16 Update hosting-on-netlify.md
28b96bec Remove double brackets in Netlify hosting tutorial
373ed38b Update deployment instructions from hugo > 0.20 on Netlify
1bbb41ca Generate static assets on deploy in Nanobox tutorial
816d207f Add missing backtick in templates/views.md
bf88e772 Add nanobox as a deployment option
9c37b4cc Change config's syntax order matching description
d3cb05a7 Fix wrongly named default value of publishDir
4be85c54 Add link to showcase a theme setup via config file
46837195 Init and update of submodules in .gitlab-ci.yml
9e7c2827 Add CSS lang argument to code block
85aad56e Abstract the type in the lookup order
4e1e43e9 Fix broken Pygments url
65b4e79b Correct GitLab project pipelines URL
94af72b5 Fix .Data.Terms usage in taxonomy template example
eb371e52 functions: Fix lang.NumFmt docs
a745cd6c Fix layouts' folder name in template primer
e181e637 Correct typo on GitHub pages guide (#151)
28698500 Remove HTML special chars from Windows install example
96b1f5b5 Remove not needed escape slashes in urls.md
2e05043f Add upgrade instructions using homebrew
2a14624d Fix alias in countrunes.md
5e26bb97 Update docker image for build/publish
01424887 List the internal templates
a3ef5be9 Remove string concatenation from add (math) sample
43d12b44 Fix typo
89bafa49 Change to Asciidoc URI
4e14071e Removes an extra bracket (>) in single-page-templates.md
0938e423 Fix typo in http2 server push blog
fac55121 Fix typo in deployment with rsync tutorial

git-subtree-dir: docs
git-subtree-split: 1d052b16a1
2017-09-05 18:09:40 +02:00
Bjørn Erik Pedersen 887fb1af70 docs: Merge commit '7d63a23b0c68d9cd7c7c09c2755619237bc03485' 2017-09-05 18:09:40 +02:00
Bjørn Erik Pedersen ecd5c24f50 docs: Merge commit '7d63a23b0c68d9cd7c7c09c2755619237bc03485' 2017-09-05 18:09:40 +02:00
Bjørn Erik Pedersen 16c9127663 docs: Merge commit '7d63a23b0c68d9cd7c7c09c2755619237bc03485' 2017-09-05 18:09:40 +02:00
Bjørn Erik Pedersen 1d052b16a1 Update hosting-on-netlify.md 2017-09-05 16:56:15 +02:00
Bjørn Erik Pedersen f88fe312cb output: Fix taxonomy term base template lookup
To make sure it uses the base templates in _default as a last resort.

Fixes #3856
2017-09-03 11:32:26 +02:00
Ladislav Prskavec 28b96becc7 Remove double brackets in Netlify hosting tutorial 2017-09-02 09:49:17 +02:00
Ladislav Prskavec 373ed38b05 Update deployment instructions from hugo > 0.20 on Netlify 2017-09-01 21:52:16 +02:00
Steve Domino 1bbb41ca41 Generate static assets on deploy in Nanobox tutorial 2017-09-01 14:03:40 +02:00
jorin 816d207f07 Add missing backtick in templates/views.md 2017-09-01 14:02:02 +02:00
Steve Domino bf88e772e4 Add nanobox as a deployment option 2017-08-31 22:27:23 +02:00
Carlos Cámara 9c37b4ccb4 Change config's syntax order matching description 2017-08-31 20:05:33 +02:00
Marvin Hockenjos d3cb05a740 Fix wrongly named default value of publishDir 2017-08-31 19:47:00 +02:00
Yury Zhauniarovich 4be85c5453 Add link to showcase a theme setup via config file
Added the second option how to set template.
2017-08-31 19:45:42 +02:00
Andrea Borruso 46837195ed Init and update of submodules in .gitlab-ci.yml
The "Completion of the Hugo Quick Start" is an assumption, and there you install a hugo theme via git submodule, than it's necessary to add the rows I have added.
2017-08-31 19:42:33 +02:00
Chris Lasher 9e7c28276a Add CSS lang argument to code block
Makes the triple-backtick example equivalent to triple-tilde example.
2017-08-31 19:16:10 +02:00
Chris Lasher 85aad56e38 Abstract the type in the lookup order
The _default pieces still had a concrete type of "post".
2017-08-31 19:02:58 +02:00
Terence Eden 4e1e43e9ca Fix broken Pygments url
Fixes #161
2017-08-31 18:55:37 +02:00
Matt Riggott 65b4e79b65 Correct GitLab project pipelines URL
The < and > characters in the URL weren't getting escaped, instead acting as if they were HTML elements. This meant the URL was displayed as https://gitlab.com///pipelines, instead of https://gitlab.com/<YourUsername>/<your-hugo-site>/pipelines.
2017-08-31 18:31:27 +02:00
Bjørn Erik Pedersen d33563b5d7 release: CGO_ENABLED=0 2017-08-28 11:46:03 +02:00
Christopher Su 94af72b52a Fix .Data.Terms usage in taxonomy template example
.Data.Taxonomy should be .Data.Terms
2017-08-26 09:59:14 +02:00
Bjørn Erik Pedersen fc4a0d1704 Update Travis build to Go 1.9!
Just released: https://blog.golang.org/go1.9
2017-08-25 08:08:17 +02:00
Yihui Xie 7231d5a829 livereload: Maintain the scroll position if possible
This fixes #3824: when the current pathname is the same as the one to be loaded, just call location.reload() so that the current scroll position can be preserved, instead of assigning to location.href, which will cause the scroll position to be lost.
2017-08-22 20:26:33 +02:00
oneleaftea 88e1bca92c Update template_embedded.go
Changed disqus urls from http to https. This fixes mixed content warnings on browsers when viewing Hugo websites over SSL (https).
2017-08-22 20:26:04 +02:00
Cameron Moore eb371e5235 functions: Fix lang.NumFmt docs
Fixes #154
2017-08-21 21:47:02 +02:00
digitalcraftsman a745cd6c8b Fix layouts' folder name in template primer 2017-08-21 00:12:01 +02:00
Charlie Egan e181e63795 Correct typo on GitHub pages guide (#151)
Thanks @charlieegan3 for the keen eye.
2017-08-19 15:12:11 -05:00
Bjørn Erik Pedersen d000cf6050 tpl: Prepare for template metrics 2017-08-19 09:57:37 +02:00
M Brennan 286985009b Remove HTML special chars from Windows install example 2017-08-19 08:23:07 +02:00
Alexander Borsuk 96b1f5b5cf Remove not needed escape slashes in urls.md 2017-08-18 22:42:29 +02:00
Leon Barnard 2e05043f16 Add upgrade instructions using homebrew 2017-08-18 22:38:44 +02:00
Cameron Moore 29a2da0593 tpl: Cleanup strings.TrimPrefix and TrimSuffix
These funcs were added during the move to namespaces but were
undocumented.  This commit fixes the order of the arguments and adds the
funcs to the method mapping.
2017-08-18 14:21:58 +02:00
Cameron Moore 7674ad7382 tpl: Add strings.TrimLeft and TrimRight 2017-08-18 09:12:04 +02:00
Bjørn Erik Pedersen 08f48b91d6 compare, hugolib, tpl: Add Eqer interface
And use it in `eq` and `ne` so `Page` values can be compared directly in the templates without thinking about it being a `Page` or a `PageOutput` wrapper.

Fixes #3807
2017-08-18 07:36:32 +02:00
Bjørn Erik Pedersen 2fc121ce23 appveyor: Simplify 2017-08-17 10:37:42 +02:00
Bjørn Erik Pedersen 2a2e690707 hugolib: Simplify Page.Eq 2017-08-17 09:43:39 +02:00