Commit Graph
10137 Commits
Author SHA1 Message Date
Anthony Fok 511d5d3b76 travis: Move to Ubuntu Trusty image 2018-03-26 09:09:58 -06:00
Anthony Fok 8299fa885c snap: Remove "make" from build-packages because we use mage now 2018-03-26 07:02:45 -06:00
Anthony Fok 06495f713b snapcraft.yaml: Call mage with "-v" for debugging
See #4538
2018-03-26 04:56:15 -06:00
Guillaume Delacour e15e6966fe Fix example GitHub url
The repository url currently does not contain the `tree/master` path, so that it return a 404.
2018-03-25 17:24:07 +02:00
Bjørn Erik Pedersen 93e24a03ce hugolib: Fix freeze in invalid front matter error case
Fixes #4526
2018-03-24 10:06:58 +01:00
Bjørn Erik Pedersen e9c7b6205f 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
2018-03-21 09:22:19 +01:00
Bjørn Erik Pedersen 3d1a6e109c hugolib: Add ConfigSourceDescriptor
To prepare for config in themes

See #4490
2018-03-20 21:30:43 +01:00
Bjørn Erik Pedersen b6798ee867 Bump some deprecations 2018-03-20 21:13:44 +01:00
Bjørn Erik Pedersen 0a23baa6a9 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: 3068989b9c
2018-03-20 21:11:45 +01:00
Bjørn Erik Pedersen fdb579ad1c Merge commit '0a23baa6a90901f772c234107c4f12c16c76f4aa' 2018-03-20 21:11:45 +01:00
Bjørn Erik Pedersen 6f99d3d658 Merge commit '0a23baa6a90901f772c234107c4f12c16c76f4aa' 2018-03-20 21:11:45 +01:00
Bjørn Erik Pedersen 84f4b731d2 Merge commit '0a23baa6a90901f772c234107c4f12c16c76f4aa' 2018-03-20 21:11:45 +01:00
Bjørn Erik Pedersen 61f6e9f63b tpl/transform: Add a comments test for Remarshal
See #4521
2018-03-20 18:23:32 +01:00
Kaushal Modi 3068989b9c Merge commit '7ae9cf2ccb3eecc1ff50f686925249d01cf37c6c' 2018-03-19 23:33:43 -04:00
Kaushal Modi 7ae9cf2ccb Squashed 'themes/gohugoioTheme/' changes from d7a475e7..a1768ebb
a1768ebb Anchorify headings up to h4 level (#84)

git-subtree-dir: themes/gohugoioTheme
git-subtree-split: a1768ebb4d294ece34fc40f348d0431ec7684527
2018-03-19 23:33:42 -04:00
Kaushal Modi b55157faec Revert "Anchorify headings up to h4"
This reverts commit b63dd55669.
2018-03-19 17:43:06 -04:00
Kaushal Modi b63dd55669 Anchorify headings up to h4
(test for https://github.com/gohugoio/gohugoioTheme/pull/84)
2018-03-19 17:40:54 -04:00
Bjørn Erik Pedersen 904a3d9ddf Update Chroma to get Go template support
Fixes #4515
2018-03-19 09:19:47 +01:00
Bjørn Erik Pedersen edfe36a197 Test out trac as highlighter style
See #425
2018-03-19 09:17:38 +01:00
Bjørn Erik Pedersen 98dc8d269b Update multilingual.md 2018-03-18 17:51:08 +01:00
Bjørn Erik Pedersen a6e4d92c04 Update multilingual.md 2018-03-18 16:47:09 +01:00
xa0082249956 86a90edf96 Fix typo 'If will' to 'It will' line 41 2018-03-18 14:24:43 +01:00
Bjørn Erik Pedersen f0052b6d0f commands: Recover from error in server
Issue introduced some days ago.

Fixes #4516
2018-03-18 12:54:06 +01:00
Bjørn Erik Pedersen da88015776 Spring test cleaning, take 2 2018-03-18 09:54:32 +01:00
Bjørn Erik Pedersen debd3663dd hugolib: Test cleaning #1 2018-03-17 18:59:07 +01:00
Bjørn Erik Pedersen af67ad8af1 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.
2018-03-17 18:59:07 +01:00
cmal 7b71da1f8d hugolib: Add Reset method to delete key from Scratch 2018-03-17 00:13:23 +01:00
cmal 17487ccdde hugolib: Add Reset method to delete key from Scratch 2018-03-17 00:13:23 +01:00
cmal e46ab29bd2 hugolib: Add Reset method to delete key from Scratch 2018-03-17 00:13:23 +01:00
Kaushal Modi 6b626fac61 Add a tip for testing custom 404.html on hugo server
- https://github.com/gohugoio/hugo/issues/874
- https://discourse.gohugo.io/t/how-to-test-404-html-on-local-server/681/2
2018-03-16 16:45:29 -04:00
Kaushal Modi 6bfc17cfcb Update few links to now point to gohugoio organization repos
Ref: https://github.com/gohugoio/hugoDocs/issues/6
2018-03-16 16:03:32 -04:00
Bjørn Erik Pedersen 10fef32de6 releaser: Adjust the "thank you" section 2018-03-16 20:56:28 +01:00
Kaushal Modi f66bad971d Remove unintended alias
Fixes https://github.com/gohugoio/hugoDocs/issues/48.
2018-03-16 15:14:35 -04:00
Kaushal Modi 3bc56e9ecc Fix shortcode name in example: image -> img
Fixes https://github.com/gohugoio/hugoDocs/issues/126.
2018-03-16 14:36:29 -04:00
Kaushal Modi 2511423881 Fix broken link
Fixes https://github.com/gohugoio/hugoDocs/issues/131.
2018-03-16 14:23:21 -04:00
Kaushal Modi 27245af6a9 Fix the minimum required git version for GH Pages flow
Fixes https://github.com/gohugoio/hugoDocs/issues/171.

There was a bug with "git worktree add -B" which was discussed here:
http://git.661346.n2.nabble.com/git-worktree-fails-to-recreate-existing-branch-even-with-B-td7647562.html,
and then fixed in
https://github.com/git/git/commit/0ebf4a2af3b72847327e977c5710fd123926570e.

That bug fix got first released in git v2.8.
2018-03-16 14:15:18 -04:00
Kaushal Modi aefc87b4db Fix link in Forestry showcase 2018-03-16 13:41:49 -04:00
Kaushal Modi 489ec5ea03 Squashed 'themes/gohugoioTheme/' changes from 6f3a8bf5..d7a475e7
d7a475e7 Update static/dist
e0ad9f32 Fix some typos (found by codespell) (#78)
d569a0d2 Update site search to use the ID "search-input" (#79)

git-subtree-dir: themes/gohugoioTheme
git-subtree-split: d7a475e7fbd076b18ad5392ccb27bc397c935ac3
2018-03-16 13:05:13 -04:00
Kaushal Modi 308a616fd7 Merge commit '489ec5ea03799fa092d891838c1655e60b34f337' 2018-03-16 13:05:13 -04:00
Bjørn Erik Pedersen a808598141 Adjust showcase description 2018-03-16 14:01:46 +01:00
Bjørn Erik Pedersen 63a131664d docs: Add docs for lang.Merge
See https://github.com/gohugoio/hugo/issues/4463
2018-03-16 10:10:01 +01:00
Bjørn Erik Pedersen ccbf7a05ce docs: Add docs for lang.Merge
See https://github.com/gohugoio/hugo/issues/4463
2018-03-16 10:10:01 +01:00
Bjørn Erik Pedersen 70005364a2 docs: Add docs for lang.Merge
See https://github.com/gohugoio/hugo/issues/4463
2018-03-16 10:10:01 +01:00
Bjørn Erik Pedersen ffaec4ca8c 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
2018-03-16 10:10:01 +01:00
Bjørn Erik Pedersen 3886fc1fef 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: 211a3c6136
2018-03-16 09:44:54 +01:00
Bjørn Erik Pedersen 55cba056d0 Merge commit '3886fc1fef6ac19d58b9ba1bb642d0c6c9a54031' 2018-03-16 09:44:54 +01:00
Bjørn Erik Pedersen 5ad46d78e0 Merge commit '3886fc1fef6ac19d58b9ba1bb642d0c6c9a54031' 2018-03-16 09:44:54 +01:00
Bjørn Erik Pedersen 91fb8f1b59 Merge commit '3886fc1fef6ac19d58b9ba1bb642d0c6c9a54031' 2018-03-16 09:44:54 +01:00
Bjørn Erik Pedersen 211a3c6136 Prepare the forestry.io article for release 2018-03-16 08:20:54 +01:00
Sebastian 23995d6b49 Add forestry.io to showcase 2018-03-16 08:20:22 +01:00