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

baseof.html « _default « layouts - github.com/uPagge/uBlogger.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 7d3e4933965519281386db984f21ee5a1196c301 (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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
{{- partial "init.html" . -}}

<!DOCTYPE html>
<html lang="{{ .Site.LanguageCode }}">
    <head>
        <meta charset="utf-8">
        <meta name="viewport" content="width=device-width, initial-scale=1">
        {{- block "robots" . }}<meta name="robots" content="noodp"/>{{ end -}}
        <title>
            {{- block "title" . }}{{ .Site.Title }}{{ end -}}
        </title>
        {{- block "twitter-card" . }}
        <meta name="twitter:card" content="summary_large_image"/>
        {{- with .Site.Params.Seo.Images -}}
        <meta name="twitter:image" content="{{ index . 0 }}"/>
        {{- end -}}
        {{- with .Site.Params.Social.Twitter -}}
        <meta name="twitter:creator" content="@{{ . }}"/>
        {{- end -}}
        <meta name="twitter:title" content="{{ .Site.Params.Title }}"/>
        <meta name="twitter:description" content="{{ .Site.Params.Description }}"/>
        {{ end -}}
        {{- partial "head/meta.html" . -}}
        {{- partialCached "head/link.html" . -}}

        {{- partial "head/seo.html" . -}}
        {{- block "dnsPrefetch" . }}
        {{- with $.Site.Params.Seo.dnsPrefetch -}}
        {{- range $index, $value := . -}}
        <link rel="dns-prefetch" href="{{ $value }}">
        {{- end -}}
        {{- end -}}
        {{ end -}}
    </head>
    <body data-header-desktop="{{ .Site.Params.header.desktopMode }}" data-header-mobile="{{ .Site.Params.header.mobileMode }}">
        {{- /* Check theme isDark before body rendering */ -}}
        {{- $theme := .Site.Params.defaulttheme -}}
        <script>(window.localStorage && localStorage.getItem('theme') ? localStorage.getItem('theme') === 'dark' : ('{{ $theme }}' === 'auto' ? window.matchMedia('(prefers-color-scheme: dark)').matches : '{{ $theme }}' === 'dark')) && document.body.setAttribute('theme', 'dark');</script>

        <div id="mask"></div>

        {{- /* Body wrapper */ -}}
        <div class="wrapper">
            {{- partialCached "header.html" . -}}
            <main class="main">
                {{- block "no-content" . }}
                <div class="container">
                    {{- block "content" . }}{{ end -}}
                </div>
                {{ end -}}
            </main>
            {{- partialCached "footer.html" . -}}
        </div>

        <aside id="fixed-buttons">
            {{- /* top button */ -}}
            <a href="#" id="back-to-top" class="fixed-button" title="{{ T `backToTop` }}">
                <i class="svg-icon icon-arrow-up"></i>
            </a>

            {{- /* comment button */ -}}
            <a href="#" id="view-comments" class="fixed-button" title="{{ T `viewComments` }}">
                <i class="svg-icon icon-comments-fixed"></i>
            </a>
        </aside>

        {{- /* Load JavaScript scripts and CSS */ -}}
        {{- partial "assets.html" . -}}
    </body>
</html>