Skip to content

Commit 118e7fc

Browse files
committed
Fix rendering issues for Hugo 0.96/97
1 parent 2c820b6 commit 118e7fc

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

layouts/_default/baseof.html

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<html lang="{{ .Site.LanguageCode }}">
33

44
<head>
5-
{{ .Hugo.Generator }}
5+
{{ hugo.Generator }}
66
<meta charset="utf-8">
77
<meta http-equiv="X-UA-Compatible" content="IE=edge">
88
<meta name="viewport" content="width=device-width, initial-scale=1">
@@ -25,8 +25,9 @@
2525
{{ if .IsHome }} {{ partial "site-verification" . }} {{ end }}
2626
<!-- add googleAnalytics in config.toml -->
2727
{{ template "_internal/google_analytics_async.html" . }}
28-
{{ if .RSSLink }}
29-
<link href="{{ .RSSLink }}" rel="alternate" type="application/rss+xml" title="{{ .Site.Title }}" /> {{ end }}
28+
{{ with .OutputFormats.Get "RSS" }}
29+
{{ printf `<link rel="%s" type="%s" href="%s" title="%s" />` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }}
30+
{{ end }}
3031

3132
<link rel="canonical" href="{{ .Permalink }}"> {{ if (isset .Params "prev") }}
3233
<link rel="prev" href="{{ .Params.prev }}"> {{ end }} {{ if (isset .Params "next") }}

0 commit comments

Comments
 (0)