diff options
| author | vimux <vimux@protonmail.com> | 2019-07-30 17:32:26 -0400 |
|---|---|---|
| committer | vimux <vimux@protonmail.com> | 2019-07-31 08:49:20 -0400 |
| commit | c8bf719e3d4a4c6ed1e70c5091f72e542ffc7a3d (patch) | |
| tree | d81f0d69cedfc20638d42e88b19b08f23d8632da /layouts/_default/single.html | |
| parent | c71d33abd2c051c19c6298f150277c9dbdbe2bcd (diff) | |
Define the Base Template and fix Hugo warnings
* Define the Base Template (baseof.html)
* Use relative URL link to style.css file
* Move summary.html from partials to _default layouts
* Fix Hugo warnings (needs Hugo 0.20 or newer)
* Fix Paginator rule on main page. Fix #8
* Latest posts: show pages from mainSections only
* Bump Hugo 0.19 -> 0.20
* Formatting
Diffstat (limited to 'layouts/_default/single.html')
| -rw-r--r-- | layouts/_default/single.html | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 4593944..af8398c 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -1,4 +1,4 @@ -{{ partial "header.html" . }} +{{ define "main" }} <main> <article> <h1>{{ .Title }}</h1> @@ -9,7 +9,7 @@ <div> <ul id="tags"> {{ range .Params.tags }} - <li><a href="{{ "/tags/" | relLangURL }}{{ . | urlize }}">{{ . }}</a> </li> + <li><a href="{{ "/tags/" | relLangURL }}{{ . | urlize }}">{{ . }}</a></li> {{ end }} </ul> </div> @@ -19,4 +19,4 @@ </article> </main> {{ partial "sidebar.html" . }} -{{ partial "footer.html" . }} +{{ end }} |