Skip to content

Commit

Permalink
Use Hugo v0.118-compatible configuration names (EmielH#68)
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanv authored Jul 12, 2024
1 parent 776f966 commit 5acba3b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion layouts/disqus.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
*/
(function() { // DON'T EDIT BELOW THIS LINE
var d = document, s = d.createElement('script');
var disqus_shortname = '{{ .Site.DisqusShortname }}';
var disqus_shortname = '{{ .Site.Config.Services.Disqus.Shortname }}';
s.src = 'https://' + disqus_shortname + '.disqus.com/embed.js';
s.setAttribute('data-timestamp', +new Date());
(d.head || d.body).appendChild(s);
Expand Down
2 changes: 1 addition & 1 deletion layouts/partials/footer.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<footer>
{{ if and .Params.comments (gt (len .Site.DisqusShortname) 0) }}
{{ if and .Params.comments (gt (len .Site.Config.Services.Disqus.Shortname) 0) }}
<figure class="article-discussion">
{{ template "_internal/disqus.html" . }}
</figure>
Expand Down
2 changes: 1 addition & 1 deletion layouts/partials/head.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<title>{{- if .IsHome }}{{ .Site.Title }}{{- else }}{{ .Title }} &middot; {{ .Site.Title }}{{- end }}</title>

<!-- CSS -->
{{- $inServerMode := .Site.IsServer }}
{{- $inServerMode := hugo.IsServer }}
{{- $cssTarget := "css/style.css" }}
{{- $cssOptions := cond ($inServerMode) (dict "targetPath" $cssTarget "enableSourceMap" true) (dict "targetPath" $cssTarget "outputStyle" "compressed") }}
{{- $style := resources.Get "scss/tale.scss" | toCSS $cssOptions }}
Expand Down

0 comments on commit 5acba3b

Please sign in to comment.