Browse Source

refactor(layouts): cleanup remaining hugo deprecations

Josh Habdas 7 months ago
parent
commit
4b2db75026
Signed by: Josh Habdas <jhabdas@protonmail.com> GPG Key ID: B148B31154C75A74
3 changed files with 3 additions and 3 deletions
  1. 1
    1
      layouts/404.html
  2. 1
    1
      layouts/_default/baseof.html
  3. 1
    1
      layouts/_default/rss.xml

+ 1
- 1
layouts/404.html View File

@@ -1,5 +1,5 @@
1 1
 <head>
2
-  <meta name="generator" content="{{ with .Site.Data.npm.latest }}{{ .name | humanize | title }} {{ .version }} (Hugo {{ hugo.Version }}){{ else }}Hugo {{ .Hugo.Version }}{{ end }}">
2
+  <meta name="generator" content="{{ with .Site.Data.npm.latest }}{{ .name | humanize | title }} {{ .version }} (Hugo {{ hugo.Version }}){{ else }}Hugo {{ hugo.Version }}{{ end }}">
3 3
   <meta charset="utf-8">
4 4
   <meta name="viewport" content="width=device-width, initial-scale=1.0">
5 5
   <meta name="robots" content="noindex">

+ 1
- 1
layouts/_default/baseof.html View File

@@ -2,7 +2,7 @@
2 2
 <html lang="{{ .Site.LanguageCode }}">
3 3
   <head>
4 4
     {{ partial "meta/content-security-policy.html" . }}
5
-    <meta name="generator" content="{{ with .Site.Data.npm.latest }}{{ .name | humanize | title }} {{ .version }} (Hugo {{ hugo.Version }}){{ else }}Hugo {{ .Hugo.Version }}{{ end }}">
5
+    <meta name="generator" content="{{ with .Site.Data.npm.latest }}{{ .name | humanize | title }} {{ .version }} (Hugo {{ hugo.Version }}){{ else }}Hugo {{ hugo.Version }}{{ end }}">
6 6
     <meta charset="utf-8">
7 7
     <meta name="viewport" content="width=device-width, initial-scale=1.0">
8 8
     <title>{{ block "title" . }}{{ .Title }} | {{ .Site.Title }}{{ end }}</title>

+ 1
- 1
layouts/_default/rss.xml View File

@@ -10,7 +10,7 @@
10 10
       <url>{{ . }}</url>
11 11
     </image>{{ end }}
12 12
     <ttl>1440</ttl>
13
-    <generator>{{ with .Site.Data.npm.latest }}{{ .name | humanize | title }} {{ .version }} (Hugo {{ hugo.Version }}){{ else }}Hugo {{ .Hugo.Version }}{{ end }}</generator>{{ with .Site.LanguageCode }}
13
+    <generator>{{ with .Site.Data.npm.latest }}{{ .name | humanize | title }} {{ .version }} (Hugo {{ hugo.Version }}){{ else }}Hugo {{ hugo.Version }}{{ end }}</generator>{{ with .Site.LanguageCode }}
14 14
     <language>{{ . }}</language>{{ end }}{{ with .Site.Author }}
15 15
     <managingEditor>{{ .email }}{{ with .name }} ({{ . }}){{ end }}</managingEditor>{{ end }}{{ with .Site.Author }}
16 16
     <webMaster>{{ .email }}{{ with .name }} ({{ . }}){{ end }}</webMaster>{{ end }}{{ with .Site.Copyright }}

Loading…
Cancel
Save