mirror of
https://github.com/gohugoio/hugoDocs.git
synced 2025-09-13 08:56:04 -04:00
Fix indentation and broken image
This commit is contained in:
parent
48ad4124e1
commit
8dbe5df90b
@ -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 >}}
|
||||||
|
|
||||||
|
@ -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 }}
|
||||||
|
@ -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 `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.
|
||||||
|
|
||||||

|
|
||||||
|
|
||||||
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:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user