Browse Source

Update list and single layouts for Hugo 0.63.1

The changes to the base template lookup in Hugo 0.63.1 mean that the
single/list templates must start with a `define` block. The comment
block that had been in use breaks this requirement and resulted in pages
not rendering properly at all.

See https://gohugo.io/news/0.63.0-relnotes/ particularly:

* Note: In a base template (e.g. baseof.html), the first template block
must be a define.
tags/v0.1.2
Kevin C. Coram 1 year ago
parent
commit
a7cc18e837
Signed by: kevin GPG Key ID: 0342351B3D61AD35
2 changed files with 0 additions and 2 deletions
  1. +0
    -1
      layouts/_default/list.html
  2. +0
    -1
      layouts/_default/single.html

+ 0
- 1
layouts/_default/list.html View File

@@ -1,4 +1,3 @@
{{/* This will override the default value set in baseof.html; i.e., "{{.Site.Title}}" in the original example */}}
{{ define "title" }}
{{ .Title }} – {{ .Site.Title }}
{{ end }}


+ 0
- 1
layouts/_default/single.html View File

@@ -1,4 +1,3 @@
{{/* This will override the default value set in baseof.html; i.e., "{{.Site.Title}}" in the original example */}}
{{ define "title" }}
{{ .Title }} – {{ .Site.Title }}
{{ end }}


Loading…
Cancel
Save