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 --> <!-- Modify the custom.css file inside static > css to use vanilla css -->
<!-- <link type="text/css" rel="stylesheet" href="{{ "/" | relURL }}css/custom.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 }} {{ printf `<link rel="%s" type="%s" href="%s" title="%s" />` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }}
{{ end }} {{ end }}
{{- if not .Site.IsServer -}} {{- if not hugo.IsServer -}}
{{ template "_internal/google_analytics.html" . }} {{ template "_internal/google_analytics.html" . }}
{{- end -}} {{- end -}}
</head> </head>

View File

@ -5,7 +5,7 @@
{{ range .Site.Menus.main }} {{ range .Site.Menus.main }}
<a class="color-link nav-link" href="{{ .URL }}">{{ .Name }}</a> <a class="color-link nav-link" href="{{ .URL }}">{{ .Name }}</a>
{{ end }} {{ 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> </div>
{{ partial "footer.html" . }} {{ partial "footer.html" . }}
</nav> </nav>

View File

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