~willvaughn/simple-hugo-theme

ref: 6ad1c96aff0c3f29c062c8fa419ed9acd744f768 simple-hugo-theme/layouts/partials/head.html -rw-r--r-- 857 bytes
6ad1c96aWilliam Vaughn fix RSSLink incompatibility change in hugo 8 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">

    <title>
        {{- block "title" . -}}
        {{ .Title}}{{ if ne .Title .Site.Title }} | {{ .Site.Title }}{{ end }}
        {{- end -}}
    </title>

    {{ $styles := resources.Get "css/style.css" | minify -}}
    <style>
        {{- $styles.Content | safeCSS -}}
    </style>
    {{ $pstyles := resources.Get "css/print-style.css" | minify -}}
    <style media="print">
        {{- $pstyles.Content | safeCSS -}}
    </style>

    {{- if .OutputFormats.Get "RSS" }}
    <link href="{{ with .OutputFormats.Get "RSS" }}{{ .RelPermalink }}{{ end }}" rel="alternate" type="application/rss+xml" title="{{ .Site.Title }}" />
    {{- end -}}

    {{ template "_internal/google_analytics_async.html" . }}

    {{ partial "head_custom" . }}
</head>