brevno-suite/hugo
7 years agoreleaser: Add release notes to /docs for release of 0.38.1 v0.38.1
hugoreleaser [Thu, 5 Apr 2018 16:35:25 +0000 (16:35 +0000)]
releaser: Add release notes to /docs for release of 0.38.1

[ci skip]

7 years agoreleaser: Bump versions for release of 0.38.1
hugoreleaser [Thu, 5 Apr 2018 16:35:25 +0000 (16:35 +0000)]
releaser: Bump versions for release of 0.38.1

[ci skip]

7 years agoRelease 0.38.1
Bjørn Erik Pedersen [Thu, 5 Apr 2018 16:31:17 +0000 (18:31 +0200)]
Release 0.38.1

7 years agoreleaser: Add release notes draft for 0.38.1
hugoreleaser [Thu, 5 Apr 2018 16:27:24 +0000 (16:27 +0000)]
releaser: Add release notes draft for 0.38.1

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

7 years agoFix livereload for the home page bundle
Bjørn Erik Pedersen [Thu, 5 Apr 2018 16:02:52 +0000 (18:02 +0200)]
Fix livereload for the home page bundle

Fixes #4576

7 years agosnap: Revert to "mage test" because "mage check" fails
Anthony Fok [Thu, 5 Apr 2018 15:35:47 +0000 (09:35 -0600)]
snap: Revert to "mage test" because "mage check" fails

"mage check", which runs "go test", gofmt, "go vet", and
"go test -race", fails one way or another especially on
on non-amd64 architectures, and sometimes even on amd64 too.

Partially reverting my undocumented change in commit 294c0f8.

Fixes #4578

7 years agosnap: Add bash completion
Anthony Fok [Thu, 5 Apr 2018 13:15:51 +0000 (07:15 -0600)]
snap: Add bash completion

7 years agosnap: Fix empty BuildDate in "hugo version"
Anthony Fok [Thu, 5 Apr 2018 13:14:51 +0000 (07:14 -0600)]
snap: Fix empty BuildDate in "hugo version"

Previously, "snap run hugo version" returns an empty BuildDate like so:

    Hugo Static Site Generator v0.38 linux/amd64 BuildDate:

Fix by overriding the default build target of snapcraft's go plugin.

7 years agoFix some livereload content regressions
Bjørn Erik Pedersen [Thu, 5 Apr 2018 08:57:13 +0000 (10:57 +0200)]
Fix some livereload content regressions

Introduced in Hugo 0.38.

Fixes #4566

7 years agoUpdate github.com/bep/gitmap to fix snap build
Anthony Fok [Thu, 5 Apr 2018 12:01:11 +0000 (06:01 -0600)]
Update github.com/bep/gitmap to fix snap build

Fixes #4538

7 years agoFix two tests that are broken on Windows
Brian Fitzgerald [Fri, 23 Mar 2018 05:11:35 +0000 (22:11 -0700)]
Fix two tests that are broken on Windows

Put guards around TestPageBundlerCaptureSymlinks and
TestPageBundlerSiteWitSymbolicLinksInContent so that they aren't
run on Windows (they both use symbolic links and the Go library
implementation requires administrator mode on Windows).

7 years agocommands: Handle mass content etc. edits in server mode
Bjørn Erik Pedersen [Wed, 4 Apr 2018 07:29:59 +0000 (09:29 +0200)]
commands: Handle mass content etc. edits in server mode

Fixes #4563

7 years agoreleaser: Prepare repository for 0.39-DEV
hugoreleaser [Mon, 2 Apr 2018 11:06:04 +0000 (11:06 +0000)]
releaser: Prepare repository for 0.39-DEV

[ci skip]

7 years agoreleaser: Add release notes to /docs for release of 0.38 v0.38
hugoreleaser [Mon, 2 Apr 2018 11:03:32 +0000 (11:03 +0000)]
releaser: Add release notes to /docs for release of 0.38

[ci skip]

7 years agoreleaser: Bump versions for release of 0.38
hugoreleaser [Mon, 2 Apr 2018 11:03:32 +0000 (11:03 +0000)]
releaser: Bump versions for release of 0.38

[ci skip]

7 years agoRelease 0.38
Bjørn Erik Pedersen [Mon, 2 Apr 2018 10:53:20 +0000 (12:53 +0200)]
Release 0.38

7 years agoreleaser: Add release notes draft for 0.38
hugoreleaser [Mon, 2 Apr 2018 10:32:48 +0000 (10:32 +0000)]
releaser: Add release notes draft for 0.38

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

7 years agotravis: Clean up and increase verbosity
Anthony Fok [Mon, 2 Apr 2018 06:44:05 +0000 (00:44 -0600)]
travis: Clean up and increase verbosity

