brevno-suite/hugo
7 years agoreleaser: Bump versions for release of 0.30.2
hugoreleaser [Thu, 19 Oct 2017 11:34:09 +0000 (11:34 +0000)]
releaser: Bump versions for release of 0.30.2

[ci skip]

7 years ago0.30.2 Release
Bjørn Erik Pedersen [Thu, 19 Oct 2017 11:30:39 +0000 (13:30 +0200)]
0.30.2 Release

7 years agoreleaser: Add release notes draft for 0.30.2
hugoreleaser [Thu, 19 Oct 2017 11:28:20 +0000 (11:28 +0000)]
releaser: Add release notes draft for 0.30.2

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

7 years agoreleaser: Improve release notes front matter
Bjørn Erik Pedersen [Thu, 19 Oct 2017 10:34:03 +0000 (12:34 +0200)]
releaser: Improve release notes front matter

7 years agocommands: Support Fast Render mode with sub-path in baseURL
Bjørn Erik Pedersen [Thu, 19 Oct 2017 08:09:04 +0000 (10:09 +0200)]
commands: Support Fast Render mode with sub-path in baseURL

Fixes #3981

7 years agoMerge commit '325009c3fd4ac90021897b7e3e025c14e70ce162'
Bjørn Erik Pedersen [Thu, 19 Oct 2017 05:59:48 +0000 (07:59 +0200)]
Merge commit '325009c3fd4ac90021897b7e3e025c14e70ce162'

7 years agoSquashed 'docs/' changes from 4628b9ec2..e65df1059
Bjørn Erik Pedersen [Thu, 19 Oct 2017 05:58:46 +0000 (07:58 +0200)]
Squashed 'docs/' changes from 4628b9ec2..e65df1059

