Skip to content

Commit

Permalink
fix deprecation warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
simbabque committed Oct 27, 2024
1 parent c8eab33 commit 2172f82
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 12 deletions.
5 changes: 3 additions & 2 deletions config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ title = "Julien's tech(ish) blog"
theme = "hugo-kiera"
canonifyurls = true

paginate = 3
[pagination]
pagerSize = 3

summaryLength = 30
enableEmoji = true
Expand Down Expand Up @@ -48,7 +49,7 @@ pygmentsCodeFences = true
url = "/categories"
weight = 1

[author]
[params.author]
name = "Julien Fiegehenn"
github = "simbabque"
#gitlab = "username"
Expand Down
8 changes: 4 additions & 4 deletions themes/hugo-kiera/layouts/_default/rss.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@
<link>{{ .Permalink }}</link>
<description>Recent content {{ if ne .Title .Site.Title }}{{ with .Title }}in {{.}} {{ end }}{{ end }}on {{ .Site.Title }}</description>
<generator>Hugo -- gohugo.io</generator>{{ with .Site.LanguageCode }}
<language>{{.}}</language>{{end}}{{ with .Site.Author.email }}
<managingEditor>{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}</managingEditor>{{end}}{{ with .Site.Author.email }}
<webMaster>{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}</webMaster>{{end}}{{ with .Site.Copyright }}
<language>{{.}}</language>{{end}}{{ with .Site.Params.Author.email }}
<managingEditor>{{.}}{{ with $.Site.Params.Author.name }} ({{.}}){{end}}</managingEditor>{{end}}{{ with .Site.Params.Author.email }}
<webMaster>{{.}}{{ with $.Site.Params.Author.name }} ({{.}}){{end}}</webMaster>{{end}}{{ with .Site.Copyright }}
<copyright>{{.}}</copyright>{{end}}{{ if not .Date.IsZero }}
<lastBuildDate>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</lastBuildDate>{{ end }}
{{ with .OutputFormats.Get "RSS" }}
Expand All @@ -21,7 +21,7 @@
<title>{{ .Title }}</title>
<link>{{ .Permalink }}</link>
<pubDate>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</pubDate>
{{ with .Site.Author.email }}<author>{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}</author>{{end}}
{{ with .Site.Params.Author.email }}<author>{{.}}{{ with $.Site.Params.Author.name }} ({{.}}){{end}}</author>{{end}}
<guid>{{ .Permalink }}</guid>
<description>{{ .Content | replaceRE `[\x00-\x1F\x7F]` "" | html}}</description>
</item>
Expand Down
2 changes: 1 addition & 1 deletion themes/hugo-kiera/layouts/partials/disqus.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
return;

var disqus_loaded = false;
var disqus_shortname = '{{ .Site.DisqusShortname }}';
var disqus_shortname = '{{ .Site.Config.Services.Disqus.Shortname }}';
var disqus_button = document.getElementById("show-comments");

var disqus_autoload = {{ .Site.Params.commentAutoload }};
Expand Down
2 changes: 1 addition & 1 deletion themes/hugo-kiera/layouts/partials/footer.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ <h6><a class="{{if or ($currentPage.IsMenuCurrent "footer" .) ($currentPage.HasM
</footer>
</div>
<script src="{{ "js/scripts.js" | relURL }}"></script>
{{ if .Site.GoogleAnalytics }}
{{ if .Site.Config.Services.GoogleAnalytics.ID }}
{{ template "_internal/google_analytics.html" . }}
{{ end }}
<script src="https://cdn.jsdelivr.net/npm/mermaid/dist/mermaid.min.js"></script>
Expand Down
4 changes: 2 additions & 2 deletions themes/hugo-kiera/layouts/partials/header.html
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,9 @@ <h1>
{{ end }}
{{- end -}}
{{- range .Site.Data.social.social_icons -}}
{{- if isset $.Site.Author .id }}
{{- if isset $.Site.Params.Author .id }}
<li>
<a href="{{ printf .url (index $.Site.Author .id) }}" title="{{ .title }}">
<a href="{{ printf .url (index $.Site.Params.Author .id) }}" title="{{ .title }}">
<i class="{{ .icon }} fa-lg"></i>
</a>
</li>
Expand Down
2 changes: 1 addition & 1 deletion themes/hugo-kiera/layouts/partials/meta.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="description" content="{{ .Site.Params.description | default "The HTML5 Herald" }}" />
<meta name="author" content="{{ .Params.Author | default .Site.Author.name }}" />
<meta name="author" content="{{ .Params.Author | default .Site.Params.Author.name }}" />
{{- with .OutputFormats.Get "rss" -}}
{{ printf `<link rel="%s" type="%s" href="%s" title="%s" />` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }}
{{- end -}}
Expand Down
2 changes: 1 addition & 1 deletion themes/hugo-kiera/layouts/partials/single_footer.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
{{ if .Site.Params.UtterancesRepo }}
{{ partial "utterances" . }}
{{ end }}
{{ if .Site.DisqusShortname }}
{{ if .Site.Config.Services.Disqus.Shortname }}
{{ partial "disqus" . }}
{{ end }}
{{ end }}
Expand Down

0 comments on commit 2172f82

Please sign in to comment.