7 years agoMerge commit 'ed8bf081fdbf336e026517b7e1b123c039014ab5'
Bjørn Erik Pedersen [Mon, 2 Apr 2018 06:53:34 +0000 (08:53 +0200)]
Merge commit 'ed8bf081fdbf336e026517b7e1b123c039014ab5'

7 years agoSquashed 'docs/' changes from 3068989b9..d9c8fc220
Bjørn Erik Pedersen [Mon, 2 Apr 2018 06:53:34 +0000 (08:53 +0200)]
Squashed 'docs/' changes from 3068989b9..d9c8fc220

d9c8fc220 Rebuild Chroma CSS
a9168b106 Adds missing word
ebaa172af Remove note about enabling custom GitLab domains
2ef3918b2 Add code toggler
41878b6ca Clarify the use of .GetPage with page bundles
ffcb26270 Fix broken link for configuration.md
1e72e2b3e Fixed typo in heading - Hightlighter
72b2db77c Change "on the form" to "of the form"
e15e6966f Fix example GitHub url

git-subtree-dir: docs
git-subtree-split: d9c8fc220710fe2bdcc2c61afd9e40e7233953cf

7 years agodocs: Generate docshelper data
Bjørn Erik Pedersen [Mon, 2 Apr 2018 06:52:10 +0000 (08:52 +0200)]
docs: Generate docshelper data

And fix build ...

7 years agodocshelper: List Chroma lexers
Bjørn Erik Pedersen [Mon, 2 Apr 2018 06:49:54 +0000 (08:49 +0200)]
docshelper: List Chroma lexers

Fixes #4554

7 years agotravis: Run "gem install" without sudo
Anthony Fok [Mon, 2 Apr 2018 04:48:31 +0000 (22:48 -0600)]
travis: Run "gem install" without sudo

Running "sudo gem install" was causing random errors like the following:

ERROR:  While executing gem ... (Errno::EACCES)
    Permission denied @ rb_sysopen - /home/travis/.rvm/gems/ruby-2.4.1/cache/asciidoctor-1.5.6.2.gem

Perhaps sudo is no longer necessary, even on OS X?  :-)

7 years agoAdd support for a content dir set per language
Bjørn Erik Pedersen [Wed, 21 Mar 2018 16:21:46 +0000 (17:21 +0100)]
Add support for a content dir set per language

A sample config:

```toml
defaultContentLanguage = "en"
defaultContentLanguageInSubdir = true

[Languages]
[Languages.en]
weight = 10
title = "In English"
languageName = "English"
contentDir = "content/english"

[Languages.nn]
weight = 20
title = "På Norsk"
languageName = "Norsk"
contentDir = "content/norwegian"
```

The value of `contentDir` can be any valid path, even absolute path references. The only restriction is that the content dirs cannot overlap.

The content files will be assigned a language by

1. The placement: `content/norwegian/post/my-post.md` will be read as Norwegian content.
2. The filename: `content/english/post/my-post.nn.md` will be read as Norwegian even if it lives in the English content folder.

The content directories will be merged into a big virtual filesystem with one simple rule: The most specific language file will win.
This means that if both `content/norwegian/post/my-post.md` and `content/english/post/my-post.nn.md` exists, they will be considered duplicates and the version inside `content/norwegian` will win.

Note that translations will be automatically assigned by Hugo by the content file's relative placement, so `content/norwegian/post/my-post.md` will be a translation of `content/english/post/my-post.md`.

If this does not work for you, you can connect the translations together by setting a `translationKey` in the content files' front matter.

Fixes #4523
Fixes #4552
Fixes #4553

7 years agoUpdate stale.yml
Bjørn Erik Pedersen [Sun, 1 Apr 2018 19:36:00 +0000 (21:36 +0200)]
Update stale.yml

7 years agoUpdate Chroma
Bjørn Erik Pedersen [Sat, 31 Mar 2018 08:50:43 +0000 (10:50 +0200)]
Update Chroma

Fixes #4549

7 years agoAdd .Site.IsServer
Ricardo N Feliciano [Fri, 30 Mar 2018 18:15:22 +0000 (14:15 -0400)]
Add .Site.IsServer

Fixes #4478

7 years agotravis: Move to Ubuntu Trusty image
Anthony Fok [Mon, 26 Mar 2018 15:09:58 +0000 (09:09 -0600)]
travis: Move to Ubuntu Trusty image

7 years agosnap: Remove "make" from build-packages because we use mage now
Anthony Fok [Mon, 26 Mar 2018 13:02:45 +0000 (07:02 -0600)]
snap: Remove "make" from build-packages because we use mage now

7 years agosnapcraft.yaml: Call mage with "-v" for debugging
Anthony Fok [Mon, 26 Mar 2018 10:56:15 +0000 (04:56 -0600)]
snapcraft.yaml: Call mage with "-v" for debugging

See #4538

7 years agohugolib: Fix freeze in invalid front matter error case
Bjørn Erik Pedersen [Sat, 24 Mar 2018 08:19:49 +0000 (09:19 +0100)]
hugolib: Fix freeze in invalid front matter error case

