1
0
Fork 0
mirror of https://git.sr.ht/~seirdy/seirdy.one synced 2024-11-23 21:02:09 +00:00

Add a canonical URL

Since there's another version of the site on my tilde serving as a
staging area, I should specify a canonical version of the site to avoid
duplicate entries in search results.
This commit is contained in:
rohan kumar 2020-11-25 00:24:45 -08:00
parent 6cd84118ea
commit e919c83fd5
No known key found for this signature in database
GPG key ID: 1E892DB2A5F84479

View file

@ -5,7 +5,8 @@
<meta name="description" content="{{ . }}">
{{ end }}
{{ printf `<link rel="shortcut icon" href="%s">` ("favicon.png" | absURL) | safeHTML }}
<link href="{{ .Site.BaseURL }}posts/index.xml" rel="alternate" type="application/rss+xml" title="{{ $.Site.Title }}" />
<link href="{{ .Site.BaseURL }}posts/index.xml" rel="alternate" type="application/rss+xml" title="{{ $.Site.Title }}"/>
<link rel="canonical" href="https://seirdy.one{{ .RelPermalink }}"/>
{{ $resources := slice -}}