Skip to content

Commit c4aa5c7

Browse files
authored
Merge pull request #13 from rgommers/fix-rendering
Fix rendering issues for Hugo 0.97 (latest)
2 parents 2c820b6 + 6bcb620 commit c4aa5c7

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

.circleci/config.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ _defaults: &defaults
44
docker:
55
# CircleCI maintains a library of pre-built images
66
# documented at https://circleci.com/docs/2.0/circleci-images/
7-
- image: cibuilds/hugo:0.80
7+
- image: cibuilds/hugo:0.97
88
working_directory: ~/repo
99
jobs:
1010
build_page:
@@ -25,4 +25,4 @@ workflows:
2525
version: 2
2626
default:
2727
jobs:
28-
- build_page
28+
- build_page

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)