Remove uses of safeURL

This commit is contained in:
Will Faught
2025-02-06 22:48:18 -08:00
parent dcbc7775ea
commit 268997acf2
9 changed files with 22 additions and 22 deletions

View File

@@ -1,35 +1,35 @@
{{ $page := . }}
{{ if fileExists "static/apple-touch-icon.png" }}
<link href="{{ relLangURL `apple-touch-icon.png` | safeURL }}" rel="apple-touch-icon" sizes="180x180">
<link href="{{ relLangURL `apple-touch-icon.png` }}" rel="apple-touch-icon" sizes="180x180">
{{ end }}
{{ if fileExists "static/favicon.ico" }}
<link href="{{ relLangURL `favicon.ico` | safeURL }}" rel="shortcut icon">
<link href="{{ relLangURL `favicon.ico` }}" rel="shortcut icon">
{{ end }}
{{ if fileExists "static/favicon.png" }}
<link href="{{ relLangURL `favicon.png` | safeURL }}" rel="icon" type="image/png">
<link href="{{ relLangURL `favicon.png` }}" rel="icon" type="image/png">
{{ end }}
{{ if fileExists "static/favicon.svg" }}
<link href="{{ relLangURL `favicon.svg` | safeURL }}" rel="icon" type="image/svg+xml">
<link href="{{ relLangURL `favicon.svg` }}" rel="icon" type="image/svg+xml">
{{ end }}
{{ if fileExists "static/favicon-16x16.png" }}
<link href="{{ relLangURL `favicon-16x16.png` | safeURL }}" rel="icon" sizes="16x16" type="image/png">
<link href="{{ relLangURL `favicon-16x16.png` }}" rel="icon" sizes="16x16" type="image/png">
{{ end }}
{{ if fileExists "static/favicon-32x32.png" }}
<link href="{{ relLangURL `favicon-32x32.png` | safeURL }}" rel="icon" sizes="32x32" type="image/png">
<link href="{{ relLangURL `favicon-32x32.png` }}" rel="icon" sizes="32x32" type="image/png">
{{ end }}
{{ if fileExists "static/safari-pinned-tab.svg" }}
<link color="{{ $page.Param `paige.color` | default `#0d6efd` }}" href="{{ relLangURL `safari-pinned-tab.svg` | safeURL }}" rel="mask-icon">
<link color="{{ $page.Param `paige.color` | default `#0d6efd` }}" href="{{ relLangURL `safari-pinned-tab.svg` }}" rel="mask-icon">
{{ end }}
{{ if fileExists "assets/site.webmanifest" }}
<link href="{{ (resources.Get `site.webmanifest` | resources.ExecuteAsTemplate `site.webmanifest` .).RelPermalink | safeURL }}" rel="manifest">
<link href="{{ (resources.Get `site.webmanifest` | resources.ExecuteAsTemplate `site.webmanifest` .).RelPermalink }}" rel="manifest">
{{ end }}
{{ $color := $page.Param "paige.color" | default "#0d6efd" }}
@@ -45,5 +45,5 @@
{{ end }}
{{ range $page.AlternativeOutputFormats }}
{{ printf `<link href="%s" rel="%s" type="%s">` (.Permalink | safeURL) .Rel .MediaType | safeHTML }}
{{ printf `<link href="%s" rel="%s" type="%s">` .Permalink .Rel .MediaType | safeHTML }}
{{ end }}