website: Adapt to hugo v0.27.1

This commit is contained in:
Nick Craig-Wood 2017-09-19 12:26:06 +01:00
parent 1d994f7330
commit b1e85c7ceb
4 changed files with 17 additions and 2 deletions

View File

@ -11,5 +11,8 @@
"blackfriday": { "blackfriday": {
"smartDashes": false, "smartDashes": false,
"plainIDAnchors": true "plainIDAnchors": true
} },
"disableKinds": [
"taxonomy", "taxonomyTerm"
]
} }

5
docs/i18n/en.toml Normal file
View File

@ -0,0 +1,5 @@
# Dummy translation file to make errors go away
# See: https://discourse.gohugo.io/t/monolingual-site/6300
[wordCount]
other = "{{ .WordCount }} words"

7
docs/layouts/404.html Normal file
View File

@ -0,0 +1,7 @@
{{ define "main"}}
<main id="main">
<div>
<h1 id="title"><a href="{{ "/" | relURL }}">Go Home</a></h1>
</div>
</main>
{{ end }}

View File

@ -5,5 +5,5 @@
<title>{{ .Title }}</title> <title>{{ .Title }}</title>
<link rel="canonical" href="{{ .Permalink }}"> <link rel="canonical" href="{{ .Permalink }}">
{{ template "chrome/header.includes.html" . }} {{ template "chrome/header.includes.html" . }}
{{ if .RSSlink }}<link href="{{ .RSSlink }}" rel="alternate" type="application/rss+xml" title="{{ .Site.Title }}" />{{ end }} {{ if .RSSLink }}<link href="{{ .RSSLink }}" rel="alternate" type="application/rss+xml" title="{{ .Site.Title }}" />{{ end }}
</head> </head>