Fix incompatibility with new hugo version

This commit is contained in:
Ivaylo Ivanov 2024-11-22 14:45:45 +01:00
parent 5dcc67d31b
commit 189a933839
3 changed files with 5 additions and 5 deletions

View File

@ -26,10 +26,10 @@
<!-- Modify the custom.css file inside static > css to use vanilla css -->
<!-- <link type="text/css" rel="stylesheet" href="{{ "/" | relURL }}css/custom.css"> -->
{{ with .OutputFormats.Get "RSS" }}
{{ with site.Home.OutputFormats.Get "RSS" }}
{{ printf `<link rel="%s" type="%s" href="%s" title="%s" />` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }}
{{ end }}
{{- if not .Site.IsServer -}}
{{- if not hugo.IsServer -}}
{{ template "_internal/google_analytics.html" . }}
{{- end -}}
</head>

View File

@ -5,7 +5,7 @@
{{ range .Site.Menus.main }}
<a class="color-link nav-link" href="{{ .URL }}">{{ .Name }}</a>
{{ end }}
<a class="color-link nav-link" href="{{ .Site.RSSLink }}" target="_blank" rel="noopener" type="application/rss+xml">RSS</a>
<a class="color-link nav-link" href="{{ .Permalink }}" target="_blank" rel="noopener" type="application/rss+xml">RSS</a>
</div>
{{ partial "footer.html" . }}
</nav>

View File

@ -8,5 +8,5 @@ features = ["blog", "responsive", "social media"]
min_version = "0.55.2"
[author]
name = "kimcc"
homepage = "https://github.com/kimcc"
name = "ivo"
homepage = "https://git.ivayloivanov.eu"