summaryrefslogtreecommitdiff
path: root/layouts/_default/baseof.html
blob: c31074e9185afad5e45a359ec76118b20bb5fa09 (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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <title>{{ block "title" . }}
      {{ .Site.Title }}
      {{ end }}</TITLE>
    <link rel='stylesheet' type='text/css' href='/style.css'>
    <meta name="viewport" content="width=device-width, initial-scale=1" />
    {{- $image := resources.Get "/icons/apple-touch-icon.png"}}
    <link rel="apple-touch-icon" sizes="180x180" href="{{ $image.Permalink }}">
    {{- $image := resources.Get "/icons/favicon-32x32.png" }}
    <link rel="icon" type="image/png" sizes="32x32" href="{{ $image.Permalink }}">
    {{- $image := resources.Get "/icons/favicon-16x16.png" }}
    <link rel="icon" type="image/png" sizes="16x16" href="{{ $image.Permalink }}">
    <meta name="description" content="{{ .Params.Abstract | default .Site.Params.DefaultDescription}}"/>

    <meta property="og:title" content="{{ .Page.Title }}" />
    <meta property="og:type" content="website" />
    <meta property="og:url" content="{{ .Permalink }}" />
    {{- $imageUrl := default "logo.png" .Params.image }}
    {{- $image := resources.Get $imageUrl }}
    <meta property="og:image" content="{{ $image.Permalink }}" />
    <meta property="og:description" content="{{ .Params.Abstract | default .Site.Params.DefaultDescription}}"/>

    <meta name="twitter:title" content="{{ .Page.Title }}">
    <meta name="twitter:image" content="{{ $image.Permalink }}">
    <meta name="twitter:card" content="summary_large_image">
    <meta name="twitter:description" content="{{ .Params.Abstract | default .Site.Params.DefaultDescription}}" />

    <link rel="canonical" href="{{ .Permalink }}">
    <link rel='alternate' type='application/rss+xml' title="{{ .Site.Title }} RSS" href='/index.xml'>
    <meta name="robots" content="index, follow">
    {{ if isset .Params "tags" }}<meta name="keywords" content="{{ with .Params.tags }}{{ delimit . ", " }}{{ end }}">{{end}}

    <script defer data-api="/api/event" data-domain="{{ .Site.Params.PlausibleDomain}}" src="/js/script.js"></script>
  </head>
  <body>    {{ block "header" . }}
    <style>

      ::root {
          color-scheme: light dark; /* both supported */
          --menu-bg: #fff;
      }
      
.the-site {
  display: flex;
flex-wrap: wrap;
    margin-left: auto;
    margin-right: auto;
max-width: 700px;
margin-top: 20px;
}

.left-column {
flex: 200px 0;
text-align: center;
flex-shrink: 0;
}

.left-column nav {
    margin-top: 30px;
    flex-shrink: 0;
}

.left-column nav a {
    display: block;
    margin-bottom: 5px;
}
#topnav {
    background-color: var(--menu-bg);
}
@media (max-width: 710px) {
    .left-column nav a {
        display: inline-block;
        margin-right: 10px;
    }
    h1 {
        font-size: 1.5em;
        display: inline-block;
    }
    .the-site {
        margin-top: 5px;
    }
    .left-column nav {
        margin-top: 0;
        margin-bottom: 10px;
    }
p    #logo {
        height: 20px;
        display: inline-block;
    }
    #logo img {
        height: 20px;
    }
    #topnav {
        width: 100%;

    }
}
h1 {
    text-transform: none;
}
.right-column {
  flex: 50%;
}

/* Responsive layout - makes a one column layout instead of a two-column layout */
@media (max-width: 710px) {
  .left-column, .right-column {
    flex: 100%;
  }
}

pre code {
        width: 93%;
    padding-bottom: 5px;
    white-space: pre-wrap;
    border-width: 1px;
    border-style: solid;
    padding: 11px;
    background-color: #f0f0f0;
    word-break: keep-all;
}
</style>
    <section class="the-site">
      <aside class="left-column">
          <a href="/">
    {{ $image := resources.Get "logo.png" }}
    {{ $image := $image.Resize "x160 webpn" }}
          <div id="logo">
                  <img alt="logo" src="{{ $image.Permalink }}" width={{$image.Width}} height={{$image.Height}}/>
          </div>
          <h1>{{ .Site.Title }}</h1>
          <nav id="topnav">
        <a href="/">Home</a>
        <a href="/about">About</a>
        <a href="https://git.sapka.me">Git</a>
        <a href="/index.xml">RSS</a>
            </nav>

      </aside>
      <section class="right-column">
    {{ block "main" . }}
    {{ end }}
    
    {{ block "pagination" . }}
    {{ end }} 
          </section>
     </section>   





    
    <header>
      <div id="logo-space">
      
        </a>
      </div>
    </header>
    {{ end }}
    <main>


    {{ block "FOOTER" . }}
    </main>
    <footer>
    <div>
      <a href="https://git.sapka.me/michal-sapka-me.git/" target="_blank">Source code is available</a>. Theme is temporary. <a href="https://plausible.io/{{ .Site.Params.PlausibleDomain }}">Statistics are public</a>. Only glory of Satan is eternal.
      <BR><BR>
      
      <a rel="license" href="http://creativecommons.org/licenses/by/4.0/"><img alt="Creative Commons License" style="border-width:0" src="https://i.creativecommons.org/l/by/4.0/80x15.png" /></a><br />This work is licensed under a <a rel="license" href="http://creativecommons.org/licenses/by/4.0/">Creative Commons Attribution 4.0 International License</a>.
    </div>

    </footer>
    {{ end }}
    <link href="https://github.com/michalsapka" rel="me"/>
    <link rel="webmention" href="https://webmention.io/d-s.sh/webmention" />
    <link rel="pingback" href="https://webmention.io/d-s.sh/xmlrpc" />
  </body>
</html>