Skip to content

Commit 6aebd26

Browse files
committed
fix: update theme layout and templates for hugo v0.146.0
There were a few breaking changes in the template system: gohugoio/hugo#13541 https://gohugo.io/templates/new-templatesystem-overview/
1 parent 2f17036 commit 6aebd26

23 files changed

+11
-10
lines changed
File renamed without changes.
File renamed without changes.

‎layouts/partials/head.html‎ renamed to ‎layouts/_partials/head.html‎

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,15 @@
1414
{{ hugo.Generator }}
1515

1616
<link rel="canonical" href="{{ .Permalink }}">
17-
{{if .Site.Params.generate_opengraph_image }}
18-
{{ partial "opengraph.html" . }}
17+
18+
{{ if .Site.Params.generate_opengraph_image }}
19+
{{ partial "opengraph_with_img.html" . }}
1920
{{ else }}
20-
{{ template "_internal/opengraph.html" . }}
21-
{{ template "_internal/twitter_cards.html" . }}
22-
{{end}}
21+
{{ partial "opengraph.html" . }}
22+
{{ partial "twitter_cards.html" . }}
23+
{{ end }}
2324

24-
{{ template "_internal/schema.html" . }}
25+
{{ partial "schema.html" . }}
2526

2627
<link rel="stylesheet" href="/css/layout.css" />
2728

@@ -31,7 +32,7 @@
3132
<link rel="stylesheet" href="/css/default-dark.css" />
3233
{{ end }}
3334

34-
{{ template "_internal/google_analytics.html" . }}
35+
{{ partial "google_analytics.html" . }}
3536

3637
<title>
3738
{{ $url := replace .Permalink ( printf "%s" .Site.BaseURL) "" }}
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

‎layouts/partials/postfooter.html‎ renamed to ‎layouts/_partials/postfooter.html‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,6 @@
2121
</footer>
2222

2323
{{ if eq .Type "post" }}
24-
{{ template "_internal/disqus.html" . }}
25-
{{ template "partials/utterances.html" . }}
24+
{{ partial "disqus.html" . }}
25+
{{ partial "utterances.html" . }}
2626
{{ end }}
File renamed without changes.

0 commit comments

Comments
 (0)