Fix indentation and broken image

This commit is contained in:
Joe Mooring 2023-08-06 10:03:11 -07:00 committed by GitHub
parent 48ad4124e1
commit 8dbe5df90b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
9 changed files with 61 additions and 63 deletions

View File

@ -50,7 +50,7 @@ The following is an example of a very basic [single page template]:
{{< code file="layout/_default/single.html" >}} {{< code file="layout/_default/single.html" >}}
{{ define "main" }} {{ define "main" }}
<main> <main>
<article> <article>
<header> <header>
<h1>{{ .Title }}</h1> <h1>{{ .Title }}</h1>
@ -60,7 +60,7 @@ The following is an example of a very basic [single page template]:
<aside> <aside>
{{ .TableOfContents }} {{ .TableOfContents }}
</aside> </aside>
</main> </main>
{{ end }} {{ end }}
{{< /code >}} {{< /code >}}

View File

@ -63,10 +63,10 @@ The following example lists the items of an RSS feed:
```go-html-template ```go-html-template
{{ with resources.GetRemote "https://example.com/rss.xml" | transform.Unmarshal }} {{ with resources.GetRemote "https://example.com/rss.xml" | transform.Unmarshal }}
{{ range .channel.item }} {{ range .channel.item }}
<strong>{{ .title | plainify | htmlUnescape }}</strong><br /> <strong>{{ .title | plainify | htmlUnescape }}</strong><br>
<p>{{ .description | plainify | htmlUnescape }}</p> <p>{{ .description | plainify | htmlUnescape }}</p>
{{ $link := .link | plainify | htmlUnescape }} {{ $link := .link | plainify | htmlUnescape }}
<a href="{{ $link }}">{{ $link }}</a><br /> <a href="{{ $link }}">{{ $link }}</a><br>
<hr> <hr>
{{ end }} {{ end }}
{{ end }} {{ end }}

View File

@ -9,8 +9,6 @@ aliases: [/0-25/]
Hugo `0.25` is the **Kinder Surprise**: It automatically opens the page you&#39;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 `0.25` is the **Kinder Surprise**: It automatically opens the page you&#39;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`. 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: Example: