From 0d8d0d43a1f8067042f05e213c57e126415780ae Mon Sep 17 00:00:00 2001 From: George Cushen Date: Sun, 26 Jan 2020 20:29:18 +0000 Subject: [PATCH] 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. --- layouts/authors/list.html | 4 ++-- layouts/authors/terms.html | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/layouts/authors/list.html b/layouts/authors/list.html index 218125c2..504e3f50 100644 --- a/layouts/authors/list.html +++ b/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 }}
diff --git a/layouts/authors/terms.html b/layouts/authors/terms.html index 91bb71f2..bf88ba98 100644 --- a/layouts/authors/terms.html +++ b/layouts/authors/terms.html @@ -1,7 +1,7 @@ -{{/* List of all authors. */}} - {{- define "main" -}} +{{/* List of all authors. */}} + {{ partial "page_header.html" . }}