Commit Graph
10191 Commits
Author SHA1 Message Date
Bjørn Erik Pedersen 2db0e53cd0 Merge commit '9c36cff15224f6cbd19058ad61311229b7a23c83' 2018-12-07 21:27:36 +01:00
Bjørn Erik Pedersen 9c36cff152 Squashed 'themes/gohugoioTheme/' changes from 68ddff44..b8202f53
b8202f53 Use 'w' units instead of 'x' for responsive images in showcase

git-subtree-dir: themes/gohugoioTheme
git-subtree-split: b8202f539d57b5e8e2c740cfde3d5f5e5f66e3b6
2018-12-07 21:27:35 +01:00
Bjørn Erik Pedersen 4b021eff81 Update lang.Merge.md 2018-12-07 16:40:48 +01:00
Bjørn Erik Pedersen 4b5f743959 minifiers: Fixx CSS2 color code handling
Fixes #5506
2018-12-07 07:49:26 +01:00
Bjørn Erik Pedersen 931a132450 tpl/hugo: Use the correct Hugo var
See #5467
2018-12-06 14:57:56 +01:00
Bjørn Erik Pedersen 8378358857 hugolib: Add .Site.Sites
Fixes #5504
2018-12-06 14:37:25 +01:00
Bjørn Erik Pedersen 831d23cb4d Add tpl/site and tpl/hugo
This means that the current `.Site` and ´.Hugo` is available as a globals, so you can do `site.IsServer`, `hugo.Version` etc.

Fixes #5470
Fixes #5467
Fixes #5503
2018-12-06 14:37:25 +01:00
Bjørn Erik Pedersen 514e18dc27 cache/filecache: Simplify test
See #5497
2018-12-04 19:19:20 +01:00
Bjørn Erik Pedersen b804a70881 cache/filecache: Use OS fs for test
See #5497
2018-12-04 18:03:49 +01:00
peaceiris b37af2916e Add title to yaml
Fixes #677
2018-12-02 16:46:01 +01:00
peaceiris a9a281233c Fixed incorrect usage of the code-toggle shortcode 2018-12-01 10:45:16 +01:00
Alexandros 4560a0169a Update Warning for Theme Links (#676)
The advice in this page is actually the opposite. Relative URLs output the wrong URL for theme assets on the Hugo website.

See relevant advice in the repository's [README](https://github.com/gohugoio/hugoThemes#common-permalink-issues)

I hadn't noticed this page (if I had noticed I would have sent a PR earlier because the advice offered here is plain wrong).

The reason I am merging this PR right away is due to [this](https://github.com/gohugoio/hugoThemes/issues/504#issuecomment-443253163) comment by a confused theme author. 

If you feel that this could be improved feel free to reword and amend as you see fit but the bottom line is that for themes that are going to be published on Hugo Themes authors should create absolute paths in their templates.

cc: @bep @digitalcraftsman @kaushalmodi
2018-11-30 23:04:21 +02:00
Cameron Moore 30a7c9ea37 tpl: Add godoc packages comments
Also fix package name in tpl/templates.
2018-11-30 08:56:30 +01:00
Bjørn Erik Pedersen 0305e3c6b7 Document .File.ContentBaseName 2018-11-29 21:14:50 +01:00
Bjørn Erik Pedersen 6d30c5aa1f Update configuration.md 2018-11-29 11:43:21 +01:00
Bjørn Erik Pedersen 158df174ad Document .Sites and .Sites.First
Fixes #657
2018-11-29 10:21:52 +01:00
Bjørn Erik Pedersen 0c0f583b8d Add stale config 2018-11-29 10:04:18 +01:00
Cameron Moore e2531afd8b Document path template functions
Fixes #452
2018-11-29 09:58:57 +01:00
Cameron Moore 4dd779057c Clarify that partialCached is per site/language
Fixes #665
2018-11-29 09:58:31 +01:00
Christian Oliff 8346848109 common/collections: Fix defines typo 2018-11-29 09:57:51 +01:00
Bjørn Erik Pedersen 19e5bbe0cb Update index.md 2018-11-28 16:46:46 +01:00
Bjørn Erik Pedersen 44b000857d Add missing dot 2018-11-28 16:33:56 +01:00
Bjørn Erik Pedersen a41300cf93 Release 0.52 2018-11-28 16:32:46 +01:00
Bjørn Erik Pedersen 2d1d92b88c Merge branch 'temp52' 2018-11-28 16:25:09 +01:00
hugoreleaser c5925250d5 releaser: Prepare repository for 0.53-DEV
[ci skip]
2018-11-28 14:08:36 +00:00
hugoreleaser 54ecade02f releaser: Prepare repository for 0.53-DEV
[ci skip]
2018-11-28 14:08:36 +00:00
hugoreleaser d000b04a21 releaser: Add release notes to /docs for release of 0.52
[ci skip]
2018-11-28 14:06:31 +00:00
hugoreleaser 9433cf5a92 releaser: Add release notes to /docs for release of 0.52
[ci skip]
2018-11-28 14:06:31 +00:00
hugoreleaser 4bb983a0ac releaser: Bump versions for release of 0.52
[ci skip]
2018-11-28 14:06:31 +00:00
hugoreleaser 3c909eb3f3 releaser: Bump versions for release of 0.52
[ci skip]
2018-11-28 14:06:31 +00:00
Bjørn Erik Pedersen 724b3e673b Release 0.52 2018-11-28 14:59:48 +01:00
hugoreleaser 056c754771 releaser: Add release notes draft for 0.52
Rename to *-ready.md to continue. [ci skip]
2018-11-28 13:14:49 +00:00
Bjørn Erik Pedersen a9a93d082d hugolib: Fall back to title in ByLinkTitle sort
Fixes #4953
2018-11-28 13:52:26 +01:00
Bjørn Erik Pedersen b09a40333f hugolib: Improve nil handling in IsDescendant and IsAncestor
Fixes #5461
2018-11-28 12:36:59 +01:00
Bjørn Erik Pedersen 7540a62834 parser/pageparser: Fix handling of commented out front matter
When the page parser was rewritten in 0.51, this was interpreted literally, but commented out front matter is used in the wild to "hide it from GitHub", e.g:

```
<!--
+++
title = "hello"
+++
-->
```

Fixes #5478
2018-11-28 10:28:50 +01:00
Bjørn Erik Pedersen 7e75aeca80 Remove duplicate mapstructure depdendency 2018-11-28 00:17:43 +01:00
Bjørn Erik Pedersen e14e0b192f Add dependency list to README 2018-11-28 00:08:27 +01:00
Cameron Moore ed698e94c1 tpl/path: Add tests 2018-11-27 19:17:35 +01:00
Bjørn Erik Pedersen 89e2716d29 tpl: Regenerate templates 2018-11-27 18:15:55 +01:00
Max Arnold aba2647c15 tpl: Fix whitespace issue
Introduced  in #5276.
2018-11-27 18:15:10 +01:00
Bjørn Erik Pedersen 36736ca280 tpl: Add "param" shortcode
Fixes #4010
2018-11-27 17:34:03 +01:00
Bjørn Erik Pedersen f37c5a2567 tpl: Add "param" shortcode
Fixes #4010
2018-11-27 17:34:03 +01:00
Allison Zadrozny 378677aa65 Add Elasticsearch/bonsai.io to services doc.
Copy of this merged PR at [gohugoio/hugo](https://github.com/gohugoio/hugo/): [Add Elasticsearch/bonsai.io to services doc. #5427](https://github.com/gohugoio/hugo/pull/5427).
2018-11-27 16:54:21 +01:00
Bjørn Erik Pedersen 4c3fd4fa4d docs: Document inline shortcodes
See #4011
2018-11-27 16:14:09 +01:00
Bjørn Erik Pedersen aded0f25fd docs: Document inline shortcodes
See #4011
2018-11-27 16:14:09 +01:00
Bjørn Erik Pedersen bc337e6ab5 Add inline shortcode support
An inline shortcode's name must end with `.inline`, all lowercase.

E.g.:

```bash
{{< time.inline >}}{{ now }}{{< /time.inline >}}
```

The above will print the current date and time.

Note that an inline shortcode's inner content is parsed and executed as a Go text template with the same context as a regular shortcode template.

This means that the current page can be accessed via `.Page.Title` etc. This also means that there are no concept of "nested inline shortcodes".

The same inline shortcode can be reused later in the same content file, with different params if needed, using the self-closing syntax:

```
{{< time.inline />}}
```

Fixes #4011
2018-11-27 16:14:09 +01:00
Cameron Moore 112461fded tpl/collections: Add float64 support to where
Fixes #5466
2018-11-27 09:04:02 +01:00
budparr 6c64c374c5 Whitelist CSS modules from purge
PurgeCSS removes unused CSS from the output. This PR only uses PurgeCSS on the base utility classes to avoid unexpected issues where JS or content-based classes get removed.
2018-11-25 20:14:32 +01:00
budparr 817a872b9b Improve search icon position 2018-11-25 20:14:32 +01:00
budparr cf86ff1c7b Add minification and resource cache clear to build command 2018-11-25 20:14:32 +01:00