Bladeren bron

feat: add support for Hugo v0.63

Hugo v0.63 introduced breaking changes such as breaking templates that don't immediately begin with a `define` (even if the first line is just a code comment): https://gohugo.io/news/0.63.0-relnotes/

Adds compatibility with Hugo v0.63, fixing author pages rendering blank.
George Cushen 5 jaren geleden
bovenliggende
commit
0d8d0d43a1
2 gewijzigde bestanden met toevoegingen van 4 en 4 verwijderingen
  1. 2 2
      layouts/authors/list.html
  2. 2 2
      layouts/authors/terms.html

+ 2 - 2
layouts/authors/list.html

@@ -1,7 +1,7 @@
-{{/* Author profile page. */}}
-
 {{- define "main" -}}
 
+{{/* Author profile page. */}}
+
 {{/* If an account has not been created for this user, just display their name as the title. */}}
 {{ if not .File }}
 <div class="universal-wrapper pt-3">

+ 2 - 2
layouts/authors/terms.html

@@ -1,7 +1,7 @@
-{{/* List of all authors. */}}
-
 {{- define "main" -}}
 
+{{/* List of all authors. */}}
+
 {{ partial "page_header.html" . }}
 
 <div class="universal-wrapper">