diff --git a/content/en/content-management/summaries.md b/content/en/content-management/summaries.md index 4f94f95f2..74c5623cb 100644 --- a/content/en/content-management/summaries.md +++ b/content/en/content-management/summaries.md @@ -85,19 +85,19 @@ You can show content summaries with the following code. You could use the follow {{< code file="page-list-with-summaries.html" >}} {{ range first 10 .Pages }} -
- -
-

{{ .Title }}

- {{ .Summary }} -
- {{ if .Truncated }} +
+ +
+

{{ .Title }}

+ {{ .Summary }} +
+ {{ if .Truncated }}
Read More…
- {{ end }} -
+ {{ end }} +
{{ end }} {{< /code >}} diff --git a/content/en/content-management/toc.md b/content/en/content-management/toc.md index e1f24378e..ca179c77d 100644 --- a/content/en/content-management/toc.md +++ b/content/en/content-management/toc.md @@ -50,17 +50,17 @@ The following is an example of a very basic [single page template]: {{< code file="layout/_default/single.html" >}} {{ define "main" }} -
+
-
+

{{ .Title }}

-
- {{ .Content }} +
+ {{ .Content }}
-
+
{{ end }} {{< /code >}} diff --git a/content/en/functions/transform.Unmarshal.md b/content/en/functions/transform.Unmarshal.md index ca5433761..7d0920da8 100644 --- a/content/en/functions/transform.Unmarshal.md +++ b/content/en/functions/transform.Unmarshal.md @@ -62,12 +62,12 @@ The following example lists the items of an RSS feed: ```go-html-template {{ with resources.GetRemote "https://example.com/rss.xml" | transform.Unmarshal }} - {{ range .channel.item }} - {{ .title | plainify | htmlUnescape }}
-

{{ .description | plainify | htmlUnescape }}

- {{ $link := .link | plainify | htmlUnescape }} - {{ $link }}
-
- {{ end }} + {{ range .channel.item }} + {{ .title | plainify | htmlUnescape }}
+

{{ .description | plainify | htmlUnescape }}

+ {{ $link := .link | plainify | htmlUnescape }} + {{ $link }}
+
+ {{ end }} {{ end }} ``` diff --git a/content/en/functions/urlize.md b/content/en/functions/urlize.md index 8c9aeb1c3..7a9cf25e8 100644 --- a/content/en/functions/urlize.md +++ b/content/en/functions/urlize.md @@ -22,20 +22,20 @@ The following might be used as a partial within a [single page template][singlet {{< code file="layouts/partials/content-header.html" >}}
-

{{ .Title }}

- {{ with .Params.location }} -
{{ . }}
- {{ end }} - - {{ with .Params.tags }} +

{{ .Title }}

+ {{ with .Params.location }} +
{{ . }}
+ {{ end }} + + {{ with .Params.tags }} - {{ end }} + {{ end }}
{{< /code >}} diff --git a/content/en/news/0.25-relnotes/index.md b/content/en/news/0.25-relnotes/index.md index 6ceef445d..5ed0a2bc1 100644 --- a/content/en/news/0.25-relnotes/index.md +++ b/content/en/news/0.25-relnotes/index.md @@ -9,8 +9,6 @@ aliases: [/0-25/] Hugo `0.25` is the **Kinder Surprise**: It automatically opens the page you're working on in the browser, it adds full `AND` and `OR` support in page queries, and you can now have templates per language. -![Hugo Open on Save](https://cdn-standard5.discourse.org/uploads/gohugo/optimized/2X/6/622088d4a8eacaf62bbbaa27dab19d789e10fe09_1_690x345.gif "Hugo Open on Save") - If you start with `hugo server --navigateToChanged`, Hugo will navigate to the relevant page on save (see animated GIF). This is extremely useful for site-wide edits. Another very useful feature in this version is the added support for `AND` (`intersect`) and `OR` (`union`) filters when combined with `where`. Example: diff --git a/content/en/templates/homepage.md b/content/en/templates/homepage.md index 5fe6902d3..a176a51f2 100644 --- a/content/en/templates/homepage.md +++ b/content/en/templates/homepage.md @@ -40,7 +40,7 @@ The following is an example of a homepage template that uses [partial][partials]

{{ .Title }}

{{ with .Params.subtitle }} - {{ . }} + {{ . }} {{ end }}
@@ -49,7 +49,7 @@ The following is an example of a homepage template that uses [partial][partials]
{{ range first 10 .Site.RegularPages }} - {{ .Render "summary" }} + {{ .Render "summary" }} {{ end }}
diff --git a/content/en/templates/lists/index.md b/content/en/templates/lists/index.md index 204cbcbcc..ec397c32b 100644 --- a/content/en/templates/lists/index.md +++ b/content/en/templates/lists/index.md @@ -166,13 +166,13 @@ This list template has been modified slightly from a template originally used in {{ partial "subheader.html" . }}
-

{{ .Title }}

- +

{{ .Title }}

+
{{ partial "footer.html" . }} @@ -184,10 +184,10 @@ This list template has been modified slightly from a template originally used in {{ define "main" }}
-

{{ .Title }}

- +

{{ .Title }}

+ {{ range .Pages }} - {{ .Render "summary" }} + {{ .Render "summary" }} {{ end }}
diff --git a/content/en/templates/section-templates.md b/content/en/templates/section-templates.md index db8ffd667..55a6c3004 100644 --- a/content/en/templates/section-templates.md +++ b/content/en/templates/section-templates.md @@ -46,17 +46,17 @@ Examples: {{< code file="layouts/_default/section.html" >}} {{ define "main" }}
- {{ .Content }} - - {{ partial "pagination.html" . }} + {{ .Content }} + + {{ partial "pagination.html" . }}
{{ end }} {{< /code >}} diff --git a/content/en/templates/single-page-templates.md b/content/en/templates/single-page-templates.md index 861ced99d..12e04db96 100644 --- a/content/en/templates/single-page-templates.md +++ b/content/en/templates/single-page-templates.md @@ -36,10 +36,10 @@ This single page template makes use of Hugo [base templates], the [`.Format` fun