summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam Olech <me@aole.ch>2024-08-13 22:30:48 +0200
committerAdam Olech <me@aole.ch>2024-08-13 22:30:48 +0200
commit4dd58e0f094076ab6cf72be0c0d56c5606aa6d20 (patch)
tree1bd578fc30f36548fcc870ebb6adf4e2aeeecbb5
parentc55eca3683cd1cae0f2ab754d69ebbb41f68a8df (diff)
Adapt to newer Hugo
-rw-r--r--layouts/_default/baseof.html3
-rw-r--r--layouts/_default/single.html2
2 files changed, 1 insertions, 4 deletions
diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html
index 57ef293..21adb0d 100644
--- a/layouts/_default/baseof.html
+++ b/layouts/_default/baseof.html
@@ -13,8 +13,6 @@
<meta name="description" content="{{if .IsHome}}{{ $.Site.Params.description }}{{else}}{{.Description}}{{end}}" />
- {{ partial "seo.html" . }}
-
<link type="text/css"
rel="stylesheet"
href="{{ `css/print.css` | relURL }}"
@@ -74,6 +72,5 @@
<script src="{{ . | relURL }}"></script>
{{- end}}
- {{ template "_internal/google_analytics_async.html" . }}
</body>
</html>
diff --git a/layouts/_default/single.html b/layouts/_default/single.html
index 10e18b3..6d6629e 100644
--- a/layouts/_default/single.html
+++ b/layouts/_default/single.html
@@ -19,7 +19,7 @@
{{ partial "share.html" . }}
{{- end }}
- {{ if (and .Site.DisqusShortname (ne .Params.DisableComments true) (ne .Params.disable_comments true)) -}}
+ {{ if (and .Site.Config.Services.Disqus.Shortname (ne .Params.DisableComments true) (ne .Params.disable_comments true)) -}}
<div class="comments">
<h2>Comments</h2>
{{ template "_internal/disqus.html" . }}