brevno-suite/hugo
8 years agodocs: Add Firebase Hosting to usage.md
Michael Bleigh [Sun, 9 Oct 2016 23:04:53 +0000 (16:04 -0700)]
docs: Add Firebase Hosting to usage.md

8 years agodocs: Add Firebase Hosting to hosting providers
Michael Bleigh [Sun, 9 Oct 2016 23:02:56 +0000 (16:02 -0700)]
docs: Add Firebase Hosting to hosting providers

8 years agodocs: Add webhook to tools for deployments
Adnan Hajdarević [Mon, 10 Oct 2016 11:15:12 +0000 (13:15 +0200)]
docs: Add webhook to tools for deployments

8 years agodocs: Mention GitLab hosting support
Robert Schilling [Mon, 10 Oct 2016 11:28:59 +0000 (13:28 +0200)]
docs: Mention GitLab hosting support

8 years agoFix broken build
Bjørn Erik Pedersen [Mon, 10 Oct 2016 13:17:13 +0000 (15:17 +0200)]
Fix broken build

8 years agohugolib: Prevent TestShortcodeTweet from accessing network
Cameron Moore [Mon, 10 Oct 2016 13:10:14 +0000 (08:10 -0500)]
hugolib: Prevent TestShortcodeTweet from accessing network

Overload `getJSON` and return mock response.  Also standardized error
reporting strings in tests.

Fixes #2359

8 years agovendor: Update Viper
Bjørn Erik Pedersen [Mon, 10 Oct 2016 11:41:14 +0000 (13:41 +0200)]
vendor: Update Viper

See #2536

8 years agosnap: Add "network-bind" plug for "hugo server" to work
Anthony Fok [Sun, 9 Oct 2016 15:53:09 +0000 (09:53 -0600)]
snap: Add "network-bind" plug for "hugo server" to work

See #2532

8 years agodocs: Add Forestry.io to the tools section
digitalcraftsman [Sun, 9 Oct 2016 12:20:14 +0000 (14:20 +0200)]
docs: Add Forestry.io to the tools section

8 years agodocs: Refactor /docs to use the block keyword
Bjørn Erik Pedersen [Mon, 20 Jun 2016 13:20:44 +0000 (15:20 +0200)]
docs: Refactor /docs to use the block keyword

Fixes #2226

8 years agoAllow to set cache dir in config file
Dimitri Merejkowsky [Sun, 9 Oct 2016 09:00:36 +0000 (11:00 +0200)]
Allow to set cache dir in config file

8 years agocommand: Fix hugo new for multiple architectures
Chase Adams [Sun, 9 Oct 2016 08:59:07 +0000 (01:59 -0700)]
command: Fix hugo new for multiple architectures

