Commit Graph
10191 Commits
Author SHA1 Message Date
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
Stefan Weil 3f177c94e4 Fix some typos (found by codespell) 2018-03-15 12:49:04 -04:00
Kaushal Modi dc26e0a5a6 Clarify the default for site config files and multiple config files
Add examples on how to set multiple site config files.

Fixes https://github.com/gohugoio/hugoDocs/issues/146
2018-03-15 12:20:05 -04:00
Kaushal Modi c87c9c62e1 Review and update the Site config documentation for consistency 2018-03-15 11:17:34 -04:00
Kaushal Modi a29edc50c0 Fix the default value of rssLimit site config
Fixes https://github.com/gohugoio/hugoDocs/issues/417
2018-03-15 11:15:47 -04:00
Bjørn Erik Pedersen ac12d51e7e create: Remove archetype title/date warning
Closes #4504
2018-03-15 08:52:20 +01:00
Lorenz Cuno Klopfenstein 83f3c46b09 Minor style fix 2018-03-14 20:15:20 -04:00
Nick-Rivera 4f860d1a25 Typo capitalization fixes 2018-03-14 17:33:57 -04:00
cmal 7851345c8a Add docs about comments within templates 2018-03-14 17:24:08 -04:00
Kaushal Modi d129b4a280 Make the recommendation to use partial over template consistent
Also, mention internal templates.

Fixes https://github.com/gohugoio/hugoDocs/issues/382.
2018-03-14 14:59:12 -04:00
Bjørn Erik Pedersen 3fbc75534d resource: Fix path duplication/flattening in processed images
Fixes #4502
Closes #4501
2018-03-14 17:04:14 +01:00
Bjørn Erik Pedersen 6cd260a41d Update index.md 2018-03-13 22:48:19 +01:00
Bjørn Erik Pedersen a2787e1a49 Add Let’s Encrypt showcase 2018-03-13 17:47:54 +01:00
Bjørn Erik Pedersen 7e664f69eb Update configuration.md 2018-03-13 10:49:19 +01:00
Bjørn Erik Pedersen 8002120f13 Update multilingual.md 2018-03-13 10:44:59 +01:00
Bjørn Erik Pedersen 702b46a62a Add documentation for the disableLanguages setting 2018-03-13 10:44:19 +01:00
Bjørn Erik Pedersen cb3d395de5 Fix content type reference
JSON is not a valid content file type in Hugo.
2018-03-13 00:03:04 +01:00
Bjørn Erik Pedersen e427ba4268 hugolib: Remove superflous debug file 2018-03-12 23:36:20 +01:00
Bjørn Erik Pedersen 79dd7cb31a hugolib: Simplify Prev/Next 2018-03-12 22:13:25 +01:00
Kaushal Modi d332269246 Update Page Kinds documentation
Also fixes https://github.com/gohugoio/hugoDocs/issues/402.
2018-03-12 16:04:18 +01:00
Kaushal Modi 8203f649df Fix misformed markdown link 2018-03-11 20:25:31 -04:00
Kaushal Modi 19e99c957b Add Section definition
Fixes https://github.com/gohugoio/hugoDocs/issues/409
2018-03-11 23:17:40 +01:00
Bjørn Erik Pedersen 6f301ebcc6 docs: Add docs on the new front matter configuration
See #4495
2018-03-11 22:51:11 +01:00
Bjørn Erik Pedersen ac403c2808 docs: Add docs on the new front matter configuration
See #4495
2018-03-11 22:51:11 +01:00
Bjørn Erik Pedersen 0dbf79c2f8 docs: Add docs on the new front matter configuration
See #4495
2018-03-11 22:51:11 +01:00
Bjørn Erik Pedersen f12ad7d56a hugolib: Adjust GitInfo author date test
Now that we have a commit to assert against.

See #4495
2018-03-11 21:32:15 +01:00
Bjørn Erik Pedersen ce6e4310fe Refactor the GitInfo into the date handlers
Fixes #4495
2018-03-11 21:32:05 +01:00
Bjørn Erik Pedersen 7ba35ef56e Merge commit 'c0290655825e7bb36e13fb39f89d85b392cf1adc' 2018-03-11 20:40:26 +01:00
Bjørn Erik Pedersen 6066c60e62 Merge commit 'c0290655825e7bb36e13fb39f89d85b392cf1adc' 2018-03-11 20:40:26 +01:00
Bjørn Erik Pedersen 95d62004a0 Merge commit 'c0290655825e7bb36e13fb39f89d85b392cf1adc' 2018-03-11 20:40:26 +01:00
Bjørn Erik Pedersen c029065582 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: 4e7e1815b7
2018-03-11 20:39:20 +01:00
Bjørn Erik Pedersen 68bf1511f2 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
2018-03-11 18:26:18 +01:00
Zhang Liang 4e7e1815b7 Fix some typos 2018-03-10 17:44:35 +01:00
Bjørn Erik Pedersen f8dc47eeff Allow partial redefinition of the ouputs config
Fixes #4487
2018-03-10 16:57:25 +01:00
Kaushal Modi d23d8f5c42 Remove 'fundamentals' category from function pages
Fixes https://github.com/gohugoio/hugoDocs/issues/406
2018-03-09 19:09:57 +01:00
Kaushal Modi 52fa65e15f Mention Chroma as the preferred syntax highlighter 2018-03-09 12:43:22 -05:00
Bjørn Erik Pedersen ae3fa349de output: Fix build
See #4484
2018-03-09 17:28:20 +01:00
Bjørn Erik Pedersen 8762aee8af Squashed 'themes/gohugoioTheme/' changes from 396b859f..6f3a8bf5
6f3a8bf5 Add Gopher

git-subtree-dir: themes/gohugoioTheme
git-subtree-split: 6f3a8bf525121e4e8ad708a1e60e93a05b991008
2018-03-09 15:45:09 +01:00
Bjørn Erik Pedersen 64ca535db5 Merge commit '8762aee8afe30bec6f1fbc9560749983dc44d60b' 2018-03-09 15:45:09 +01:00
Bjørn Erik Pedersen 03f0673a9a Move the gopher to the theme
So it can Gopher around a little on the theme site, too.
2018-03-09 15:43:51 +01:00
Bjørn Erik Pedersen 320e268cd0 Spelling 2018-03-09 13:33:13 +01:00
Bjørn Erik Pedersen e45b640f71 More layout lookup work
Closes #400
2018-03-09 13:32:21 +01:00
Bjørn Erik Pedersen 64cec07293 outputs: Adjust the layout examples 2018-03-09 13:26:28 +01:00
Kaushal Modi fe0ad9d9d4 Sync the YAML config menu example with TOML's
Also remove the "---" delimiters as the presences of those would cause one to
think that that config is in front-matter instead of in site config.

Fixes https://github.com/gohugoio/hugoDocs/issues/397
2018-03-08 16:48:37 -05:00
Jake Rayson b9505fc70b Remove template reference to ordinal numbers
> Spelled-out cardinal numbers … are not currently supported

So, remove reference to them in "Hugo Date and Time Templating Reference"
2018-03-08 15:48:57 -05:00
Eddie Webb 0fa2532d3c Remove deprecated Hugoidx, add native hugo solution
- Removed HugoIDX which is listed as deprecated 
>This project has been retired
>This project has been retired due to upstream API changes in Hugo.

- Adds example gist for client side searching with jquery, fuse.js. Requires no additional build-time process/workflow/tools except hugo!
2018-03-07 23:19:47 -05:00
Kaushal Modi 2152b907c6 Fix a link in the last commit 2018-03-07 15:22:55 -05:00