diff options
author | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2020-06-16 15:19:31 +0300 |
---|---|---|
committer | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2020-06-16 15:19:31 +0300 |
commit | 0a9172672a7f2ed85cf675c96bd01b64641256bb (patch) | |
tree | ed778850d877a411838ae53f0385de0c68b32465 /docs/content/en/templates | |
parent | 6408c1cbc87f03fc9e92471165886ddbe7cdbeae (diff) | |
parent | efa74c5c6e6ff1daddeb5834ea7c69bed2acf171 (diff) |
Merge commit 'efa74c5c6e6ff1daddeb5834ea7c69bed2acf171'
Diffstat (limited to 'docs/content/en/templates')
-rw-r--r-- | docs/content/en/templates/introduction.md | 2 | ||||
-rw-r--r-- | docs/content/en/templates/partials.md | 19 | ||||
-rw-r--r-- | docs/content/en/templates/rss.md | 2 |
3 files changed, 3 insertions, 20 deletions
diff --git a/docs/content/en/templates/introduction.md b/docs/content/en/templates/introduction.md index abbb41f4c..fb7d341df 100644 --- a/docs/content/en/templates/introduction.md +++ b/docs/content/en/templates/introduction.md @@ -357,7 +357,7 @@ The following two examples are functionally the same: ### Example 2: `index` -The following accesses the page parameter called "disqus_url" and escapes the HTML. This example also uses the [`index` function][index], which is built into Go Templates: +The following accesses the page parameter called "disqus_url" and escapes the HTML. This example also uses the [`index` function](/functions/index-function/), which is built into Go Templates: ```go-html-template {{ index .Params "disqus_url" | html }} diff --git a/docs/content/en/templates/partials.md b/docs/content/en/templates/partials.md index 02fd1cb1a..873f5e696 100644 --- a/docs/content/en/templates/partials.md +++ b/docs/content/en/templates/partials.md @@ -177,27 +177,10 @@ The following `footer.html` partial template is used for [spf13.com](https://spf <p> © 2013-14 Steve Francia. <a href="https://creativecommons.org/licenses/by/3.0/" title="Creative Commons Attribution">Some rights reserved</a>; - please attribute properly and link back. Hosted by <a href="http://servergrove.com">ServerGrove</a>. + please attribute properly and link back. </p> </div> </footer> -<script type="text/javascript"> - - var _gaq = _gaq || []; - _gaq.push(['_setAccount', 'UA-XYSYXYSY-X']); - _gaq.push(['_trackPageview']); - - (function() { - var ga = document.createElement('script'); - ga.src = ('https:' == document.location.protocol ? 'https://ssl' : - 'http://www') + '.google-analytics.com/ga.js'; - ga.setAttribute('async', 'true'); - document.documentElement.firstChild.appendChild(ga); - })(); - -</script> -</body> -</html> {{< /code >}} [context]: /templates/introduction/ "The most easily overlooked concept to understand about Go templating is how the dot always refers to the current context." diff --git a/docs/content/en/templates/rss.md b/docs/content/en/templates/rss.md index ee179787f..0eba97470 100644 --- a/docs/content/en/templates/rss.md +++ b/docs/content/en/templates/rss.md @@ -22,7 +22,7 @@ toc: true See [Template Lookup Order](/templates/lookup-order/) for the complete reference. {{% note "Hugo Ships with an RSS Template" %}} -Hugo ships with its own [RSS 2.0 template](#the-embedded-rss-xml). The embedded template will be sufficient for most use cases. +Hugo ships with its own [RSS 2.0 template](#the-embedded-rssxml). The embedded template will be sufficient for most use cases. {{% /note %}} RSS pages are of the type `Page` and have all the [page variables](/variables/page/) available to use in the templates. |