Changes `%q` to `%s`. `%q` was safely escaping the `\` in windows so that it was printing `\\`. Uses `filepath.Join` for example filepath so that the output is OS specific and since this required splitting up the multiline string, it's refactored into a separate function..

Fixes #2401

8 years agovendor: Revert latest Viper
Bjørn Erik Pedersen [Sat, 8 Oct 2016 17:05:41 +0000 (19:05 +0200)]
vendor: Revert latest Viper

See #2536

8 years agoAdd quiet mode
Bjørn Erik Pedersen [Sat, 8 Oct 2016 16:26:16 +0000 (18:26 +0200)]
Add quiet mode

Needed to run benchmarks without the stats getting in the way of the benchmark stats.

Fixes #1218

8 years agovendor: Update dependencies
Bjørn Erik Pedersen [Sat, 8 Oct 2016 13:09:34 +0000 (15:09 +0200)]
vendor: Update dependencies

8 years agodocs: Stylize "Mac OS" as "macOS" in v0.17 release notes
Anthony Fok [Fri, 7 Oct 2016 16:43:34 +0000 (10:43 -0600)]
docs: Stylize "Mac OS" as "macOS" in v0.17 release notes

8 years agodocs: Fix grammar in v0.17 release notes
Cameron Moore [Fri, 7 Oct 2016 15:16:48 +0000 (10:16 -0500)]
docs: Fix grammar in v0.17 release notes

Also trimmed trailing whitespace.

8 years agosnapcraft.yaml: Bump version to 0.18-DEV
Anthony Fok [Fri, 7 Oct 2016 16:12:46 +0000 (10:12 -0600)]
snapcraft.yaml: Bump version to 0.18-DEV

and set grade to "devel" for the new development series.

8 years agorelease: version bump to v0.18-DEV
Steve Francia [Fri, 7 Oct 2016 15:11:43 +0000 (11:11 -0400)]
release: version bump to v0.18-DEV

8 years agosnapcraft.yaml: Bump version to 0.17 for release v0.17
Anthony Fok [Fri, 7 Oct 2016 14:42:05 +0000 (08:42 -0600)]
snapcraft.yaml: Bump version to 0.17 for release

8 years agocommands: Bump min_version to 0.17 for "new theme" subcommand
Anthony Fok [Fri, 7 Oct 2016 14:36:28 +0000 (08:36 -0600)]
commands: Bump min_version to 0.17 for "new theme" subcommand

8 years agorelease: version bump to 0.17
Steve Francia [Fri, 7 Oct 2016 14:08:57 +0000 (10:08 -0400)]
release: version bump to 0.17

8 years agovendor: update viper to latest version
Steve Francia [Fri, 7 Oct 2016 14:05:27 +0000 (10:05 -0400)]
vendor: update viper to latest version

8 years agoadd release notes for v0.17
Steve Francia [Fri, 7 Oct 2016 13:48:39 +0000 (09:48 -0400)]
add release notes for v0.17

8 years agodocs: Add rahulrai.in to the showcase
Rahul Rai [Tue, 4 Oct 2016 04:39:46 +0000 (15:39 +1100)]
docs: Add rahulrai.in to the showcase

8 years agoWhitelist startinline pygments option
Kim Gressens [Thu, 6 Oct 2016 12:59:49 +0000 (14:59 +0200)]
Whitelist startinline pygments option

8 years agotravis: Reintroduce asciidoctor to build
Bjørn Erik Pedersen [Thu, 6 Oct 2016 07:31:57 +0000 (09:31 +0200)]
travis: Reintroduce asciidoctor to build

Fixes #2524

8 years agosnapcraft.yaml: Change grade from "devel" to "stable"
Anthony Fok [Wed, 5 Oct 2016 13:01:57 +0000 (07:01 -0600)]
snapcraft.yaml: Change grade from "devel" to "stable"

So that the snap can be uploaded to the Candidate channel
in the Ubuntu store, now that the 0.17 release is impending.

8 years agotravis: Remove asciidoctor from build
Bjørn Erik Pedersen [Wed, 5 Oct 2016 12:36:50 +0000 (14:36 +0200)]
travis: Remove asciidoctor from build

It fails. Will have to investigate.

8 years agotravis: Fix asciidoctor build
Bjørn Erik Pedersen [Wed, 5 Oct 2016 12:27:52 +0000 (14:27 +0200)]
travis: Fix asciidoctor build

8 years agotravis: Lock asciidoctor to 1.5.4
Bjørn Erik Pedersen [Wed, 5 Oct 2016 12:11:56 +0000 (14:11 +0200)]
travis: Lock asciidoctor to 1.5.4

1.5.5 (the newly released) seems to break.

8 years agodocs: Regenerate commands doc
Bjørn Erik Pedersen [Wed, 5 Oct 2016 08:23:45 +0000 (10:23 +0200)]
docs: Regenerate commands doc

8 years agoAdd hugo env command
Bjørn Erik Pedersen [Wed, 5 Oct 2016 08:20:25 +0000 (10:20 +0200)]
Add hugo env command

Useful for bug reports.

Fixes #2523

8 years agodocs: Us vs you
Pine [Sun, 2 Oct 2016 22:45:23 +0000 (15:45 -0700)]
docs: Us vs you

8 years agodocs: Improve home page
Mark D. Blackwell [Sun, 2 Oct 2016 02:19:22 +0000 (22:19 -0400)]
docs: Improve home page

Organize CSS and Javascript files into directories, separating vendor
source code from home-grown.

Separate new properties and selectors in Bootstrap CSS (already edited
for Hugo) from:
1. Original property values; and
2. Changed property values.

For the home page:

1. Clarify the English text;
2. Add some element names to classes in CSS selectors (to speed loading);
3. Document the Owl Carousel and Highlight.js versions;
4. Add Owl Carousel's license;
5. Restore HTML comments to browser source views;
6. Make the beginning GitHub button transparent on focus (like the others);

7. For the final, colored Twitter and Github buttons:
  a. Remove the dotted box on focus; and
  b. Color them green on active.

8. To increase (layout/) source readability:
  a. Place `class` attributes before `href` attributes;
  b. In `class` attributes, place more-specific class names before
     less-specific; and
  c. Comment the beginnings and ends of Bootstrap rows.

9. To increase understandability during development:
  a. Document the meaning of CSS file, `HPstyles` by renaming it to
     `home-page-style`;
  b. Move inline styling to CSS stylesheets;
  c. Separate @media queries to a file;
  d. Separate the inline Owl Carousel custom Javascript to a file;
  e. Use regular Owl Carousel CSS files instead of minified ones; and
  f. Rename the wide, landscape desk background image filename from
     `desk-long` to `desk-wide`.

8 years agodoc: Improving language in archetypes doc
Tim Rourke [Sat, 1 Oct 2016 12:21:13 +0000 (07:21 -0500)]
doc: Improving language in archetypes doc

8 years agoUpdate Dockerfile to pull in missing test dependency
Andrew Speed [Sat, 1 Oct 2016 11:02:35 +0000 (12:02 +0100)]
Update Dockerfile to pull in missing test dependency

Add the missing github.com/fortytw2/leaktest dependency required for
hugo_site_tests.

8 years agodocs: Add Lipi to tools section
digitalcraftsman [Sat, 1 Oct 2016 09:43:38 +0000 (11:43 +0200)]
docs: Add Lipi to tools section

8 years agoFix URL in multilanguage sitemap index
Bjørn Erik Pedersen [Fri, 30 Sep 2016 14:24:09 +0000 (16:24 +0200)]
Fix URL in multilanguage sitemap index

Fixes #2509

8 years agodocs: Fix typo in tutorials/how-to-contribute-to-hugo.md
digitalcraftsman [Wed, 28 Sep 2016 15:27:18 +0000 (17:27 +0200)]
docs: Fix typo in tutorials/how-to-contribute-to-hugo.md

8 years agoContributing: Link the "How to contribute" tutorial
digitalcraftsman [Wed, 28 Sep 2016 15:25:24 +0000 (17:25 +0200)]
Contributing: Link the "How to contribute" tutorial

8 years agodocs: Add notes about multilingual menus
digitalcraftsman [Wed, 28 Sep 2016 15:17:57 +0000 (17:17 +0200)]
docs: Add notes about multilingual menus

8 years agoReadme: Clarify usage of Gitter
digitalcraftsman [Wed, 28 Sep 2016 12:51:40 +0000 (14:51 +0200)]
Readme: Clarify usage of Gitter

8 years agodocs: Add tryo labs article to press.md
patdhlk [Tue, 27 Sep 2016 19:53:00 +0000 (21:53 +0200)]
docs: Add tryo labs article to press.md

8 years agoDeprecate PageMeta.WordCount etc.
Bjørn Erik Pedersen [Wed, 28 Sep 2016 09:05:21 +0000 (11:05 +0200)]
Deprecate PageMeta.WordCount etc.

Fix #2503

8 years agoFix half-broken self-closing shortcodes
Bjørn Erik Pedersen [Tue, 27 Sep 2016 19:11:34 +0000 (21:11 +0200)]
Fix half-broken self-closing shortcodes

Fixes #2498

8 years agodocs: Fix typo on hosting-on-gitlab
Joseph Anderson [Tue, 27 Sep 2016 13:23:16 +0000 (08:23 -0500)]
docs: Fix typo on hosting-on-gitlab

Corrects "github" typo to "gitlab"

8 years agocommands: Revise instructions after "hugo new site"
Anthony Fok [Mon, 26 Sep 2016 20:23:57 +0000 (14:23 -0600)]
commands: Revise instructions after "hugo new site"

mainly to fit inside 80-column wide terminal windows.

See #1164

8 years agovendor: Update Viper
Bjørn Erik Pedersen [Mon, 26 Sep 2016 15:06:58 +0000 (17:06 +0200)]
vendor: Update Viper

See #2495

8 years agovendor: Update cast
Bjørn Erik Pedersen [Mon, 26 Sep 2016 08:50:38 +0000 (10:50 +0200)]
vendor: Update cast

See #2495

8 years agoFix leaky goroutine
Bjørn Erik Pedersen [Fri, 23 Sep 2016 17:04:19 +0000 (19:04 +0200)]
Fix leaky goroutine

By making the err chan buffered so both go routines can return.

Also make sure that any errors are logged.

Fixes #2488

8 years agoMake multilingual respect DisableSitemap
Bjørn Erik Pedersen [Fri, 23 Sep 2016 08:30:55 +0000 (10:30 +0200)]
Make multilingual respect DisableSitemap

Fixes #2485

8 years agoAdd TestChangeDefaultLanguage
Bjørn Erik Pedersen [Wed, 21 Sep 2016 12:09:41 +0000 (14:09 +0200)]
Add TestChangeDefaultLanguage

8 years agotpl: Polish i18n tests
Bjørn Erik Pedersen [Tue, 20 Sep 2016 11:22:56 +0000 (13:22 +0200)]
tpl: Polish i18n tests

* Make the type/var names more specific. They live in the test namespace, but there are other tests there.
* Camel case variable
* Small change suggested by Golint

8 years agotpl: Improve tests and docs for i18n
Mitchell Cohen [Tue, 20 Sep 2016 09:11:57 +0000 (05:11 -0400)]
tpl: Improve tests and docs for i18n

8 years agovendor: Update go-toml
Bjørn Erik Pedersen [Tue, 20 Sep 2016 08:35:11 +0000 (10:35 +0200)]
vendor: Update go-toml

Fixes #2439

8 years agovendor: Update dependencies
Bjørn Erik Pedersen [Mon, 19 Sep 2016 21:24:36 +0000 (23:24 +0200)]
vendor: Update dependencies

8 years agoRemove some unused vars
Bjørn Erik Pedersen [Mon, 19 Sep 2016 20:14:15 +0000 (22:14 +0200)]
Remove some unused vars

8 years agocommands: Add some band-aid to convert
Bjørn Erik Pedersen [Mon, 19 Sep 2016 08:52:07 +0000 (10:52 +0200)]
commands: Add some band-aid to convert

Fixes #2458

8 years agotpl: Set i18n bundle once per test run
Bjørn Erik Pedersen [Mon, 19 Sep 2016 00:44:21 +0000 (02:44 +0200)]
tpl: Set i18n bundle once per test run

No real practical difference, but more clear.

8 years agoAdd vendoring with govendor
Cameron Moore [Sun, 18 Sep 2016 22:10:10 +0000 (17:10 -0500)]
Add vendoring with govendor

8 years agoFix i18n with missing translations and add tests
Mitchell Cohen [Sun, 18 Sep 2016 20:18:13 +0000 (16:18 -0400)]
Fix i18n with missing translations and add tests

8 years agohelpers: Skip TestGetRealPath on Windows when not in CI
Bjørn Erik Pedersen [Sun, 18 Sep 2016 20:04:32 +0000 (22:04 +0200)]
helpers: Skip TestGetRealPath on Windows when not in CI

`os.Symlink` needs administrator rights on Windows,
and this seems to be the simplest fix while still getting the tests run on Appveyor.

Fixes #2476

8 years agoFail early in TestGetRealPath
Bjørn Erik Pedersen [Sun, 18 Sep 2016 17:52:42 +0000 (19:52 +0200)]
Fail early in TestGetRealPath

See #2476

8 years agoRevert the "standardize author data"
Bjørn Erik Pedersen [Sun, 18 Sep 2016 17:10:11 +0000 (19:10 +0200)]
Revert the "standardize author data"

There were some breaking changes etc. that is too late to fix for 0.17.

Let us think this through and add proper author support for Hugo 0.18.

Fixes #2464

Revert "docs: Add documentation for author profiles"

This reverts commit b6673e5309685ae162fdef2dc39c3ce4385c6005.

Revert "Add First Class Author Support"

This reverts commit cf978c06496d99e76b08418422dda5797d90fed6.

8 years agodocs: Improve Overview Configuration manual
Mark D. Blackwell [Sat, 17 Sep 2016 03:54:39 +0000 (23:54 -0400)]
docs: Improve Overview Configuration manual

8 years agoMake suure SectionPagesMenu setting is always loaded per language
Bjørn Erik Pedersen [Sat, 17 Sep 2016 14:53:58 +0000 (16:53 +0200)]
Make suure SectionPagesMenu setting is always loaded per language

8 years agodocs: Add documentation for author profiles
digitalcraftsman [Mon, 22 Aug 2016 15:53:30 +0000 (17:53 +0200)]
docs: Add documentation for author profiles

8 years agodocs: Add multilingual alias example
Mitchell Cohen [Fri, 16 Sep 2016 19:48:42 +0000 (15:48 -0400)]
docs: Add  multilingual alias example

8 years agoRemove Authors.Sort
Bjørn Erik Pedersen [Fri, 16 Sep 2016 22:50:11 +0000 (00:50 +0200)]
Remove Authors.Sort

We may add it again in the future, but let us try to keep the API as small as possible for now.

See #1850

8 years agoAdd First Class Author Support
Derek Perkins [Fri, 16 Sep 2016 02:28:13 +0000 (20:28 -0600)]
Add First Class Author Support

Closes #1850

8 years agoAdd snapcraft.yaml file
Daniel Holbach [Tue, 13 Sep 2016 09:52:54 +0000 (11:52 +0200)]
Add snapcraft.yaml file

8 years agodocs: Clarify difference between slug and url
digitalcraftsman [Fri, 16 Sep 2016 15:37:35 +0000 (17:37 +0200)]
docs: Clarify difference between slug and url

8 years agotpl: Add EnableMissingTranslationPlaceholders option
digitalcraftsman [Fri, 16 Sep 2016 15:20:29 +0000 (17:20 +0200)]
tpl: Add EnableMissingTranslationPlaceholders option

Fixes #2451

8 years agodocs: List i18n folder in source organization
digitalcraftsman [Fri, 16 Sep 2016 15:13:59 +0000 (17:13 +0200)]
docs: List i18n folder in source organization

8 years agodocs: Clarify usecase of data files
digitalcraftsman [Fri, 16 Sep 2016 15:05:38 +0000 (17:05 +0200)]
docs: Clarify usecase of data files

Fixes #1769

8 years agodocs: Fix example of displaying taxonomies
digitalcraftsman [Fri, 16 Sep 2016 14:43:50 +0000 (16:43 +0200)]
docs: Fix example of displaying taxonomies

Fixes #2216

8 years agodocs: List multilingual tpl vars and show menu creation
digitalcraftsman [Fri, 16 Sep 2016 13:35:19 +0000 (15:35 +0200)]
docs: List multilingual tpl vars and show menu creation

Fixes #2436

8 years agodocs: List config options for multilingual feature
digitalcraftsman [Fri, 16 Sep 2016 12:36:54 +0000 (14:36 +0200)]
docs: List config options for multilingual feature

8 years agodocs: Fix markdown in content/extras/scratch.md
Jacob Walker [Thu, 15 Sep 2016 16:35:39 +0000 (11:35 -0500)]
docs: Fix markdown in content/extras/scratch.md

8 years agodocs: Fix French translation in multilingual.md
Frank Taillandier [Fri, 9 Sep 2016 18:10:50 +0000 (20:10 +0200)]
docs: Fix French translation in multilingual.md

8 years agodocs: Improve Traversing Local Files
Mark D. Blackwell [Sat, 10 Sep 2016 22:23:23 +0000 (18:23 -0400)]
docs: Improve Traversing Local Files

8 years agoMake paginate settings configurable per language
Bjørn Erik Pedersen [Thu, 15 Sep 2016 07:32:52 +0000 (09:32 +0200)]
Make paginate settings configurable per language

Fixes #2449

8 years agoDo not add lang prefix in URL when set in frontmatter
Bjørn Erik Pedersen [Wed, 14 Sep 2016 16:51:34 +0000 (18:51 +0200)]
Do not add lang prefix in URL when set in frontmatter

Fixes #2450

8 years agoLazy calculate WordCount, ReadingTime and FuzzyWordCount
Bjørn Erik Pedersen [Wed, 17 Aug 2016 11:41:48 +0000 (13:41 +0200)]
Lazy calculate  WordCount, ReadingTime and FuzzyWordCount

This avoids having to execute these expensive operations for sites not using these values.

This commit sums up a set of wordcounting and autosummary related performance improvements.

The effect of these kind of depends on what features your site use, but a benchmark from 4 Hugo sites in the wild shows promise:

```
benchmark           old ns/op       new ns/op       delta
BenchmarkHugo-4     21293005843     20032857342     -5.92%

