brevno-suite/hugo
7 years agovendor: Update goorgeous
Bjørn Erik Pedersen [Sat, 23 Sep 2017 15:15:25 +0000 (17:15 +0200)]
vendor: Update goorgeous

Fixes #3899

7 years agoAdd liveReloadPort flag to server
Bjørn Erik Pedersen [Sat, 23 Sep 2017 15:08:48 +0000 (17:08 +0200)]
Add liveReloadPort flag to server

This makes live reloading behind a HTTPS proxy working, as in the example below using the service from https://ngrok.com:

```
hugo server -b https://ba6sdfe72.ngrok.io --appendPort=false --liveReloadPort=443 --navigateToChanged
```

Fixes #3882

7 years agoFix the docs helper tool
Bjørn Erik Pedersen [Sat, 23 Sep 2017 08:20:11 +0000 (10:20 +0200)]
Fix the docs helper tool

7 years agoAllow the pull-docs script to pull other than master
Bjørn Erik Pedersen [Sat, 23 Sep 2017 08:11:20 +0000 (10:11 +0200)]
Allow the pull-docs script to pull other than master

7 years agoMerge commit '7a89dce53bfbd67a17442a8f9be8fa895fc4f9b1'
Bjørn Erik Pedersen [Sat, 23 Sep 2017 08:08:55 +0000 (10:08 +0200)]
Merge commit '7a89dce53bfbd67a17442a8f9be8fa895fc4f9b1'

7 years agoSquashed 'docs/' changes from 32356e4e..5be6fef0
Bjørn Erik Pedersen [Sat, 23 Sep 2017 08:08:55 +0000 (10:08 +0200)]
Squashed 'docs/' changes from 32356e4e..5be6fef0

