diff options
author | Ngô Ngọc Đức Huy <huyngo@disroot.org> | 2023-09-02 09:59:50 +0700 |
---|---|---|
committer | Ngô Ngọc Đức Huy <huyngo@disroot.org> | 2023-09-02 09:59:50 +0700 |
commit | b425cdb5b2fbd9aab2031b2986dbf31bcc4d69b8 (patch) | |
tree | 04bd06137cc00416d375f9f0691f21a1a4a2f0c0 | |
parent | e619500e1a7668c82e002713f1ef15fa2568e277 (diff) | |
download | victor-b425cdb5b2fbd9aab2031b2986dbf31bcc4d69b8.tar.gz |
Add RSS and rel=me link
-rw-r--r-- | layouts/partials/head.html | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/layouts/partials/head.html b/layouts/partials/head.html index 9775e90..c37bba4 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -27,3 +27,10 @@ </title> <meta name="description" content="{{ .Site.Params.Description }}"> <link rel="stylesheet" type="text/css" href="{{ $style.RelPermalink }}"> +{{ with .OutputFormats.Get "rss" -}} + <link rel="{{.Rel}}" type="{{.MediaType.Type}}" + href="{{.Permalink}}" title="{{$.Site.Title | safeHTML}}"/> +{{ end -}} +{{ range .Site.Params.relMe }} + <link href="{{.}}" rel="me"> +{{ end}} |