Fixes #4526

7 years agoAllow themes to define output formats, media types and params
Bjørn Erik Pedersen [Sun, 18 Mar 2018 10:07:24 +0000 (11:07 +0100)]
Allow themes to define output formats, media types and params

This allows a `config.toml` (or `yaml`, ´yml`, or `json`)  in the theme to set:

1) `params` (but cannot override params in project. Will also get its own "namespace", i.e. `{{ .Site.Params.mytheme.my_param }}` will be the same as `{{ .Site.Params.my_param }}` providing that the main project does not define a param with that key.
2) `menu` -- but cannot redefine/add menus in the project. Must create its own menus with its own identifiers.
3) `languages` -- only `params` and `menu`. Same rules as above.
4) **new** `outputFormats`
5) **new** `mediaTypes`

This should help with the "theme portability" issue and people having to copy and paste lots of setting into their projects.

Fixes #4490

7 years agohugolib: Add ConfigSourceDescriptor
Bjørn Erik Pedersen [Sun, 18 Mar 2018 09:32:29 +0000 (10:32 +0100)]
hugolib: Add ConfigSourceDescriptor

To prepare for config in themes

See #4490

7 years agoBump some deprecations
Bjørn Erik Pedersen [Tue, 20 Mar 2018 20:13:44 +0000 (21:13 +0100)]
Bump some deprecations

7 years agoSquashed 'docs/' changes from 211a3c613..3068989b9
Bjørn Erik Pedersen [Tue, 20 Mar 2018 20:11:45 +0000 (21:11 +0100)]
Squashed 'docs/' changes from 211a3c613..3068989b9

3068989b9 Merge commit '7ae9cf2ccb3eecc1ff50f686925249d01cf37c6c'
7ae9cf2cc Squashed 'themes/gohugoioTheme/' changes from d7a475e7..a1768ebb
b55157fae Revert "Anchorify headings up to h4"
b63dd5566 Anchorify headings up to h4
edfe36a19 Test out trac as highlighter style
98dc8d269 Update multilingual.md
a6e4d92c0 Update multilingual.md
86a90edf9 Fix typo 'If will' to 'It will' line 41
6b626fac6 Add a tip for testing custom 404.html on hugo server
6bfc17cfc Update few links to now point to gohugoio organization repos
f66bad971 Remove unintended alias
3bc56e9ec Fix shortcode name in example: image -> img
251142388 Fix broken link
27245af6a Fix the minimum required git version for GH Pages flow
aefc87b4d Fix link in Forestry showcase
489ec5ea0 Squashed 'themes/gohugoioTheme/' changes from 6f3a8bf5..d7a475e7
308a616fd Merge commit '489ec5ea03799fa092d891838c1655e60b34f337'
a80859814 Adjust showcase description

git-subtree-dir: docs
git-subtree-split: 3068989b9c601146e8e6be8c4e8e2b2c679e5230

7 years agoMerge commit '0a23baa6a90901f772c234107c4f12c16c76f4aa'
Bjørn Erik Pedersen [Tue, 20 Mar 2018 20:11:45 +0000 (21:11 +0100)]
Merge commit '0a23baa6a90901f772c234107c4f12c16c76f4aa'

7 years agotpl/transform: Add a comments test for Remarshal
Bjørn Erik Pedersen [Tue, 20 Mar 2018 17:23:32 +0000 (18:23 +0100)]
tpl/transform: Add a comments test for Remarshal

See #4521

7 years agoUpdate Chroma to get Go template support
Bjørn Erik Pedersen [Mon, 19 Mar 2018 08:19:47 +0000 (09:19 +0100)]
Update Chroma to get Go template support

Fixes #4515

7 years agocommands: Recover from error in server
Bjørn Erik Pedersen [Sun, 18 Mar 2018 11:54:06 +0000 (12:54 +0100)]
commands: Recover from error in server

Issue introduced some days ago.

Fixes #4516

7 years agoSpring test cleaning, take 2
Bjørn Erik Pedersen [Sat, 17 Mar 2018 18:24:02 +0000 (19:24 +0100)]
Spring test cleaning, take 2

7 years agohugolib: Test cleaning #1
Bjørn Erik Pedersen [Fri, 16 Mar 2018 17:27:44 +0000 (18:27 +0100)]
hugolib: Test cleaning #1

7 years agohugolib: Trim some now superflous tests
Bjørn Erik Pedersen [Fri, 16 Mar 2018 13:44:55 +0000 (14:44 +0100)]
hugolib: Trim some now superflous tests

These were written as a development aid in some kind of structural change at some point.

They served their purpose then, but these are tests covered elsewhere and is deleted to reduce maintainance.

The reported test covrage is not reduced because of this.

7 years agohugolib: Add Reset method to delete key from Scratch
cmal [Fri, 16 Mar 2018 23:13:23 +0000 (00:13 +0100)]
hugolib: Add Reset method to delete key from Scratch

7 years agoreleaser: Adjust the "thank you" section
Bjørn Erik Pedersen [Fri, 16 Mar 2018 19:56:28 +0000 (20:56 +0100)]
releaser: Adjust the "thank you" section

7 years agodocs: Add docs for lang.Merge
Bjørn Erik Pedersen [Fri, 16 Mar 2018 09:08:01 +0000 (10:08 +0100)]
docs: Add docs for lang.Merge

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

7 years agoAdd a way to merge pages by language
Bjørn Erik Pedersen [Thu, 15 Mar 2018 08:37:30 +0000 (09:37 +0100)]
Add a way to merge pages by language

As an example:

```html
{{ $pages := .Site.RegularPages | lang.Merge $frSite.RegularPages | lang.Merge $enSite.RegularPages }}
```

Will "fill in the gaps" in the current site with, from left to right, content from the French site, and lastly the English.

Fixes #4463

7 years agoSquashed 'docs/' changes from 4e7e1815b..211a3c613
Bjørn Erik Pedersen [Fri, 16 Mar 2018 08:44:54 +0000 (09:44 +0100)]
Squashed 'docs/' changes from 4e7e1815b..211a3c613

211a3c613 Prepare the forestry.io article for release
23995d6b4 Add forestry.io to showcase
3f177c94e Fix some typos (found by codespell)
dc26e0a5a Clarify the default for site config files and multiple config files
c87c9c62e Review and update the Site config documentation for consistency
a29edc50c Fix the default value of rssLimit site config
83f3c46b0 Minor style fix
4f860d1a2 Typo capitalization fixes
7851345c8 Add docs about comments within templates
d129b4a28 Make the recommendation to use partial over template consistent
6cd260a41 Update index.md
a2787e1a4 Add Let’s Encrypt showcase
7e664f69e Update configuration.md
8002120f1 Update multilingual.md
702b46a62 Add documentation for the disableLanguages setting
cb3d395de Fix content type reference
d33226924 Update Page Kinds documentation
8203f649d Fix misformed markdown link
19e99c957 Add Section definition

git-subtree-dir: docs
git-subtree-split: 211a3c6136c69f49baeae6cd35e5a8853cddf710

7 years agoMerge commit '3886fc1fef6ac19d58b9ba1bb642d0c6c9a54031'
Bjørn Erik Pedersen [Fri, 16 Mar 2018 08:44:54 +0000 (09:44 +0100)]
Merge commit '3886fc1fef6ac19d58b9ba1bb642d0c6c9a54031'

7 years agocreate: Remove archetype title/date warning
Bjørn Erik Pedersen [Thu, 15 Mar 2018 07:52:20 +0000 (08:52 +0100)]
create: Remove archetype title/date warning

Closes #4504

7 years agoresource: Fix path duplication/flattening in processed images
Bjørn Erik Pedersen [Wed, 14 Mar 2018 08:33:32 +0000 (09:33 +0100)]
resource: Fix path duplication/flattening in processed images

Fixes #4502
Closes #4501

7 years agohugolib: Remove superflous debug file
Bjørn Erik Pedersen [Mon, 12 Mar 2018 22:35:38 +0000 (23:35 +0100)]
hugolib: Remove superflous debug file

7 years agohugolib: Simplify Prev/Next
Bjørn Erik Pedersen [Mon, 12 Mar 2018 21:13:25 +0000 (22:13 +0100)]
hugolib: Simplify Prev/Next

7 years agodocs: Add docs on the new front matter configuration
Bjørn Erik Pedersen [Sun, 11 Mar 2018 21:51:11 +0000 (22:51 +0100)]
docs: Add docs on the new front matter configuration

See #4495

7 years agohugolib: Adjust GitInfo author date test
Bjørn Erik Pedersen [Sun, 11 Mar 2018 20:17:41 +0000 (21:17 +0100)]
hugolib: Adjust GitInfo author date test

Now that we have a commit to assert against.

See #4495

7 years agoRefactor the GitInfo into the date handlers
Bjørn Erik Pedersen [Sun, 11 Mar 2018 17:59:11 +0000 (18:59 +0100)]
Refactor the GitInfo into the date handlers

Fixes #4495

7 years agoMerge commit 'c0290655825e7bb36e13fb39f89d85b392cf1adc'
Bjørn Erik Pedersen [Sun, 11 Mar 2018 19:40:26 +0000 (20:40 +0100)]
Merge commit 'c0290655825e7bb36e13fb39f89d85b392cf1adc'

7 years agoSquashed 'docs/' changes from 715741f73..4e7e1815b
Bjørn Erik Pedersen [Sun, 11 Mar 2018 19:39:20 +0000 (20:39 +0100)]
Squashed 'docs/' changes from 715741f73..4e7e1815b

4e7e1815b Fix some typos
d23d8f5c4 Remove 'fundamentals' category from function pages
52fa65e15 Mention Chroma as the preferred syntax highlighter
64ca535db Merge commit '8762aee8afe30bec6f1fbc9560749983dc44d60b'
8762aee8a Squashed 'themes/gohugoioTheme/' changes from 396b859f..6f3a8bf5
03f0673a9 Move the gopher to the theme
320e268cd Spelling
e45b640f7 More layout lookup work
fe0ad9d9d Sync the YAML config menu example with TOML's
b9505fc70 Remove template reference to ordinal numbers
0fa2532d3 Remove deprecated Hugoidx, add native hugo solution
2152b907c Fix a link in the last commit
47614f416 Manually specifying heading anchors in Markdown content
9d6770d2a Release notes 0.37.1
e1eed8b27 Remove some unused images
e960046f5 releaser: Prepare repository for 0.38-DEV
4fa83a4ee releaser: Add release notes to /docs for release of 0.37.1
46c879995 releaser: Bump versions for release of 0.37.1
fb3ac5a3e releaser: Prepare repository for 0.38-DEV
4870c8e7b Update archetypes.md
232c0b578 Merge commit '2b18014fd0aa99e9f1a5610ba875101351a90de3'
2b18014fd Squashed 'themes/gohugoioTheme/' changes from fe71e360..396b859f
62567e9aa Add some "writing guidelines"
7cfd530d2 Revise the archetype docs
5d4c3c03c Update data-templates.md
e5fee3099 Update page-bundles.md
ca7f03c8d Update page-bundles.md
2a7fdc269 Fix typo 'vailable' to 'available' line 53
999b75201 LastMod should be Lastmod?
099f46ca5 Fix spacing in content-management/types.md
6bcdc58ef Word choice improvements
20e8a21f6 update rss linking docs
7ef44d262 Add some missing configuration entries
f1c7aa568 Sort config list
5cb8ceade Create a proper definition list for the configuration settings
25dffe4ac Send custom dimensions in GA
55df01a34 Fix broken gtag
6c8772aad Add site to GA config
e63acb894 Remove conflicting release note for 0.35
f30083a23 Add branch to GA config
99caedb96 Set the small-multiples to draft
4a33c70ab Polish the Small Multiples showcase
7b2f1ea2e Add small multiples showcase
e78e96bae Add new sponsor
c42943041 updated to new Forestry logo
e07eda273 Add OS env to faq
414f0dbc6 Release Hugo 0.37
85f0cc324 Merge branch 'temp37'
1e6da9497 Rebuild images
75e97adfc releaser: Add release notes to /docs for release of 0.37
50b887cb0 releaser: Bump versions for release of 0.37
7acf73ba3 Merge commit '900b5f6cfe5a377ef369d26cd700201be4cf6b06'
819d02c30 Merge commit '374d184e6747678364fd61f5faf328ec9205eb6b'
c7eacf018 Fix typos in development contribution doc

git-subtree-dir: docs
git-subtree-split: 4e7e1815b742659dec1c8f59a1896a3396c7b6e9

7 years agohugolib: Extract date and slug from filename
Bjørn Erik Pedersen [Sun, 11 Mar 2018 10:32:55 +0000 (11:32 +0100)]
hugolib: Extract date and slug from filename

This commit makes it possible to extract the date from the content filename. Also, the filenames in these cases will make for very poor permalinks, so we will also use the remaining part as the page `slug` if that value is not set in front matter.

This should make it easier to move content from Jekyll to Hugo.

To enable, put this in your `config.toml`:

```toml
[frontmatter]
date  = [":filename", ":default"]
```

This commit is also a spring cleaning of how the different dates are configured in Hugo. Hugo will check for dates following the configuration from left to right, starting with `:filename` etc.

So, if you want to use the `file modification time`, this can be a good configuration:

 ```toml
[frontmatter]
date = [ "date",":fileModTime", ":default"]
lastmod = ["lastmod" ,":fileModTime", ":default"]
```

The current `:default` values for the different dates are

```toml
[frontmatter]
date = ["date","publishDate", "lastmod"]
lastmod = ["lastmod", "date","publishDate"]
publishDate = ["publishDate", "date"]
expiryDate = ["expiryDate"]
```

The above will now be the same as:

```toml
[frontmatter]
date = [":default"]
lastmod = [":default"]
publishDate = [":default"]
expiryDate = [":default"]
```

Note:

* We have some built-in aliases to the above: lastmod => modified, publishDate => pubdate, published and expiryDate => unpublishdate.
* If you want a new configuration for, say, `date`, you can provide only that line, and the rest will be preserved.
* All the keywords to the right that does not start with a ":" maps to front matter parameters, and can be any date param (e.g. `myCustomDateParam`).
* The keywords to the left are the **4 predefined dates in Hugo**, i.e. they are constant values.
* The current "special date handlers" are `:fileModTime` and `:filename`. We will soon add `:git` to that list.

Fixes #285
Closes #3310
Closes #3762
Closes #4340

7 years agoAllow partial redefinition of the ouputs config
Bjørn Erik Pedersen [Sat, 10 Mar 2018 10:45:29 +0000 (11:45 +0100)]
Allow partial redefinition of the ouputs config

Fixes #4487

7 years agooutput: Fix build
Bjørn Erik Pedersen [Fri, 9 Mar 2018 16:28:20 +0000 (17:28 +0100)]
output: Fix build

See #4484

7 years agooutputs: Adjust the layout examples
Bjørn Erik Pedersen [Fri, 9 Mar 2018 12:26:28 +0000 (13:26 +0100)]
outputs: Adjust the layout examples

7 years agoreleaser: Prepare repository for 0.38-DEV
hugoreleaser [Wed, 7 Mar 2018 17:58:48 +0000 (17:58 +0000)]
releaser: Prepare repository for 0.38-DEV

[ci skip]

7 years agoreleaser: Add release notes to /docs for release of 0.37.1 v0.37.1
hugoreleaser [Wed, 7 Mar 2018 17:56:23 +0000 (17:56 +0000)]
releaser: Add release notes to /docs for release of 0.37.1

[ci skip]

7 years agoreleaser: Bump versions for release of 0.37.1
hugoreleaser [Wed, 7 Mar 2018 17:56:23 +0000 (17:56 +0000)]
releaser: Bump versions for release of 0.37.1

[ci skip]

7 years agoRelease 0.37.1
Bjørn Erik Pedersen [Wed, 7 Mar 2018 17:52:14 +0000 (18:52 +0100)]
Release 0.37.1

7 years agoreleaser: Add release notes draft for 0.37.1
hugoreleaser [Wed, 7 Mar 2018 17:45:56 +0000 (17:45 +0000)]
releaser: Add release notes draft for 0.37.1

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

7 years agoRemove defaultLayout config
Bjørn Erik Pedersen [Thu, 1 Mar 2018 16:19:49 +0000 (17:19 +0100)]
Remove defaultLayout config

Not in use.

7 years agocommands: Do not print build total when --quiet is set
Bjørn Erik Pedersen [Tue, 27 Feb 2018 20:04:39 +0000 (21:04 +0100)]
commands: Do not print build total when --quiet is set

Fixes #4456

7 years agoresource: Fix SVG and similar resource handling
Bjørn Erik Pedersen [Tue, 27 Feb 2018 17:29:15 +0000 (18:29 +0100)]
resource: Fix SVG and similar resource handling

The validation of if we could process the image (resize etc.) was moved up in Hugo 0.37, which meant SVG and other "non-processable" images would fail.

This commit fixes that by creating a regular resource for these image formats. They will not have `.Resize` or any of the other image methods.

Fixes #4455

7 years agoreleaser: Remove suplerflous release notes slug
Bjørn Erik Pedersen [Tue, 27 Feb 2018 09:33:35 +0000 (10:33 +0100)]
releaser: Remove suplerflous release notes slug

7 years agoreleaser: Prepare repository for 0.38-DEV
hugoreleaser [Tue, 27 Feb 2018 09:17:53 +0000 (09:17 +0000)]
releaser: Prepare repository for 0.38-DEV

[ci skip]

7 years agoreleaser: Add release notes to /docs for release of 0.37 v0.37
hugoreleaser [Tue, 27 Feb 2018 09:15:23 +0000 (09:15 +0000)]
releaser: Add release notes to /docs for release of 0.37

[ci skip]

7 years agoreleaser: Bump versions for release of 0.37
hugoreleaser [Tue, 27 Feb 2018 09:15:23 +0000 (09:15 +0000)]
releaser: Bump versions for release of 0.37

[ci skip]

7 years agoRelease 0.37
Bjørn Erik Pedersen [Tue, 27 Feb 2018 09:06:15 +0000 (10:06 +0100)]
Release 0.37

7 years agoreleaser: Add release notes draft for 0.37
hugoreleaser [Tue, 27 Feb 2018 08:43:18 +0000 (08:43 +0000)]
releaser: Add release notes draft for 0.37

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

7 years agoSquashed 'docs/' changes from 1dc05a16b..715741f73
Bjørn Erik Pedersen [Tue, 27 Feb 2018 08:36:36 +0000 (09:36 +0100)]
Squashed 'docs/' changes from 1dc05a16b..715741f73

715741f73 Add Netlify config for a split testin branch
4917f0636 Mention that math add/sub/mul/div functions can do float math too
31632beeb Document .Site.Params.mainSections
3416ba80d Update sectionvars.md
295ccb463 Update sections.md
15b5a0342 Fix duplicated paragraph
eb13db670 Fix text highlight
fa46cafdf Get 1password-support ready
979bb5698 Add 1password support showcase
ceb94d1e1 Fix readDir function links

git-subtree-dir: docs
git-subtree-split: 715741f7393cec2a9b34254bda6e815e9391a632

7 years agoMerge commit '900b5f6cfe5a377ef369d26cd700201be4cf6b06'
Bjørn Erik Pedersen [Tue, 27 Feb 2018 08:36:36 +0000 (09:36 +0100)]
Merge commit '900b5f6cfe5a377ef369d26cd700201be4cf6b06'

7 years agoresource: Use Floyd-Steinberg dithering for PNGs
Bjørn Erik Pedersen [Mon, 26 Feb 2018 17:55:00 +0000 (18:55 +0100)]
resource: Use Floyd-Steinberg dithering for PNGs

Fixes #4453

7 years agohugolib: Fix paginator URL for sections with URL in front matter
Bjørn Erik Pedersen [Mon, 26 Feb 2018 16:45:51 +0000 (17:45 +0100)]
hugolib: Fix paginator URL for sections with URL in front matter

Fixes #4415

7 years agohugolib: Avoid scanning entire site to find the home
Bjørn Erik Pedersen [Sun, 25 Feb 2018 09:50:44 +0000 (10:50 +0100)]
hugolib: Avoid scanning entire site to find the home

See #4447

7 years agoFix bug in Site.assembleSections method
Vas Sudanagunta [Sun, 25 Feb 2018 06:15:03 +0000 (01:15 -0500)]
Fix bug in Site.assembleSections method

Site.assembleSections logic assumes that the the home page would always be the first in the Site's list of pages. This is not in fact guaranteed to be true. When it is not, the method can fail to set the parent for some or all root-level pages. 

Fixes #4447

7 years agohugolib: Continue GitInfo lookup on error
Bjørn Erik Pedersen [Thu, 22 Feb 2018 16:21:09 +0000 (17:21 +0100)]
hugolib: Continue GitInfo lookup on error

The current logic stops looking after the first failure to connect a page with a Git commit. This implies a fatal error, but that may not be the case.

7 years agoProperly handle -DEV suffix when comparing Hugo versions
Bjørn Erik Pedersen [Thu, 22 Feb 2018 16:16:42 +0000 (17:16 +0100)]
Properly handle -DEV suffix when comparing Hugo versions

See #4443

7 years agoMake ge, le etc. work with the Hugo Version number
Bjørn Erik Pedersen [Thu, 22 Feb 2018 08:15:12 +0000 (09:15 +0100)]
Make ge, le etc. work with the Hugo Version number

This means that you can do something ala:

```html
{{ if ge .Hugo.Version "0.36" }}Reasonable new Hugo version!{{ end }}
```

The intented use is feature toggling, but please note that it will take some time and Hugo versions until this can be trusted. It does not work in older Hugo versions.

Fixes #4443

7 years agocommands: Remove ERROR on missing baseURL
Bjørn Erik Pedersen [Wed, 21 Feb 2018 09:30:00 +0000 (10:30 +0100)]
commands: Remove ERROR on missing baseURL

That logic fails in multi-host mode when no baseURL is set on top level.

Fixes #4397

7 years agoreleaser: Create bundles for the release notes
Bjørn Erik Pedersen [Wed, 21 Feb 2018 09:22:08 +0000 (10:22 +0100)]
releaser: Create bundles for the release notes

Fixes #4413

7 years agoMerge commit '374d184e6747678364fd61f5faf328ec9205eb6b'
Bjørn Erik Pedersen [Wed, 21 Feb 2018 09:02:51 +0000 (10:02 +0100)]
Merge commit '374d184e6747678364fd61f5faf328ec9205eb6b'

7 years agoSquashed 'docs/' changes from f97826a17..1dc05a16b
Bjørn Erik Pedersen [Wed, 21 Feb 2018 09:00:31 +0000 (10:00 +0100)]
Squashed 'docs/' changes from f97826a17..1dc05a16b

1dc05a16b Update index.md
d73a9b3b4 Added StackImpact showcase
b0e82b3a5 Fix uglyURLs example
cf8a93728 GA track outgoing sponsor clikcs
aca59ac66 Move the sponsor banners up a little
5571673f0 Migrate from analytics.js to gtag.js
64a29b6cb Update faq.md
84704aa84 Use GOPATH variable if defined in installation from source
5f70e6ee2 Remove disableRSS etc. from the documentation
4945e7937 Remove superflous asterisks
39f6c9c28 showcase: Add 1password.com
fe0f82610 Add GitLab warning
9f26f21d2 Fix URL typo
83a91fc99 Remove duplicate release notes
133cdd313 Release 0.36.1
fbe2a2dc7 Clean images
1b02f9193 Merge branch 'temp361'
c430d2d58 Merge branch 'release-0.36.1'
dd7370fc4 releaser: Prepare repository for 0.37-DEV
72534f9ec releaser: Add release notes to /docs for release of 0.36.1
845b2cacb releaser: Bump versions for release of 0.36.1
78790fcb1 Add fluid type to showcase details box
4ef59e008 Adjust column widths to handle a wider variety of copy width
6d2e68521 Always show the latest showcase item on front page
665b1eb5e showcase: Shuffle the news items
5fef1f9b7 Escape quote
d680f0c16 Add some quotes
1722f0d5a showcase: Make the description more about Hugo
a9d43db0a Add Quiply Employee Communications App
7aaa464ec Add Quiply Employee Communications App
fad6a25dd maintenance: Show last 30
7afcfdced showcase: Set Linode date to today
0c31f481a New showcase for Linode
6c7687c2d Minor edits to the `apply` documentation
04bbff8b3 Update apply.md
f543032e3 Fix clunky sentence
218ba2a65 Some more Netlify improvements
0bd512125 Improve the Netlify versioning docs
7a708d60e Clarify Netlify's Hugo versions handling
8f86342cd Add some space
d68d4ff37 Remove now superflous warning
bf93a46ea maintenance: Add TODO list
3b5f27835 maintenance: Remove a superflous prefix
8f29ba2fb maintenance: Adjust order
105d53610 maintenance: Add TOC
29e86396b maintenance: Fix page list selection
ba51fe66d Finish the Maintenance  section
e9b0c710c Add latest changes in new spotlight section
8ccd79f61 Fix broken sentence
c77643c37 Spelling
919f2faef Remove some old troubleshooting articles
09e467f06 Add a new FAQ
ac2b25bb5 Hartwell showcase typos
5bf766993 Trim "www." from shocase URLs in title
a180cd5cb Make the inline showcase template names unique
6886982fd Merge commit '9cc9bab46288d8d5f9fda7009c5f746258cec1b4'
09728efbf Add "target" and "rel" parameters to figure shortcode

git-subtree-dir: docs
git-subtree-split: 1dc05a16bd6b99809d97daeda743d914297f908c

7 years agoRun gofmt -s with Go 1.10
Bjørn Erik Pedersen [Wed, 21 Feb 2018 08:23:43 +0000 (09:23 +0100)]
Run gofmt -s with Go 1.10

See #4434

7 years agohugolib: Fix broken footnote test
Bjørn Erik Pedersen [Wed, 21 Feb 2018 08:25:32 +0000 (09:25 +0100)]
hugolib: Fix broken footnote test

See #4433

7 years agoUpdate Blackfriday to fix footnote HTML5 validation error
Bjørn Erik Pedersen [Wed, 21 Feb 2018 08:18:17 +0000 (09:18 +0100)]
Update Blackfriday to fix footnote HTML5 validation error

Fixes #4433

7 years agoreleaser: Update to Go 1.10
Bjørn Erik Pedersen [Wed, 21 Feb 2018 07:52:44 +0000 (08:52 +0100)]
releaser: Update to Go 1.10

7 years agoresource: Preserve color palette for PNG images
Bjørn Erik Pedersen [Mon, 19 Feb 2018 15:34:49 +0000 (16:34 +0100)]
resource: Preserve color palette for PNG images

This commit will force a reprocessing of PNG images with new names, so it is adviced to run a `hugo --gc` to remove stale files.

Fixes #4416

7 years agoFix typos in development contribution doc
Curtis Timson [Sun, 18 Feb 2018 19:47:18 +0000 (19:47 +0000)]
Fix typos in development contribution doc

7 years agoUpdate dependencies
Bjørn Erik Pedersen [Sat, 17 Feb 2018 09:32:18 +0000 (10:32 +0100)]
Update dependencies

Closes #4418

7 years agomagefile: Disable Go 1.10 gofmt check for now
Bjørn Erik Pedersen [Sat, 17 Feb 2018 00:24:07 +0000 (01:24 +0100)]
magefile: Disable Go 1.10 gofmt check for now

7 years agoSecond try: Update to Go 1.10 (!)
Bjørn Erik Pedersen [Fri, 16 Feb 2018 23:34:38 +0000 (00:34 +0100)]
Second try: Update to Go 1.10 (!)

7 years agoRevert "Update to Go 1.10 (!)"
Bjørn Erik Pedersen [Fri, 16 Feb 2018 22:42:42 +0000 (23:42 +0100)]
Revert "Update to Go 1.10 (!)"

This reverts commit ff10c15a93632043f7a7f6551a30487c9ef58c50.

7 years agoUpdate to Go 1.10 (!)
Bjørn Erik Pedersen [Fri, 16 Feb 2018 22:29:51 +0000 (23:29 +0100)]
Update to Go 1.10 (!)

See https://blog.golang.org/go1.10

7 years agoMerge branch 'release-0.36.1'
Bjørn Erik Pedersen [Thu, 15 Feb 2018 09:13:09 +0000 (10:13 +0100)]
Merge branch 'release-0.36.1'