5be6fef0 Fix typo, {{Content} should be {{.Content}}

git-subtree-dir: docs
git-subtree-split: 5be6fef0b00d06a0c780397c4f4ac8db31b56456

7 years agocommands: Remove superflous space
Bjørn Erik Pedersen [Fri, 22 Sep 2017 18:05:19 +0000 (20:05 +0200)]
commands: Remove superflous space

7 years agocommands: Rename noHttpCache to noHTTPCache
Bjørn Erik Pedersen [Fri, 22 Sep 2017 15:23:15 +0000 (17:23 +0200)]
commands: Rename noHttpCache to noHTTPCache

7 years agoAdd noHttpCache to hugo server
Bjørn Erik Pedersen [Fri, 22 Sep 2017 15:13:21 +0000 (17:13 +0200)]
Add noHttpCache to hugo server

Fixes #3897

7 years agoMerge commit 'ba45da9d03056447e4873de13d4e0f8d658a769b'
Bjørn Erik Pedersen [Thu, 21 Sep 2017 17:05:40 +0000 (19:05 +0200)]
Merge commit 'ba45da9d03056447e4873de13d4e0f8d658a769b'

7 years agoSquashed 'docs/' changes from 44fe0285..32356e4e
Bjørn Erik Pedersen [Thu, 21 Sep 2017 17:03:00 +0000 (19:03 +0200)]
Squashed 'docs/' changes from 44fe0285..32356e4e

32356e4e Fix typo in header of shortcode-templates.md
c8f1a2d2 Correct code example for index template function
bfa6a55d Escape code fencing
ff8b2f99 Fix typos in deployment with wercker tutorial
557c36e8 theme: Merge commit '7fbb4bed25001182bfeb91f79db0f0c1936582ee'
7fbb4bed Squashed 'themes/gohugoioTheme/' changes from 7dd8a302..ca53082d
ce31cee0 Add "See Also" config
158cee1b Make the tags into keywords
61600be6 Add a note to the related section
49edb5a2 Relase 0.27.1
c9bbc001 releaser: Add release notes to /docs for release of 0.27.1
213c6c3b Add bugs poster
8b4590cd Add KeyCDN integration tutorial
2b277859 Add tutorial videos to several docs pages
950fef1f Update roadmap to link to the correct milestones page
496f5bf6 Rename relnotes
d6f9378d Bump Netlify versions to 0.27
087fde7f Update 0.27 release notes
603f94ae docs: Document Related Content
3790f6a3 releaser: Bump versions for release of 0.27
0948868c releaser: Add release notes to /docs for release of 0.27

git-subtree-dir: docs
git-subtree-split: 32356e4eabe357ae914f4d1d59e8ae31ce936723

7 years agoreleaser: Prepare repository for 0.28-DEV
hugoreleaser [Wed, 13 Sep 2017 11:04:57 +0000 (11:04 +0000)]
releaser: Prepare repository for 0.28-DEV

[ci skip]

7 years agoreleaser: Add release notes to /docs for release of 0.27.1 v0.27.1
hugoreleaser [Wed, 13 Sep 2017 11:03:59 +0000 (11:03 +0000)]
releaser: Add release notes to /docs for release of 0.27.1

[ci skip]

7 years agoreleaser: Bump versions for release of 0.27.1
hugoreleaser [Wed, 13 Sep 2017 11:03:59 +0000 (11:03 +0000)]
releaser: Bump versions for release of 0.27.1

[ci skip]

7 years agoreleaser: Add release notes for 0.27.1
hugoreleaser [Wed, 13 Sep 2017 10:45:47 +0000 (10:45 +0000)]
releaser: Add release notes for 0.27.1

7 years agotpl/tplimpl: Fix escaped HTML Go 1.9 multioutput issue (#3880)
Bjørn Erik Pedersen [Wed, 13 Sep 2017 10:32:06 +0000 (12:32 +0200)]
tpl/tplimpl: Fix escaped HTML Go 1.9 multioutput issue (#3880)

Fixes #3876

7 years agosnap: Bump to 1.9
Bjørn Erik Pedersen [Wed, 13 Sep 2017 09:25:57 +0000 (11:25 +0200)]
snap: Bump to 1.9

7 years agoRemove .goxc.json
Bjørn Erik Pedersen [Mon, 11 Sep 2017 11:18:36 +0000 (13:18 +0200)]
Remove .goxc.json

Not in use

7 years agoreleaser: Prepare repository for 0.28-DEV
hugoreleaser [Mon, 11 Sep 2017 05:33:02 +0000 (05:33 +0000)]
releaser: Prepare repository for 0.28-DEV

[ci skip]

7 years agoreleaser: Add release notes to /docs for release of 0.27 v0.27
hugoreleaser [Mon, 11 Sep 2017 05:32:02 +0000 (05:32 +0000)]
releaser: Add release notes to /docs for release of 0.27

[ci skip]

7 years agoreleaser: Bump versions for release of 0.27
hugoreleaser [Mon, 11 Sep 2017 05:32:02 +0000 (05:32 +0000)]
releaser: Bump versions for release of 0.27

[ci skip]

7 years agoRelease of 0.27
Bjørn Erik Pedersen [Mon, 11 Sep 2017 05:27:02 +0000 (07:27 +0200)]
Release of 0.27

7 years agoreleaser: Add release notes draft for 0.27
hugoreleaser [Sun, 10 Sep 2017 15:20:16 +0000 (15:20 +0000)]
releaser: Add release notes draft for 0.27

Rename to *-ready.md to continue. [ci skip]

7 years agoSquashed 'docs/' changes from 1d052b16..44fe0285
Bjørn Erik Pedersen [Sun, 10 Sep 2017 15:27:23 +0000 (17:27 +0200)]
Squashed 'docs/' changes from 1d052b16..44fe0285

44fe0285 Fix links to JSON spec

git-subtree-dir: docs
git-subtree-split: 44fe0285a09f6b21cd00091fb0900b9797e81f72

7 years agodocs: Merge commit '1b4319be62ba071f79e90ef32dbe92eb893429f7'
Bjørn Erik Pedersen [Sun, 10 Sep 2017 15:27:23 +0000 (17:27 +0200)]
docs: Merge commit '1b4319be62ba071f79e90ef32dbe92eb893429f7'

7 years agoSet up Hugo release flow on CircleCI
Bjørn Erik Pedersen [Sun, 10 Sep 2017 15:14:02 +0000 (17:14 +0200)]
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

7 years agotpl/time: Add time.Duration and time.ParseDuration template funcs
Bjørn Erik Pedersen [Fri, 8 Sep 2017 15:58:39 +0000 (17:58 +0200)]
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

7 years agotpl/compare: Add cond (ternary) template func
Bjørn Erik Pedersen [Fri, 8 Sep 2017 12:16:21 +0000 (14:16 +0200)]
tpl/compare: Add cond (ternary) template func

Fixes #3860

7 years agohugolib: Fix "published" front matter handling
Bjørn Erik Pedersen [Fri, 8 Sep 2017 10:28:15 +0000 (12:28 +0200)]
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

7 years agohugolib: Fix typo in aquired
Fiisio [Thu, 7 Sep 2017 14:21:33 +0000 (22:21 +0800)]
hugolib: Fix typo in aquired

Signed-off-by: wgliang <liangcszzu@163.com>
7 years agodocs: Document Related Content
Bjørn Erik Pedersen [Tue, 5 Sep 2017 17:35:36 +0000 (19:35 +0200)]
docs: Document Related Content

See https://github.com/gohugoio/hugo/issues/98

7 years agohugolib: Implement "related content"
Bjørn Erik Pedersen [Sat, 19 Aug 2017 11:16:00 +0000 (13:16 +0200)]
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

7 years agoSquashed 'docs/' changes from f887bd7b..1d052b16
Bjørn Erik Pedersen [Tue, 5 Sep 2017 16:09:40 +0000 (18:09 +0200)]
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: 1d052b16a1290ada12f1e28c7c0c373f86741071

7 years agodocs: Merge commit '7d63a23b0c68d9cd7c7c09c2755619237bc03485'
Bjørn Erik Pedersen [Tue, 5 Sep 2017 16:09:40 +0000 (18:09 +0200)]
docs: Merge commit '7d63a23b0c68d9cd7c7c09c2755619237bc03485'

7 years agooutput: Fix taxonomy term base template lookup
Bjørn Erik Pedersen [Sun, 3 Sep 2017 09:32:26 +0000 (11:32 +0200)]
output: Fix taxonomy term base template lookup

To make sure it uses the base templates in _default as a last resort.

Fixes #3856

7 years agorelease: CGO_ENABLED=0
Bjørn Erik Pedersen [Mon, 28 Aug 2017 09:46:03 +0000 (11:46 +0200)]
release: CGO_ENABLED=0

7 years agoUpdate Travis build to Go 1.9!
Bjørn Erik Pedersen [Fri, 25 Aug 2017 06:08:17 +0000 (08:08 +0200)]
Update Travis build to Go 1.9!

Just released: https://blog.golang.org/go1.9

7 years agolivereload: Maintain the scroll position if possible
Yihui Xie [Tue, 22 Aug 2017 15:29:09 +0000 (10:29 -0500)]
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.

7 years agoUpdate template_embedded.go
oneleaftea [Tue, 22 Aug 2017 17:55:29 +0000 (10:55 -0700)]
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).

7 years agotpl: Prepare for template metrics
Bjørn Erik Pedersen [Sat, 19 Aug 2017 07:57:37 +0000 (09:57 +0200)]
tpl: Prepare for template metrics

7 years agotpl: Cleanup strings.TrimPrefix and TrimSuffix
Cameron Moore [Mon, 14 Aug 2017 23:30:04 +0000 (18:30 -0500)]
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.

7 years agotpl: Add strings.TrimLeft and TrimRight
Cameron Moore [Fri, 18 Aug 2017 07:12:04 +0000 (02:12 -0500)]
tpl: Add strings.TrimLeft and TrimRight

7 years agocompare, hugolib, tpl: Add Eqer interface
Bjørn Erik Pedersen [Thu, 17 Aug 2017 08:24:17 +0000 (10:24 +0200)]
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

7 years agoappveyor: Simplify
Bjørn Erik Pedersen [Thu, 17 Aug 2017 08:37:42 +0000 (10:37 +0200)]
appveyor: Simplify

7 years agohugolib: Simplify Page.Eq
Bjørn Erik Pedersen [Thu, 17 Aug 2017 07:43:39 +0000 (09:43 +0200)]
hugolib: Simplify Page.Eq

7 years agohugolib: Do not return error in Eq on type mismatch
Bjørn Erik Pedersen [Thu, 17 Aug 2017 06:32:47 +0000 (08:32 +0200)]
hugolib: Do not return error in Eq on type mismatch

7 years agohugolib: Rename Page.Equals to Page.Eq
Bjørn Erik Pedersen [Wed, 16 Aug 2017 08:01:16 +0000 (10:01 +0200)]
hugolib: Rename Page.Equals to Page.Eq

To get the name in line with the template func `eq`.

7 years agohugolib: Add Page.Equals
Bjørn Erik Pedersen [Wed, 16 Aug 2017 07:59:42 +0000 (09:59 +0200)]
hugolib: Add Page.Equals

7 years agohugolib: Rewrite replaceDivider to reduce memory allocation
Bjørn Erik Pedersen [Mon, 14 Aug 2017 07:24:38 +0000 (09:24 +0200)]
hugolib: Rewrite replaceDivider to reduce memory allocation

```bash
name              old time/op    new time/op    delta
ReplaceDivider-4   9.76µs ±105%    7.96µs ±24%     ~     (p=0.690 n=5+5)

name              old alloc/op   new alloc/op   delta
ReplaceDivider-4    3.46kB ± 0%    1.54kB ± 0%  -55.56%  (p=0.008 n=5+5)

name              old allocs/op  new allocs/op  delta
ReplaceDivider-4      6.00 ± 0%      1.00 ± 0%  -83.33%  (p=0.008 n=5+5)
```

7 years agohugolib: Extract replaceDivider logic
Bjørn Erik Pedersen [Mon, 14 Aug 2017 06:42:30 +0000 (08:42 +0200)]
hugolib: Extract replaceDivider logic

To its own function and add a test and a benchmark for it.

7 years agoAdd an iFrame title to the YouTube shortcode
Nic Raboy [Fri, 11 Aug 2017 22:36:40 +0000 (15:36 -0700)]
Add an iFrame title to the YouTube shortcode

To accommodate modern web accessibility as outlined here https://dequeuniversity.com/tips/provide-iframe-titles

7 years agotravis: Pull docutils out into requirements.txt
Bjørn Erik Pedersen [Fri, 11 Aug 2017 15:28:17 +0000 (17:28 +0200)]
travis: Pull docutils out into requirements.txt

7 years agotravis: Fix docutils setup
Bjørn Erik Pedersen [Fri, 11 Aug 2017 12:24:28 +0000 (14:24 +0200)]
travis: Fix docutils setup

7 years agotravis: Try to fix docutils setup on Linux
Bjørn Erik Pedersen [Fri, 11 Aug 2017 12:21:21 +0000 (14:21 +0200)]
travis: Try to fix docutils setup on Linux

7 years agooutput: Improve the base template identification
Bjørn Erik Pedersen [Fri, 11 Aug 2017 07:33:45 +0000 (09:33 +0200)]
output: Improve the base template identification

See https://discourse.gohugo.io/t/main-block-not-rendered-in-custom-archetypes-layout/7917/3

7 years agotpl/transform: Only strip p tag in markdownify if only one paragraph
Bjørn Erik Pedersen [Wed, 9 Aug 2017 07:54:21 +0000 (09:54 +0200)]
tpl/transform: Only strip p tag in markdownify if only one paragraph

Fixes #3040

7 years agoUpdate docs versiona and README
Bjørn Erik Pedersen [Thu, 10 Aug 2017 15:19:36 +0000 (17:19 +0200)]
Update docs versiona and README

Closes #3791

7 years agoSquashed 'docs/' content from commit f887bd7b
Bjørn Erik Pedersen [Thu, 10 Aug 2017 15:18:22 +0000 (17:18 +0200)]
Squashed 'docs/' content from commit f887bd7b

git-subtree-dir: docs
git-subtree-split: f887bd7b4e3e7c7e76cd63951e5b0d37d8fe0ac7

7 years agoMerge commit 'ec4e6f9df2ab9ffdc62a3f59675369096e0d3f77' as 'docs'
Bjørn Erik Pedersen [Thu, 10 Aug 2017 15:18:22 +0000 (17:18 +0200)]
Merge commit 'ec4e6f9df2ab9ffdc62a3f59675369096e0d3f77' as 'docs'

7 years agodocs: Re-integrate
Bjørn Erik Pedersen [Thu, 10 Aug 2017 15:17:07 +0000 (17:17 +0200)]
docs: Re-integrate

7 years agoRevert "Squashed 'docs/' changes from 35abbc86..f887bd7b"
Bjørn Erik Pedersen [Thu, 10 Aug 2017 13:00:30 +0000 (15:00 +0200)]
Revert "Squashed 'docs/' changes from 35abbc86..f887bd7b"

That did not go well...

This reverts commit 0373e4310263ac9f2b0307d437dcf69cf474eb69.

7 years agoSquashed 'docs/' changes from 35abbc86..f887bd7b
Bjørn Erik Pedersen [Thu, 10 Aug 2017 12:37:03 +0000 (14:37 +0200)]
Squashed 'docs/' changes from 35abbc86..f887bd7b

f887bd7b Add script to pull theme changes
e89bbb2f Update README
78155dec Merge commit '9301947b25099dd402065104b340b1a480906a74' as 'themes/gohugoioTheme'
9301947b Squashed 'themes/gohugoioTheme/' content from commit 7dd8a302
e7557a34 Remove gohugoioTheme submodule
a78bbe22 Add link to Go issue
31d1ef40 Add example for taxonomy terms with metadata
da978cc7 Fix links in Blackfriday extension documentation
950ad115 Fix reference to Blackfriday Extensions section
12d1d026 Add documentation for Blackfriday Extensions
8c2b8fb5 Fix explaination for uglyURLs config option
378aded7 Use community repository for Arch Linux installation guide
56455e7e Improve 0.26 release notes
be7db03a netlify: Build with the new 0.26
d430b2d3 Bump version to 0.26
61adaca0 releaser: Prepare repository for 0.27-DEV
abef29a6 releaser: Add release notes to /docs for release of 0.26
5937fe41 releaser: Bump versions for release of 0.26
033752f1 Merge commit 'e81208265bb3cdb7606d051a23d83aeebcb7d34d'
bec2bd12 Make the title case style guide configurable
f1739a44 Merge commit '50ec65fbe1a48475d3320775dab2c47389c02114'
a1aac0e5 helpers: Add support for French Guillemets
b8dc1592 doc: Merge commit '2c0d1ccdcd95de0bddeb39dca2e4d08f0d8056d7'
7b3e31b8 Merge commit '6dbde8d731f221b027c0c60b772ba82dad759943'
a37e7201 Bump versions to 0.26-DEV

git-subtree-dir: docs
git-subtree-split: f887bd7b4e3e7c7e76cd63951e5b0d37d8fe0ac7

7 years agoRemove the theme submodule from /docs
Bjørn Erik Pedersen [Thu, 10 Aug 2017 12:35:21 +0000 (14:35 +0200)]
Remove the theme submodule from /docs

See #3791

7 years agoAdd support for multiple config files via --config a.toml,b.toml,c.toml
Johan Gielstra [Wed, 9 Aug 2017 18:13:02 +0000 (13:13 -0500)]
Add support for multiple config files via --config a.toml,b.toml,c.toml

7 years agoRender task list item inside label for correct accessibility
Daniel Karlsson [Fri, 4 Aug 2017 15:08:27 +0000 (17:08 +0200)]
Render task list item inside label for correct accessibility

Fixes #3303

7 years agosource: Normalize UniqueID between Windows & Linux
Matthieu Harlé [Wed, 9 Aug 2017 13:42:50 +0000 (15:42 +0200)]
source: Normalize UniqueID between Windows & Linux

7 years agohugolib: More spelling
Bjørn Erik Pedersen [Tue, 8 Aug 2017 08:54:35 +0000 (10:54 +0200)]
hugolib: More spelling

7 years agoall: Fix spelling
Bjørn Erik Pedersen [Mon, 7 Aug 2017 18:19:24 +0000 (20:19 +0200)]
all: Fix spelling

And some other minor issues.

7 years agoall: gofmt -s
Bjørn Erik Pedersen [Mon, 7 Aug 2017 18:03:15 +0000 (20:03 +0200)]
all: gofmt -s

7 years agoreleaser: Prepare repository for 0.27-DEV
Bjørn Erik Pedersen [Mon, 7 Aug 2017 07:13:50 +0000 (09:13 +0200)]
releaser: Prepare repository for 0.27-DEV

[ci skip]

7 years agoreleaser: Add release notes to /docs for release of 0.26 v0.26
Bjørn Erik Pedersen [Mon, 7 Aug 2017 07:09:19 +0000 (09:09 +0200)]
releaser: Add release notes to /docs for release of 0.26

[ci skip]

7 years agoreleaser: Bump versions for release of 0.26
Bjørn Erik Pedersen [Mon, 7 Aug 2017 07:05:07 +0000 (09:05 +0200)]
releaser: Bump versions for release of 0.26

[ci skip]

7 years agoreleaser: Add release notes draft for 0.26
Bjørn Erik Pedersen [Mon, 7 Aug 2017 07:02:04 +0000 (09:02 +0200)]
releaser: Add release notes draft for 0.26

7 years agovendor: Update checksum for inflect
Bjørn Erik Pedersen [Mon, 7 Aug 2017 07:00:04 +0000 (09:00 +0200)]
vendor: Update checksum for inflect

Yes, I double checked.

7 years agoreleaser: Update to new release notes location
Bjørn Erik Pedersen [Mon, 7 Aug 2017 06:54:40 +0000 (08:54 +0200)]
releaser: Update to new release notes location

7 years agoMerge commit 'e81208265bb3cdb7606d051a23d83aeebcb7d34d'
Bjørn Erik Pedersen [Sun, 6 Aug 2017 15:24:51 +0000 (17:24 +0200)]
Merge commit 'e81208265bb3cdb7606d051a23d83aeebcb7d34d'

7 years agoSquashed 'docs/' changes from ef02e34e..35abbc86
Bjørn Erik Pedersen [Sun, 6 Aug 2017 15:24:51 +0000 (17:24 +0200)]
Squashed 'docs/' changes from ef02e34e..35abbc86

35abbc86 Add example with taxonomy for title template func
85e28c10 Remove comment from variable in front matter example
eee8543b Remove comment from variable in front matter example
13a8e0b7 Add missing closing and opening comment tags
83531772 Replace http://example.{com,org}/ with https://example.{com,org}/
6727d820 Update gh repo for issues in config
3a58818e Add note to install Testify
19f13e61 Fix YAML examples in taxonomies.md
dc4b90db Replace old RSS template with new embedded version (#116)
00f39bd7 camelCase output format options
902a14a1 Add missing word to pretty URLs explanation

git-subtree-dir: docs
git-subtree-split: 35abbc869199b852922c024a29e2370272a7c1c8

7 years agoreleaser: Include stats from hugoDocs
Bjørn Erik Pedersen [Sun, 6 Aug 2017 08:42:07 +0000 (10:42 +0200)]
releaser: Include stats from hugoDocs

Fixes #3727

7 years agohelpers: Remove some unused funcs
Bjørn Erik Pedersen [Thu, 3 Aug 2017 13:58:55 +0000 (15:58 +0200)]
helpers: Remove some unused funcs

7 years agoAdd some missing doc comments
Jorin Vogel [Wed, 2 Aug 2017 12:25:05 +0000 (14:25 +0200)]
Add some missing doc comments

As pointed out by the linter, some exported functions and types are
missing doc comments.
The linter warnings have been reduced from 194 to 116.
Not all missing comments have been added in this commit though.

7 years agoRemove sourceRelativeLinks
Bjørn Erik Pedersen [Wed, 2 Aug 2017 19:37:03 +0000 (21:37 +0200)]
Remove sourceRelativeLinks

Fixes #3766

7 years agohelpers: Fix broken TaskList in Markdown
Abdullah Diab [Sat, 29 Jul 2017 18:52:45 +0000 (20:52 +0200)]
helpers: Fix broken TaskList in Markdown

As per the referenced issue, if the task list in Markdown has
nothing before it, it will be rendered wrongly:

```
---
title: "My First Post"
date: 2017-07-29T20:21:57+02:00
draft: true
---

* [ ] TaskList

```

is rendered as:

```
<ul> class="task-list"
<li><input type="checkbox" disabled class="task-list-item"> TaskList</li>
</ul>
```

The problem lies in the `List` function of `HugoHTMLRenderer`, it had
a hardocded index of `4` for the first `>` of the list, it is used to
insert the class into the text before the closing bracket, but that
hardcoded index is only right when there is a newline before the
opening bracket, which is the case when there is anything in the
document before the task list, but if there is nothing, then there is
no newline, and the correct index of the first `>` will be `3`.

To fix that we're changing the hardcoded index to be dynamic by using
`bytes.Index` to find it properly. We're also adding a test case to
make sure this is tested against.

Fixes #3710

7 years agoSwitch from fork bep/inflect to markbates/inflect
Jorin Vogel [Tue, 1 Aug 2017 10:17:51 +0000 (12:17 +0200)]
Switch from fork bep/inflect to markbates/inflect

Original package has received updates the fork hasn't.
Without fork updates are easier to maintain.

7 years agoMake the title case style guide configurable
Bjørn Erik Pedersen [Sun, 30 Jul 2017 15:46:04 +0000 (17:46 +0200)]
Make the title case style guide configurable

This works for the `title` func and the other places where Hugo makes title case.

* AP style (new default)
* Chicago style
* Go style (what we have today)

Fixes #989

7 years agoRemove unused dependencies from vendor.json
Jorin Vogel [Mon, 31 Jul 2017 14:11:14 +0000 (16:11 +0200)]
Remove unused dependencies from vendor.json

7 years agomedia: Add missing JSON tags to Type
Bjørn Erik Pedersen [Mon, 31 Jul 2017 14:53:13 +0000 (16:53 +0200)]
media: Add missing JSON tags to Type

See https://github.com/gohugoio/hugoDocs/issues/114

7 years agomedia: Add JSON tags to Type
Bjørn Erik Pedersen [Mon, 31 Jul 2017 14:41:10 +0000 (16:41 +0200)]
media: Add JSON tags to Type

See https://github.com/gohugoio/hugoDocs/issues/114

7 years agooutput: Add JSON tags to Format
Bjørn Erik Pedersen [Mon, 31 Jul 2017 14:38:02 +0000 (16:38 +0200)]
output: Add JSON tags to Format

See https://github.com/gohugoio/hugoDocs/issues/114

7 years agoSquashed 'docs/' changes from 73f355ce..ef02e34e
Bjørn Erik Pedersen [Mon, 31 Jul 2017 07:21:24 +0000 (09:21 +0200)]
Squashed 'docs/' changes from 73f355ce..ef02e34e

ef02e34e Correct the mmark example frontmatter parameter
6e91e900 SectionPagesMenu > sectionPagesMenu
1a0db1a6 Adjust sectionPagesMenu
f9f87d9d Fix extension's missing period.
7062ae07 Remove Press and Articles page
771f2b38 Remove outdated and redudant content file for release notes
64cf47c3 Remove outdated note in docs contribution guide
bdb11b89 Fix typo
8324af70 Fixes broken link on Roadmap
d93f0992 functions: Add all missing binary comparison operators
fb7ae80a Fix typo in usage.md
fbdae08b Fix typo in content-management/taxonomies.md
66fab8d2 Make <title> less stuttery
b3cd4c22 Remove old temp release notes
5589ba96 Fix typos in templates/lists.md
af3a0807 http > HTTP
b2af90ae Remove formatting in description of blog article
6e2e60a9 Add blog article about Netlify files
0bb6f2f2 Use title in archetype file
7b2490ff Get the Archetypes up to new spec
f401d69b Load CSS and JS via HTTP/2 server push
4aef4944 Adjust titles
362acdb2 Fix typo in quickstart
c2440560 Remove inline icons from installation guide
d2edcbc3 Revert "Fix links to Disqus template documentation"
622f49cf Add a full commands section at the quick start end
752f065b Fix server command in README
93e08e19 Fix links to Disqus template documentation
5e0cfaa9 Adjust Linux install
d51397c2 Fix broken link in Quick Start
1fb39846 Add /quickstart alias to quickstart
7440616b Add new and simpler quickstart
b3ec6986 Let page title correspond to function name replaceRE
b44499c9 Add YouTube tutorial about taxonomies
88b9eb0e Add RSS templates example
6c0bde3f Update slice.md
6c212ea6 Reorder to match the following content order
d2122992 Complete "content" spelling under theme components
e4824eb3 Fix the output shortcode and its usage
0adfc945 Add archetypes YouTube video
638e9d9b Fix double "your" typo in taxonomies.md

git-subtree-dir: docs
git-subtree-split: ef02e34eaf296c3f94b4446b3c3347771e786057

7 years agoMerge commit '50ec65fbe1a48475d3320775dab2c47389c02114'
Bjørn Erik Pedersen [Mon, 31 Jul 2017 07:21:24 +0000 (09:21 +0200)]
Merge commit '50ec65fbe1a48475d3320775dab2c47389c02114'

7 years agohelpers: Add support for French Guillemets
Bjørn Erik Pedersen [Sat, 29 Jul 2017 08:10:40 +0000 (10:10 +0200)]
helpers: Add support for French Guillemets

Fixes #3725

7 years agovendor: Add support for French Guillemets
Bjørn Erik Pedersen [Fri, 28 Jul 2017 17:59:58 +0000 (19:59 +0200)]
vendor: Add support for French Guillemets

Fixes #3725

7 years agoRemove CODEOWNERS
Bjørn Erik Pedersen [Fri, 28 Jul 2017 17:34:51 +0000 (19:34 +0200)]
Remove CODEOWNERS

To prevent GitHub starting premature code reviews.

See #3737

7 years agoAdd -u flag for go get govendor in CONTRIBUTING.md
Anthony Fok [Fri, 28 Jul 2017 15:18:20 +0000 (09:18 -0600)]
Add -u flag for go get govendor in CONTRIBUTING.md

This to to ensure the reader is not stuck with a stale version
of govendor where `govendor get` may not actually build/install
the final hugo binary.

See kardianos/govendor#330

7 years agotpl: Accommodate gccgo in TestMethodToName
Anthony Fok [Fri, 28 Jul 2017 05:28:43 +0000 (23:28 -0600)]
tpl: Accommodate gccgo in TestMethodToName

Fixes #3744

7 years agotpl/collections: Fix intersect on []interface{} handling
Cameron Moore [Thu, 27 Jul 2017 22:23:49 +0000 (17:23 -0500)]
tpl/collections: Fix intersect on []interface{} handling

Fixes #3718

7 years agoAdd --debug option to be improved on over time
Max Rydahl Andersen [Thu, 27 Jul 2017 20:36:22 +0000 (22:36 +0200)]
Add --debug option to be improved on over time

Why:

 * first time using hugo I got very little info from --verbose output
   but I noticed there is quite a lot of useful DEBUG logging
 * asked for in other issues like https://github.com/gohugoio/hugo/issues/3514

This change addreses the need by:

 * adding a simple --debug flag which simply turns on debug level in stdout
   and logoutput if enabled.

7 years agovendor: Update dependencies for 0.26-DEV
Anthony Fok [Thu, 27 Jul 2017 19:45:43 +0000 (13:45 -0600)]
vendor: Update dependencies for 0.26-DEV

7 years agoDockerfile: Run go install with -ldflags '-s -w'
Anthony Fok [Wed, 26 Jul 2017 09:22:39 +0000 (03:22 -0600)]
Dockerfile: Run go install with -ldflags '-s -w'

This reduce the Docker image size from 27 MB to 20.5 MB.

7 years agoDockerfile: Reduce image size from 277MB to 27MB
Maik Ellerbrock [Wed, 26 Jul 2017 06:51:27 +0000 (08:51 +0200)]
Dockerfile: Reduce image size from 277MB to 27MB

"xtrem" awesome container size optimization
by using alpine:3.6 as base image
and by installing Go at build time.

See #3730 and #3738