e65df1059 Bump to v0.30
e9e118730 releaser: Prepare repository for 0.31-DEV
e6f2508d4 releaser: Add release notes to /docs for release of 0.30
9c5d6a65b releaser: Bump versions for release of 0.30
88bf0e663 Merge commit 'ecf5e081b5540e69f4af330233f39a07baf53846'
6c7191331 Merge commit 'dae5a7c61cceeb0de59f2d755f63e453f71dd9b2'
efd1821bd tpl: Add errorf template function
0cf8dc046 Change SummaryLength to be configurable (#3924)
9e8c09652 tpl: Add os.fileExists template function
e969cfcd7 Merge commit '9d68f695e782c6a83c77aff13317c7a22c694c98'
1a2d516a0 tpl: Add float template function
5310162dc releaser: Prepare repository for 0.30-DEV
648fdf2d0 releaser: Add release notes to /docs for release of 0.29
b2f46992c releaser: Bump versions for release of 0.29
ec447e043 releaser: Prepare repository for 0.29-DEV
9f469e93a releaser: Add release notes to /docs for release of 0.28
c91c18ebc releaser: Bump versions for release of 0.28
253d2ede2 Merge commit '61c27b58b353c73772aae572c7d822fdfdf7791b'
e35b93cc7 Merge commit '30694a133a88d5f76a51d0372646e10cbeca7691'
9fad59f66 Merge commit '7a89dce53bfbd67a17442a8f9be8fa895fc4f9b1'
4221c2855 Merge commit 'ba45da9d03056447e4873de13d4e0f8d658a769b'
0010b6743 releaser: Prepare repository for 0.28-DEV
9e71765cd releaser: Add release notes to /docs for release of 0.27.1
56206b90d releaser: Bump versions for release of 0.27.1
59522fca0 releaser: Prepare repository for 0.28-DEV
4686686d2 releaser: Add release notes to /docs for release of 0.27
0cd9a5d58 releaser: Bump versions for release of 0.27
d21a59d2d docs: Merge commit '1b4319be62ba071f79e90ef32dbe92eb893429f7'
9c4ff2d8e docs: Document Related Content
887fb1af7 docs: Merge commit '7d63a23b0c68d9cd7c7c09c2755619237bc03485'
c8163b51b Update docs versiona and README
f782c9959 Merge commit 'ec4e6f9df2ab9ffdc62a3f59675369096e0d3f77' as 'docs'
d384c661f docs: Re-integrate
9a2eb0f1d Revert "Squashed 'docs/' changes from 35abbc86..f887bd7b"
0373e4310 Squashed 'docs/' changes from 35abbc86..f887bd7b
ea2cc26b3 Remove the theme submodule from /docs
0f9f73cce Add support for multiple config files via --config a.toml,b.toml,c.toml
c8257f8b7 Render task list item inside label for correct accessibility
0abdeeef6 source: Normalize UniqueID between Windows & Linux
e2f8664ef hugolib: More spelling
46ac74537 all: Fix spelling
4b54fb070 all: gofmt -s
40d7d3baa releaser: Prepare repository for 0.27-DEV
f090c2711 releaser: Add release notes to /docs for release of 0.26
b36f6e31e releaser: Bump versions for release of 0.26
0f51e4926 releaser: Add release notes draft for 0.26
62583db50 vendor: Update checksum for inflect
0d495d537 releaser: Update to new release notes location
22b213b1a Merge commit 'e81208265bb3cdb7606d051a23d83aeebcb7d34d'
e81208265 Squashed 'docs/' changes from ef02e34e..35abbc86
11e5d456e releaser: Include stats from hugoDocs
f768c27f0 helpers: Remove some unused funcs
81c13171a Add some missing doc comments
9891c0fb0 Remove sourceRelativeLinks
481924b34 helpers: Fix broken TaskList in Markdown
09907d36a Switch from fork bep/inflect to markbates/inflect
8fb594bfb Make the title case style guide configurable
9b4170ce7 Remove unused dependencies from vendor.json
6acbe41f0 media: Add missing JSON tags to Type
e321306c6 media: Add JSON tags to Type
9c1977872 output: Add JSON tags to Format
50ec65fbe Squashed 'docs/' changes from 73f355ce..ef02e34e
1c18f3fc4 Merge commit '50ec65fbe1a48475d3320775dab2c47389c02114'
cb9dfc261 helpers: Add support for French Guillemets
c4a0b6e8a vendor: Add support for French Guillemets
a8080c084 Remove CODEOWNERS
84710eb3e Add -u flag for go get govendor in CONTRIBUTING.md
555a9bc80 tpl: Accommodate gccgo in TestMethodToName
55d0b8941 tpl/collections: Fix intersect on []interface{} handling
aee2b0678 Add --debug option to be improved on over time
c1a5da977 vendor: Update dependencies for 0.26-DEV
9ed48c1c9 Dockerfile: Run go install with -ldflags '-s -w'
bfe0bfbbd Dockerfile: Reduce image size from 277MB to 27MB
606d6a8c9 Dockerfile: Optimize Docker image size
12e049520 docs: Add RSS template lookup example
6cd33f695 tpl: Use hash for cache key
dbe63970e hugolib: Support reflinks starting with a slash
0c90e6d71 Change "hugodocs" to "hugoDocs" to match GitHub's default URL
b60aa1a50 helpers: Add --trace to asciidoctor args
ff433f981 Add script to pull in docs changes
2c0d1ccdc Squashed 'docs/' changes from b0470688..73f355ce
f387cb1b3 doc: Merge commit '2c0d1ccdcd95de0bddeb39dca2e4d08f0d8056d7'
40566ec98 Remove ^M from file to make line-endings consistent
7759a98f7 Clarify the repo choice in the contribution guidelines
720786cd3 Add note about doc-related pull requests in contribution guide
214e16eca appveyor: Update submodules
a2fb8150c Add some README info about the docs repo
73273d4e8 Add the docs theme to .gitmodules
4c220c4ac Merge commit '6dbde8d731f221b027c0c60b772ba82dad759943'
6dbde8d73 Squashed 'docs/' changes from f3c88b08..b0470688
deccc5400 hubolib: Add HasShortcode
00b590d7a Improve the twitter card template
ea5e9e346 Add GOEXE to support building with different versions of `go`
61bb3ccab hugolib: Improve panic handling in layout rendering
794ea21e9 hugolib: Make template panics into nice error messages
91f410ea9 Bump versions to 0.26-DEV
0e25f1e96 Revert "Revert "vendor: Update dependencies for 0.26-DEV""
aded65b71 releaser: Prepare repository for 0.25-DEV
bbd33dbf5 releaser: Add release notes to /docs for release of 0.25.1
0e09be7b3 releaser: Bump versions for release of 0.25.1
195f94575 releaser: Ignore openbsd/arm
44b8f740e releaser: Add release notes draft for 0.25.1
a48e13234 Revert "vendor: Update dependencies for 0.26-DEV"
7f82b41a2 parser: Final (!) fix for issue with escaped JSON front matter
84db6c74a parser: Fix issue with escaped JSON front matter
e0cf2e05b tpl/collections: Add some empty slice tests to intersect
dbbc5c481 tpl/collections: Fix union when the first slice is empty
7bcc1ce65 commands: Navigate to changed on CREATE When working with content from IntelliJ IDE, like WebStorm, every file save is followed by two events: "RENAME" and then "CREATE".
fd41e70cf Add first draft of CODEOWNERS
4ec8ee7fb vendor: Update dependencies for 0.26-DEV
1e19a9845 releaser: Prepare repository for 0.26-DEV
6fb556367 releaser: Add release notes to /docs for release of 0.25
51bcd5083 releaser: Fix tag push
6e086e3d0 releaser: Bump versions for release of 0.25
5895e32b0 releaser: Add release notes draft for 0.25
b2dcd867f Revert "vendor: Update dependencies"
d2c24baaf vendor: Update dependencies
4989950d4 releaser: Use real theme count in template
a358b33f2 docs: Regenerate the docs helpers
a392fca96 docs: Regenerate commands doc
75f782f03 Revert "commands: Adjust docs path"
37c69054e Squashed 'docs/' changes from 5d9a6703..f3c88b08
e00f5c9c0 docs: Merge docs commit '37c69054e294bf554be03cf7e4c01e1f586e6943'
477684022 releaser: Adjustments
70d8ddcb6 releaser: Revise the docs handling to match new subtree
5f831a622 releaser: Replace the magic version handling
e7a54e7af releaser: Add --try flag to ease testing
aa6b1b9be output: Support templates per site/language
a1d260b41 hugolib: Extend the sections API
dd9b1baab hugolib: Make .Site.Sections return the top level sections
1039356ed commands: Support human-readable YAML boolean values in undraft
ccdd08d57 tpl/collections: Add Pages support to Intersect and Union
d12cf5a25 tpl/collections: Fix In function for JSON arrays
e10e51a00 parser: Fix handling of JSON front matter with escaped quotes
34c566773 tpl/math: Add log function
41805dca9 hugolib: Render 404.html for all languages
7ee1f25e9 hugo import jekyll support nested _posts directories
3aa0e16d0 cache: Add even more concurrency to test
b3c8056de cache: Add concurrent cache test
fe132e1c3 vendor: Add missing WebP dependencies
8431c8d39 tpl: Add WebP images support
da72805a4 tpl: Only show post's own keywords in schema.org
72fd87171 hugolib: Add more summary test
118f8f7cf Dockerfile: Update Dockerfile and add Docker optimizations
56d82aa02 hugofs: Fix typo in code comment
eccb06478 tpl: Simplify the Disqus template a little bit (#3655)
2e1e4934b tpl: Improve the built-in Disqus template (#3639)
a54404968 helpers: Add Blackfriday 'joinLines' extension support (#3574)
bfce30d85 helpers: add --initial-header-level=2 to rst2html (#3528)
30e14cc31 Make `--navigateToChanged` more robust on Windows
c825a7312 Support open "current content page" in browser
7198ea8a1 Revert "Remove docs building from CI builds"
dd78d5b23 Squashed 'docs/' content from commit 5d9a6703
a7765bb3c Merge commit 'dd78d5b23fe597f4461aa4199401b4e07c0612e2' as 'docs'

git-subtree-dir: docs
git-subtree-split: e65df1059549d951a45853576374be4088ded1d3

7 years agoreleaser: Prepare repository for 0.31-DEV
hugoreleaser [Thu, 19 Oct 2017 05:43:34 +0000 (05:43 +0000)]
releaser: Prepare repository for 0.31-DEV

[ci skip]

7 years agoreleaser: Add release notes to /docs for release of 0.30.1 v0.30.1
hugoreleaser [Thu, 19 Oct 2017 05:41:50 +0000 (05:41 +0000)]
releaser: Add release notes to /docs for release of 0.30.1

[ci skip]

7 years agoreleaser: Bump versions for release of 0.30.1
hugoreleaser [Thu, 19 Oct 2017 05:41:50 +0000 (05:41 +0000)]
releaser: Bump versions for release of 0.30.1

[ci skip]

7 years agoRelease 0.30.1
Bjørn Erik Pedersen [Thu, 19 Oct 2017 05:36:15 +0000 (07:36 +0200)]
Release 0.30.1

7 years agoreleaser: Add release notes draft for 0.30.1
hugoreleaser [Thu, 19 Oct 2017 05:30:23 +0000 (05:30 +0000)]
releaser: Add release notes draft for 0.30.1

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

7 years agocircleci: Must go get mage
Bjørn Erik Pedersen [Thu, 19 Oct 2017 05:26:27 +0000 (07:26 +0200)]
circleci: Must go get mage

See https://github.com/magefile/mage/issues/79

7 years agoreleaser: Correctly set final version on patch releases
Bjørn Erik Pedersen [Thu, 19 Oct 2017 05:12:23 +0000 (07:12 +0200)]
releaser: Correctly set final version on patch releases

7 years agoBump Snap to go1.9.1
Bjørn Erik Pedersen [Thu, 19 Oct 2017 05:06:38 +0000 (07:06 +0200)]
Bump Snap to go1.9.1

7 years agoFix hugo -w
Bjørn Erik Pedersen [Wed, 18 Oct 2017 16:35:25 +0000 (18:35 +0200)]
Fix hugo -w

Fixes #3980

7 years agoSimplify Site benchmarks
Bjørn Erik Pedersen [Wed, 18 Oct 2017 14:46:55 +0000 (16:46 +0200)]
Simplify Site benchmarks

Now running `./benchSite.sh` should give a good baseline.

7 years agoFix mage vs make issues
Bjørn Erik Pedersen [Wed, 18 Oct 2017 05:56:10 +0000 (07:56 +0200)]
Fix mage vs make issues

And remove Makefile ... for good.

Fixes #3969

7 years agoRevert "tplimpl: Output xmlns:xhtml only if there are translations available"
Bjørn Erik Pedersen [Tue, 17 Oct 2017 18:56:50 +0000 (20:56 +0200)]
Revert "tplimpl: Output xmlns:xhtml only if there are translations available"

This reverts commit 0859d9dfe647db3b8a192da38ad7efb5480a29a1.

Fixes #3978

7 years agoreleaser: Prepare repository for 0.31-DEV
hugoreleaser [Mon, 16 Oct 2017 08:40:34 +0000 (08:40 +0000)]
releaser: Prepare repository for 0.31-DEV

[ci skip]

7 years agoreleaser: Add release notes to /docs for release of 0.30 v0.30
hugoreleaser [Mon, 16 Oct 2017 08:39:00 +0000 (08:39 +0000)]
releaser: Add release notes to /docs for release of 0.30

[ci skip]

7 years agoreleaser: Bump versions for release of 0.30
hugoreleaser [Mon, 16 Oct 2017 08:39:00 +0000 (08:39 +0000)]
releaser: Bump versions for release of 0.30

[ci skip]

7 years agoRelease Hugo 0.30
Bjørn Erik Pedersen [Mon, 16 Oct 2017 08:30:08 +0000 (10:30 +0200)]
Release Hugo 0.30

7 years agoUse Make for the release for now
Bjørn Erik Pedersen [Mon, 16 Oct 2017 08:16:58 +0000 (10:16 +0200)]
Use Make for the release for now

[ci skip]

7 years agoreleaser: Add release notes draft for 0.30
hugoreleaser [Sun, 15 Oct 2017 12:53:00 +0000 (12:53 +0000)]
releaser: Add release notes draft for 0.30

7 years agoFix CircleCI build issue
Bjørn Erik Pedersen [Sun, 15 Oct 2017 11:41:26 +0000 (13:41 +0200)]
Fix CircleCI build issue

7 years agoReplace make with mage in CircleCI build
Bjørn Erik Pedersen [Sun, 15 Oct 2017 09:08:25 +0000 (11:08 +0200)]
Replace make with mage in CircleCI build

Updates #3969

7 years agoUpdate CircleCI build to use Mage
Bjørn Erik Pedersen [Sun, 15 Oct 2017 08:59:16 +0000 (10:59 +0200)]
Update CircleCI build to use Mage

Fixes #3969

7 years agoSquashed 'docs/' changes from 000ab7c42..4628b9ec2
Bjørn Erik Pedersen [Sun, 15 Oct 2017 08:20:55 +0000 (10:20 +0200)]
Squashed 'docs/' changes from 000ab7c42..4628b9ec2

4628b9ec2 commands: Regen CLI doc
2525f2ed0 data: Regenerate docs helper
6f5a0eb19 Add Hugo 0.30 poster image
72c3fac9e Merge branch 'chroma-next2' into next
364973d3f Fix typo in syntax highlighting.
ce10cc02e Update Chroma highlighting docs
9dcc4d4dd Update robots.md
1e64cb483 Rename title of cross references' page
d6dfbbc51 Add warning about MMark and TOCs
e8d259d32 Fix link to subsection in page
6adead19d Merge commit '040d8d2833c26c53cf9f0e035910821ed50e3863'
040d8d283 Squashed 'themes/gohugoioTheme/' changes from cdaa89c8..6b632895
bde95d890 Add Atlas starter kit
fc40d078d Remove page arg from examples of relref shortcode
c578620b5 Remove page arg from examples of ref shortcode
ee81931a4 Remove delimiters in YAML and TOML config examples
62d7b269f Clarify that .Lastmod automatically uses .GitInfo.AuthorDate (#226)

git-subtree-dir: docs
git-subtree-split: 4628b9ec2c52df4de673a4d6b9621a65d8e8f5a4

7 years agoMerge commit 'ecf5e081b5540e69f4af330233f39a07baf53846'
Bjørn Erik Pedersen [Sun, 15 Oct 2017 08:20:55 +0000 (10:20 +0200)]
Merge commit 'ecf5e081b5540e69f4af330233f39a07baf53846'

7 years agoAdd table linenos support for Chroma highlighter
Bjørn Erik Pedersen [Fri, 13 Oct 2017 07:37:47 +0000 (09:37 +0200)]
Add table linenos support for Chroma highlighter

Fixes #3915

7 years agoOnly re-render the view(s) you're working on
Bjørn Erik Pedersen [Sat, 14 Oct 2017 11:40:43 +0000 (13:40 +0200)]
Only re-render the view(s) you're working on

Hugo already, in its server mode,  support partial rebuilds. To put it simply: If you change `about.md`, only that content page is read and processed, then Hugo does some processing (taxonomies etc.) and the full site is rendered.
This commit covers the rendering part: We now only re-render the pages you work on, i.e. the last n pages you watched in the browser (which obviously also includes the  page in the example above).

To be more specific: When you are running the hugo server in watch (aka. livereload) mode, and change a template or a content file, then we do a partial re-rendering of the following:

* The current content page (if it is a content change)
* The home page
* Up to the last 10 pages you visited on the site.

This should in most cases be enough, but if you navigate to something completely different, you may see stale content. Doing an edit will then refresh that page.

Note that this feature is enabled by default. To turn it off, run `hugo server --disableFastRender`.

Fixes #3962
See  #1643

7 years agoMake sure Date and PublishDate is always set to a value if one is available
Bjørn Erik Pedersen [Fri, 13 Oct 2017 08:21:28 +0000 (10:21 +0200)]
Make sure Date and PublishDate is always set to a value if one is available

Fixes #3854

7 years agoAdd correct config file name to verbose server log
Michael Henderson [Mon, 9 Oct 2017 04:23:07 +0000 (22:23 -0600)]
Add correct config file name to verbose server log

Server logging uses the wrong variable when displaying
the configuration file name. This update changes the
log to use the `config` variable.

7 years agometrics: Reset benchmark timer
Bjørn Erik Pedersen [Sat, 7 Oct 2017 18:41:25 +0000 (20:41 +0200)]
metrics: Reset benchmark timer

7 years agometrics: Detect partialCached candidates
Bjørn Erik Pedersen [Wed, 4 Oct 2017 20:12:51 +0000 (22:12 +0200)]
metrics: Detect partialCached candidates

This commit adds a "cache potential" column when running `hugo --templateMetrics --templateMetricsHints`.

This is only calculated when `--templateMetricsHints` is set, as these calculations has an negative effect on the other timings.

This gives a value for partials only, and is a number between 0-100 that indicates if `partial` can be replaced with `partialCached`.

100 means that all execution of the same partial resulted in the same output.

You should do  some manual research before going "all cache".

7 years agotpl: Rework the partial test and benchmarks
Bjørn Erik Pedersen [Sat, 7 Oct 2017 14:52:35 +0000 (16:52 +0200)]
tpl: Rework the partial test and benchmarks

7 years agoSimplify HugoNoGitInfo in magefile
Cameron Moore [Thu, 5 Oct 2017 17:54:40 +0000 (12:54 -0500)]
Simplify HugoNoGitInfo in magefile

7 years agoAdd mage installation step to CONTRIBUTING.md
digitalcraftsman [Thu, 5 Oct 2017 18:09:21 +0000 (20:09 +0200)]
Add mage installation step to CONTRIBUTING.md

7 years agoBump Go versions in Travis config
Bjørn Erik Pedersen [Thu, 5 Oct 2017 16:49:58 +0000 (18:49 +0200)]
Bump Go versions in Travis config

7 years agoChange last 'make' statements to 'mage'
Hallgeir Holien [Thu, 5 Oct 2017 15:03:34 +0000 (17:03 +0200)]
Change last 'make' statements to 'mage'

7 years agoMinor README changes
Steve Divskinsy [Thu, 5 Oct 2017 10:44:43 +0000 (21:14 +1030)]
Minor README changes

7 years agoReplace make with mage
Bjørn Erik Pedersen [Thu, 5 Oct 2017 07:15:02 +0000 (09:15 +0200)]
Replace make with mage

Fixes #3937

7 years agoMerge commit 'dae5a7c61cceeb0de59f2d755f63e453f71dd9b2'
Bjørn Erik Pedersen [Wed, 4 Oct 2017 07:27:30 +0000 (09:27 +0200)]
Merge commit 'dae5a7c61cceeb0de59f2d755f63e453f71dd9b2'

7 years agoSquashed 'docs/' changes from 36d7e22f5..000ab7c42
Bjørn Erik Pedersen [Wed, 4 Oct 2017 07:27:29 +0000 (09:27 +0200)]
Squashed 'docs/' changes from 36d7e22f5..000ab7c42

000ab7c42 Fix `ref` and `relref` shortcode usage patterns
4e7123d20 Add som code fence lang tags
21d4f97d1 Update homepage for ox-hugo tool
668969fc4 Remove superflous back ticks
f78cf6490 Fix code example
05aaee8ce Remove background color from code shortcode
dcb0998d0 Add a Build Performance page draft
50e04593a Document templateMetrics usage
67ad36691 Merge commit 'f66d59b8991c264c3366895b5e148ea810a184cd'
f66d59b89 Squashed 'themes/gohugoioTheme/' changes from ca53082d..cdaa89c8

git-subtree-dir: docs
git-subtree-split: 000ab7c423341bb215d4ccb4a9e54d3d64957e24

7 years agohelpers: Fix broken test
Bjørn Erik Pedersen [Wed, 4 Oct 2017 07:27:15 +0000 (09:27 +0200)]
helpers: Fix broken test

7 years agovendor: Update deps
Bjørn Erik Pedersen [Wed, 4 Oct 2017 06:46:11 +0000 (08:46 +0200)]
vendor: Update deps

7 years agotplimpl: Output xmlns:xhtml only if there are translations available
Jamie Connolly [Tue, 3 Oct 2017 13:31:12 +0000 (14:31 +0100)]
tplimpl: Output xmlns:xhtml only if there are translations available

7 years agoCreate magefile from Makefile
Nate Finch [Tue, 3 Oct 2017 02:29:31 +0000 (22:29 -0400)]
Create magefile from Makefile

This commit makes a magefile.go that should be functionally equivalent to
the current Makefile.

7 years agotpl: Add errorf template function
Brendan Roy [Sat, 30 Sep 2017 10:00:19 +0000 (20:00 +1000)]
tpl: Add errorf template function

Add template function that will build a string from the given format
string and arguments, then log it to ERROR. This has an intended
side-effect of causing the build to fail, when executed.

Resolves #3817

7 years agoClean up lint in various packages
Cameron Moore [Tue, 26 Sep 2017 02:25:33 +0000 (21:25 -0500)]
Clean up lint in various packages

Changes fall into one of the following:

- gofmt -s
- receiver name is inconsistent
- omit unused 2nd value from range
- godoc comment formed incorrectly
- err assigned and not used
- if block ends with a return statement followed by else

7 years agohelpers: Fix broken Chroma test
Bjørn Erik Pedersen [Fri, 29 Sep 2017 08:40:56 +0000 (10:40 +0200)]
helpers: Fix broken Chroma test

7 years agohugolib: Fix broken hightlighter smoke test
Bjørn Erik Pedersen [Fri, 29 Sep 2017 08:10:13 +0000 (10:10 +0200)]
hugolib: Fix broken hightlighter smoke test

7 years agovendor: Update dependencies
Bjørn Erik Pedersen [Fri, 29 Sep 2017 07:54:03 +0000 (09:54 +0200)]
vendor: Update dependencies

7 years agovendor: Update Chroma
Bjørn Erik Pedersen [Fri, 29 Sep 2017 07:10:35 +0000 (09:10 +0200)]
vendor: Update Chroma

7 years agoChange SummaryLength to be configurable (#3924)
Brendan Roy [Fri, 29 Sep 2017 07:04:55 +0000 (17:04 +1000)]
Change SummaryLength to be configurable (#3924)

Move SummaryLength into the ContentSpec struct and refactor the
relevant summary functions to be methods of ContentSpec. The new
summaryLength struct member is configurable by the summaryLength config
value, and the default remains 70. Also updates hugolib/page to use the
refactored methods.

Resolves #3734

7 years agotpl: Add os.fileExists template function
digitalcraftsman [Thu, 28 Sep 2017 17:52:34 +0000 (19:52 +0200)]
tpl: Add os.fileExists template function

Fixes #3839

7 years agoMerge commit '9d68f695e782c6a83c77aff13317c7a22c694c98'
Bjørn Erik Pedersen [Thu, 28 Sep 2017 15:22:55 +0000 (17:22 +0200)]
Merge commit '9d68f695e782c6a83c77aff13317c7a22c694c98'

7 years agoSquashed 'docs/' changes from 20959c7b..36d7e22f
Bjørn Erik Pedersen [Thu, 28 Sep 2017 15:20:10 +0000 (17:20 +0200)]
Squashed 'docs/' changes from 20959c7b..36d7e22f

36d7e22f Document fmt.{print, println} template functions
79a72fce Fix link to page variables
00342ca9 Fix broken link on highlight page
15f44952 Fix link in v0.28 release notes
0100df73 Fix code examples for math.{Ceil, Floor, Round}
a354a69b Fix broken netlify.toml
4995e5df Merge branch 'master' of github.com:gohugoio/hugoDocs
9cdd990a Hugo 0.29
463558f9 Document math.Log template function
588499af Add nohup.out to .gitignore
db8ddcf7 Change name of post files in example to use post prefix
296ec01f Add ox-hugo Emacs package to the tools section
f060d6d1 Fix math.Ceil, Floor, and Round naming
a2262d24 Document strings.TrimPrefix and TrimSuffix template functions
80c1ce63 Document strings.TrimLeft and TrimRight template functions
2921088d Document urls.Parse template function
f0133079 Document math.{ceil, floor, round} template functions
82863808 Fix typo in migration tools section
d5215d61 Add link to syntax hl docs in release notes
541f0686 Update versions
275ce2b4 Update 0.28 release notes
886713a1 Add release notes for 0.28
bed02e5f Merge branch 'next'
8e3b1ac4 Add a note about branches
1662b9d0 Add missing Disqus links in templates/internal.md

git-subtree-dir: docs
git-subtree-split: 36d7e22f5c21c550bd87782d2ddca666178fe1ff

7 years agotpl: Add float template function
Lucas Jenss [Wed, 27 Sep 2017 22:35:47 +0000 (00:35 +0200)]
tpl: Add float template function

Add a template function that allows conversion to float. This is
useful, for example, when passing aspect ratios into templates,
which tend to not be integers.

Fixes #3307

7 years agohugolib: Move metrics output to the end of the site build
Cameron Moore [Wed, 27 Sep 2017 19:17:43 +0000 (14:17 -0500)]
hugolib: Move metrics output to the end of the site build

7 years agoexamples: Fix `now` usage in footer
Cameron Moore [Wed, 27 Sep 2017 03:09:47 +0000 (22:09 -0500)]
examples: Fix `now` usage in footer

7 years agoreleaser: Prepare repository for 0.30-DEV
hugoreleaser [Tue, 26 Sep 2017 19:24:34 +0000 (19:24 +0000)]
releaser: Prepare repository for 0.30-DEV

[ci skip]

7 years agoreleaser: Add release notes to /docs for release of 0.29 v0.29
hugoreleaser [Tue, 26 Sep 2017 19:23:15 +0000 (19:23 +0000)]
releaser: Add release notes to /docs for release of 0.29

[ci skip]

7 years agoreleaser: Bump versions for release of 0.29
hugoreleaser [Tue, 26 Sep 2017 19:23:15 +0000 (19:23 +0000)]
releaser: Bump versions for release of 0.29

[ci skip]

7 years agoreleaser: Add release notes for 0.29
hugoreleaser [Tue, 26 Sep 2017 18:57:20 +0000 (18:57 +0000)]
releaser: Add release notes for 0.29

7 years agotpl: Set Metrics at creation time
Bjørn Erik Pedersen [Tue, 26 Sep 2017 18:42:40 +0000 (20:42 +0200)]
tpl: Set Metrics at creation time

7 years agometrics: Fix sort order
Bjørn Erik Pedersen [Tue, 26 Sep 2017 18:31:40 +0000 (20:31 +0200)]
metrics: Fix sort order

Highest first.

7 years agoRevert "vendor: Update Chroma"
Bjørn Erik Pedersen [Tue, 26 Sep 2017 18:06:58 +0000 (20:06 +0200)]
Revert "vendor: Update Chroma"

This reverts commit cb8eb472602754b310eaf7a10271149d1e1f5d75.

7 years agometrics: Add simple template metrics feature
Cameron Moore [Tue, 26 Sep 2017 18:03:04 +0000 (13:03 -0500)]
metrics: Add simple template metrics feature

7 years agovendor: Update Chroma
Bjørn Erik Pedersen [Tue, 26 Sep 2017 18:00:39 +0000 (20:00 +0200)]
vendor: Update Chroma

7 years agocommands: Make noHTTPCache default false
Bjørn Erik Pedersen [Tue, 26 Sep 2017 16:58:44 +0000 (18:58 +0200)]
commands: Make noHTTPCache default false

The other way was a mistake.

7 years agotpl: Add math.Ceil, Floor, and Round to method mappings
Cameron Moore [Tue, 26 Sep 2017 02:01:59 +0000 (21:01 -0500)]
tpl: Add math.Ceil, Floor, and Round to method mappings

7 years agoSplit go build in Dockerfile
Thibault Jamet [Thu, 7 Sep 2017 13:17:44 +0000 (15:17 +0200)]
Split go build in Dockerfile

To maximize the usage of cache, split the govendor get in steps:
- govendor fetch to get the pinned versions of dependencies
- go install to actually build the binary

Doing so allows not to re-download the whole dependencies when changing
lines in hugo repository

The current Dockerfile generates an image of 16.6MB

Signed-off-by: Thibault Jamet <tjamet@users.noreply.github.com>
7 years agoUpdate Dockerfile to benefit build cache
Thibault Jamet [Thu, 7 Sep 2017 13:08:56 +0000 (15:08 +0200)]
Update Dockerfile to benefit build cache

Docker has recently introduces buikld-stages (as of version 17.05)

Build stages allows to benefit the docker build cache as well as
reducing the size of the resulting image c.f.
https://docs.docker.com/engine/userguide/eng-image/multistage-build/

This change allows to have faster builds when running `docker build`
several times after changing some little code

Signed-off-by: Thibault Jamet <tjamet@users.noreply.github.com>
7 years agosnap: Add git to snap package for GitInfo
Guy Halse [Mon, 25 Sep 2017 11:51:00 +0000 (13:51 +0200)]
snap: Add git to snap package for GitInfo

Add git into the staged packages, so that the git binary is available
and hugo --enableGitInfo works for users of the snap package.

Fixes gohugoio/hugo#3896

7 years agoreleaser: Prepare repository for 0.29-DEV
hugoreleaser [Mon, 25 Sep 2017 08:00:38 +0000 (08:00 +0000)]
releaser: Prepare repository for 0.29-DEV

[ci skip]

7 years agoreleaser: Add release notes to /docs for release of 0.28 v0.28
hugoreleaser [Mon, 25 Sep 2017 07:59:12 +0000 (07:59 +0000)]
releaser: Add release notes to /docs for release of 0.28

[ci skip]

7 years agoreleaser: Bump versions for release of 0.28
hugoreleaser [Mon, 25 Sep 2017 07:59:12 +0000 (07:59 +0000)]
releaser: Bump versions for release of 0.28

[ci skip]

7 years agoreleaser: Add final 0.28 release notes
Bjørn Erik Pedersen [Mon, 25 Sep 2017 07:56:20 +0000 (09:56 +0200)]
releaser: Add final 0.28 release notes

7 years agoreleaser: Add release notes draft for 0.28
hugoreleaser [Mon, 25 Sep 2017 07:15:23 +0000 (07:15 +0000)]
releaser: Add release notes draft for 0.28

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

7 years agoSquashed 'docs/' changes from 1662b9d0..20959c7b
Bjørn Erik Pedersen [Mon, 25 Sep 2017 07:02:42 +0000 (09:02 +0200)]
Squashed 'docs/' changes from 1662b9d0..20959c7b

20959c7b Rewrite the syntax highlighter docs etc.
92435459 Add a note about branches
REVERT: 1662b9d0 Add missing Disqus links in templates/internal.md

git-subtree-dir: docs
git-subtree-split: 20959c7b9124341dfc4d139748244818b9cb3641

7 years agoMerge commit '61c27b58b353c73772aae572c7d822fdfdf7791b'
Bjørn Erik Pedersen [Mon, 25 Sep 2017 07:02:42 +0000 (09:02 +0200)]
Merge commit '61c27b58b353c73772aae572c7d822fdfdf7791b'

7 years agoSquashed 'docs/' changes from 5be6fef0..1662b9d0
Bjørn Erik Pedersen [Mon, 25 Sep 2017 07:02:34 +0000 (09:02 +0200)]
Squashed 'docs/' changes from 5be6fef0..1662b9d0

1662b9d0 Add missing Disqus links in templates/internal.md

git-subtree-dir: docs
git-subtree-split: 1662b9d0bcb6b8ebdb665f7a477d38c93c5f8faf

7 years agoMerge commit '30694a133a88d5f76a51d0372646e10cbeca7691'
Bjørn Erik Pedersen [Mon, 25 Sep 2017 07:02:34 +0000 (09:02 +0200)]
Merge commit '30694a133a88d5f76a51d0372646e10cbeca7691'

7 years agoUse Chroma as new default syntax highlighter
Bjørn Erik Pedersen [Mon, 25 Sep 2017 06:59:02 +0000 (08:59 +0200)]
Use Chroma as new default syntax highlighter

If you want to use Pygments, set `pygmentsUseClassic=true` in your site config.

Fixes #3888

7 years agotpl: Add urls.Parse function
Cameron Moore [Sun, 24 Sep 2017 00:57:28 +0000 (19:57 -0500)]
tpl: Add urls.Parse function

Add a urls.Parse template function that front-ends url.Parse from the Go
stdlib.

Fixes #3849

7 years agotpl: Add math.Ceil, Floor, and Round
Cameron Moore [Sun, 24 Sep 2017 01:07:55 +0000 (20:07 -0500)]
tpl: Add math.Ceil, Floor, and Round

Ceil and Floor are frontends for the stdlib math functions. The Round
implementation is essentially the same thing except that the Go stdlib
doesn't include a Round implementation in a stable release yet.  I've
included the Round function slated for Go 1.10.

Fixes #3883

7 years agoMake noHTTPCache default on
Bjørn Erik Pedersen [Sat, 23 Sep 2017 19:17:51 +0000 (21:17 +0200)]
Make noHTTPCache default on

This is a development server, so that makes the most sense.

See #3897

7 years agoTrim newlines in the hightlight shortcode
Bjørn Erik Pedersen [Sat, 23 Sep 2017 16:14:07 +0000 (18:14 +0200)]
Trim newlines in the hightlight shortcode

Fixes #3898

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 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 agoMerge commit '7a89dce53bfbd67a17442a8f9be8fa895fc4f9b1'
Bjørn Erik Pedersen [Sat, 23 Sep 2017 08:08:55 +0000 (10:08 +0200)]
Merge commit '7a89dce53bfbd67a17442a8f9be8fa895fc4f9b1'

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'