mirror of https://github.com/lxndrblz/anatole.git

Alexander Bilz
11.52.2020 ba7d4dd1acb9f7e65ad858785512469d93d8b713
Merge pull request #37 from qmx/enable-rss

Enable RSS metadata in header configuration.
1 files modified
3 ■■■■■ changed files
layouts/partials/head.html 3 ●●●●● patch | view | raw | blame | history
layouts/partials/head.html
@@ -16,6 +16,9 @@
    <link rel="icon" type="image/png" sizes="32x32" href="{{ .Site.Params.favicon | absURL }}favicon-32x32.png">
    <link rel="icon" type="image/png" sizes="16x16" href="{{ .Site.Params.favicon | absURL }}favicon-16x16.png">
    <link rel="canonical" href="{{ .Permalink }}">
    {{ with .OutputFormats.Get "rss" -}}
        {{ printf `<link rel="%s" type="%s" href="%s" title="%s" />` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }}
    {{ end -}}
    {{ $anatole := resources.Get "js/anatole-header.js" }}
    {{ $secureJS := $anatole |  resources.Minify | resources.Fingerprint }}
    <script type="text/javascript" src="{{ $secureJS.Permalink }}" integrity="{{ $secureJS.Data.Integrity }}" crossorigin="anonymous"></script>