benchmark           old allocs     new allocs     delta
BenchmarkHugo-4     65290922       65186032       -0.16%

benchmark           old bytes      new bytes      delta
BenchmarkHugo-4     9771213416     9681866464     -0.91%
```

Closes #2378

8 years agoImprove TotalWords counter func
Bjørn Erik Pedersen [Wed, 17 Aug 2016 04:37:19 +0000 (06:37 +0200)]
Improve TotalWords counter func

It is obviously more efficient when we do not care about the actual words.

```
BenchmarkTotalWords-4            100000         18795 ns/op           0 B/op           0 allocs/op
BenchmarkTotalWordsOld-4          30000         46751 ns/op        6400 B/op           1 allocs/op
```

8 years agoAvoid splitting words for summary
Bjørn Erik Pedersen [Tue, 16 Aug 2016 20:50:15 +0000 (22:50 +0200)]
Avoid splitting words for summary

For people using autogenerated summaries, this is one of the hot spots in the memory department.

We don't need to split al the content into words to do proper summary truncation.

This is obviously more effective:

```
BenchmarkTestTruncateWordsToWholeSentence-4            300000          4720 ns/op           0 B/op           0 allocs/op
BenchmarkTestTruncateWordsToWholeSentenceOld-4         100000         17699 ns/op        3072 B/op           3 allocs/op
```

8 years agohelpers: Improve the language prefix logic
Bjørn Erik Pedersen [Tue, 13 Sep 2016 21:44:16 +0000 (23:44 +0200)]
helpers: Improve the language prefix logic

See #2444

8 years agohelpers: Avoid adding language prefix if already present
Bjørn Erik Pedersen [Tue, 13 Sep 2016 19:37:27 +0000 (21:37 +0200)]
helpers: Avoid adding language prefix if already present

Fixes #2444

8 years agocommands: Improve error messages in convert
Bjørn Erik Pedersen [Tue, 13 Sep 2016 17:11:36 +0000 (19:11 +0200)]
commands: Improve error messages in convert

See #2440

8 years agotpl: Make the *langURL funcs tace interface{}
Bjørn Erik Pedersen [Tue, 13 Sep 2016 15:07:52 +0000 (17:07 +0200)]
tpl: Make the *langURL funcs tace interface{}

Fixes #2447

8 years agocommands: Report errors in convert
Bjørn Erik Pedersen [Tue, 13 Sep 2016 08:49:19 +0000 (10:49 +0200)]
commands: Report errors in convert

Fixes #2440

8 years agoFix broken convert command
Bjørn Erik Pedersen [Tue, 13 Sep 2016 07:59:18 +0000 (09:59 +0200)]
Fix broken convert command

Fixes #2437

8 years agoAdd Language.LanguageName
Bjørn Erik Pedersen [Mon, 12 Sep 2016 18:57:52 +0000 (20:57 +0200)]
Add Language.LanguageName

Fixes #2435

8 years agoSupport site menu per language
Bjørn Erik Pedersen [Mon, 12 Sep 2016 18:41:52 +0000 (20:41 +0200)]
Support site menu per language

Fixes #2434

8 years agocommands: Fix typos
Albert [Mon, 12 Sep 2016 09:32:11 +0000 (15:32 +0600)]
commands: Fix typos

8 years agotpl: Extend where to iterate over maps
Cameron Moore [Mon, 12 Sep 2016 09:03:53 +0000 (04:03 -0500)]
tpl: Extend where to iterate over maps

Fixes #2028

8 years agotpl: Fix typos in tests
Cameron Moore [Wed, 17 Aug 2016 03:26:19 +0000 (22:26 -0500)]
tpl: Fix typos in tests

Closes #2370

8 years agohugolib: Fix typos in tests
Cameron Moore [Wed, 17 Aug 2016 03:26:42 +0000 (22:26 -0500)]
hugolib: Fix typos in tests

8 years agoReplace some leftover os.Stat with hugofs.Source
Bjørn Erik Pedersen [Sun, 11 Sep 2016 17:59:07 +0000 (19:59 +0200)]
Replace some leftover os.Stat with hugofs.Source