Add link to RSS feed to <head>

This commit is contained in:
Vojtěch Káně 2020-05-11 15:29:36 +02:00
parent d5a2f75647
commit ebedef09ab

View File

@ -6,6 +6,9 @@
<title>{{ block "title" . }}{{ .Title }} | {{ .Site.Title }}{{ end }}</title>
{{ $favicon := resources.Get "img/favicon.ico" }}
<link rel="icon" href="{{ $favicon.Permalink }}" type="image/ico">
{{ with .OutputFormats.Get "rss" -}}
<link rel="{{ .Rel }}" type="{{ .MediaType.Type }}" href="{{ .Permalink }}" title="{{ $.Site.Title }}">
{{- end }}
{{ block "css" . -}}
<link rel="stylesheet" href="https://unpkg.com/firacode@1.206.0/distr/fira_code.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.11.2/css/all.min.css" integrity="sha256-+N4/V/SbAFiW1MPBCXnfnP9QSN3+Keu+NlB+0ev/YKQ=" crossorigin="anonymous" />