Skip to content

Commit

Permalink
Adjust per gohugoio/hugo#3262
Browse files Browse the repository at this point in the history
Signed-off-by: Chris Reddington <791642+chrisreddington@users.noreply.github.com>
  • Loading branch information
chrisreddington committed Dec 13, 2020
1 parent 8244da1 commit f143dcc
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions layouts/partials/seo/meta.html
Expand Up @@ -36,7 +36,7 @@

<meta property="og:updated_time" content={{ .Lastmod.Format "2006-01-02T15:04:05Z0700" | safeHTML }} />

<link rel="sitemap" type="application/xml" title="Sitemap" href="{{ printf "%s%s" .Site.BaseURL "sitemap.xml"}}" />
<link rel="sitemap" type="application/xml" title="Sitemap" href="{{ "sitemap.xml" | absURL}}" />

{{ with .OutputFormats.Get "RSS" }}
<link href="{{ .Permalink }}" rel="alternate" type="application/rss+xml" title="{{ $.Site.Title }}" />
Expand Down Expand Up @@ -98,7 +98,7 @@
"name": "{{ .Site.Title }}",
"logo": {
"@type": "imageObject",
"url": "{{ .Site.BaseURL }}/favicon.ico"
"url": {{ "/favicon.ico" | absURL }}
}
}
}
Expand All @@ -117,7 +117,7 @@
{{ printf "%s%s" "https://github.com/" .Site.Params.github | htmlUnescape | safeHTML }}
],
"name": "{{ .Title }}",
"logo": {{ printf "%s%s" .Site.BaseURL "favicon.ico" }}
"logo": {{ "/favicon.ico" | absURL }}
}
</script>

Expand All @@ -137,8 +137,7 @@
{{ end }}

<!-- Manifest File -->
{{ $manifestUrl:= printf "%s%s" .Site.BaseURL "manifest.json" }}
<link rel="manifest" href="{{ $manifestUrl }}" />
<link rel="manifest" href="{{ "/manifest.json" | absURL }}" />

<!-- Theme Color -->
<meta name="theme-color" content="#141414" />
Expand All @@ -154,4 +153,4 @@
<meta name="mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />
<meta name="apple-touch-fullscreen" content="yes" />
<link rel="apple-touch-icon" href="{{ printf "%s%s" .Site.BaseURL "img/apple-touch-icon.png"}} ">
<link rel="apple-touch-icon" href="{{ "img/apple-touch-icon.png" | absURL }} ">

0 comments on commit f143dcc

Please sign in to comment.