~willvaughn/simple-hugo-theme

ref: 6ad1c96aff0c3f29c062c8fa419ed9acd744f768 simple-hugo-theme/layouts/resume/baseof.html -rw-r--r-- 1.6 KiB
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
<!DOCTYPE html>
<html>
<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>
    {{ $rstyles := resources.Get "css/resume.css" | minify -}}
    <style>
        {{- $rstyles.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>

<body>
    <div class="header">
        <h1>
            <a href="{{ .Site.BaseURL | relLangURL }}">{{- .Site.Title -}}</a>
            <div class="header-menu">
                {{- range .Site.Menus.main -}}
                {{ if eq (hasPrefix .URL "mailto:") true }}
                <a href="{{ .URL }}">{{- .Name -}}</a>
                {{ else }}
                <a href="{{ .URL | relLangURL }}">{{- .Name -}}</a>
                {{- end -}}
                {{ end }}
            </div>
        </h1>
    </div>
    <div id="content">
        {{- block "main" . }}{{- end }}
    </div>
    {{- partial "footer.html" . -}}
</body>

</html>