Welcome to mirror list, hosted at ThFree Co, Russian Federation.

link.html « head « partials « layouts - github.com/uPagge/uBlogger.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: c8ff62b47131c9007e9252c0b9eef9a95783ae38 (plain)
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
{{- $scratch := .Scratch.Get "scratch" -}}
{{- $CDN := $scratch.Get "CDN" -}}

<link rel="canonical" href="{{ .Permalink }}" />
<link rel="shortcut icon" type="image/x-icon" href="/favicon.ico" />
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png">
<link rel="manifest" href="/site.webmanifest">
<link rel="mask-icon" href="/safari-pinned-tab.svg" color="#5bbad5">

{{- if .PrevInSection -}}
    <link rel="prev" href="{{ .PrevInSection.Permalink }}" />
{{- end -}}
{{- if .NextInSection -}}
    <link rel="next" href="{{ .NextInSection.Permalink }}" />
{{- end -}}

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

{{- /* Font Awesome */ -}}
{{- with $CDN.fontawesomeFreeCSS -}}
    {{- . | safeHTML -}}
{{- else -}}
    {{- $res := resources.Get "lib/fontawesome-free/all.min.css" -}}
    <link rel="stylesheet" href="{{ $res.RelPermalink }}">
{{- end -}}

{{- /* Animate.css */ -}}
{{- with $CDN.animateCSS -}}
    {{- . | safeHTML -}}
{{- else -}}
    {{ $res := resources.Get "lib/animate/animate.min.css" -}}
    <link rel="stylesheet" href="{{ $res.RelPermalink }}">
{{- end -}}

{{- /* style.min.css */ -}}
{{- $res := resources.Get "css/style.template.scss" -}}
{{- $options := dict "targetPath" "css/style.min.css" -}}
{{- $options  = dict "includePaths" (slice "config/css") | merge $options -}}
{{- $options  = dict "outputStyle" "compressed" | merge $options -}}
{{- $options  = dict "enableSourceMap" true | merge $options -}}
{{- $res = resources.ExecuteAsTemplate "style.scss" . $res | toCSS $options -}}
<link rel="stylesheet" href="{{ $res.RelPermalink }}">