summaryrefslogtreecommitdiff
path: root/layouts/cool-emacs/baseof.html
blob: fecc1c64f138e36990b4c172ecfb7d6ee43dbc5b (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
<!DOCTYPE html>
<html lang="en">
<head>
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta charset="utf-8">
    <title> {{ .Page.Title }} | Cool Emacs </title>

    <meta name="viewport" content="width=device-width, initial-scale=1">
      
    {{- $header_rect := resources.Get "cool-emacs/header-rect.png" }}
    {{- $header_rect_180 := $header_rect.Resize "180x webp q90"}}
    <link rel="apple-touch-icon" sizes="180x180" href="{{ $header_rect_180.Permalink }}">
      
    {{- $header_rect_32 := $header_rect.Resize "32x webp q90"}}
    <link rel="icon" type="image/png" sizes="32x32" href="{{ $header_rect_32.Permalink }}">
    
    {{- $header_rect_16 := $header_rect.Resize "16x webp q90"}}
    <link rel="icon" type="image/png" sizes="16x16" href="{{ $header_rect_16.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 }}">
    <meta property="og:image" content="{{ $header_rect.Permalink }}">
    <meta property="og:description" content="{{ .Params.Abstract | default .Site.Params.DefaultDescription}}">
    
    <link rel="canonical" href="{{ .Permalink }}">
    <link rel='alternate' type='application/rss+xml' title="Feed with all changes" href='/index.xml'>
    <link rel='alternate' type='application/rss+xml' title="Feed with Cool Emacs changes" href='/cool-emacs/index.xml'>
    <meta name="robots" content="index, follow">
    <link rel="me" href="https://emacs.ch/@mms">
    
    <link rel="webmention" href="https://webmention.io/d-s.sh/webmention">
    <link rel="pingback" href="https://webmention.io/d-s.sh/xmlrpc">

  {{- $bg := resources.Get "cool-emacs/bg.gif" -}}
  <style>
    :root {
        --bg-color: #F5F5F5;
        --text-color: #000;
        --heading-color: #9b0000;
        --heading-shadow: 14px 7px 16px rgba(166, 168, 191, 1);
    }
    body {
        font-family: helvetica;
        background-color: #B2BEB5;
        font-size: 1em;
        background-image: url({{ $bg.Permalink }});
        background-repeat: repeat-y;
        background-size: 30px;
        background-color: var(--bg-color);
        color: var(--text-color);
    }

    .site {
        width: 800px;
        max-width: 80%;
        margin-top: 0;
        margin-bottom: 0;
        padding: 20px;
        margin-left: 50px;
    }
    @media only screen and (max-width: 600px) {
        .site {
            margin-left: 10px;
        }
    }

    article figure {
        text-align: center;
        margin: 0;
        max-width: 100%;
        font-size: 0.8em;
    }
    
    img {
        max-width: 60%;
        height: auto;
    }

    figure img {
        border-width: 5px;
        border-style: solid;
        border-color: var(--heading-color);
    }
    
    
    p, ul {
        line-height: 1.4em;
        text-align: justify;
    }
    p, ul, .highlight, pre code {
        margin-left: 40px;
    }
    @media only screen and (max-width: 600px) {
        p, ul, .highlight, pre code {
            margin-left: 20px;
        }
    }
    .highlight {
        display: block;
        max-width: 90%;
        overflow-x: scroll;
        width: 750px;
    }
    pre {
        padding: 10px;
    }
    h1 {
        padding-bottom: 50px;
        text-shadow: var(--heading-shadow);
    }
    h2, h3 {
        text-shadow: var(--heading-shadow);
        font-family: monospace;
        color: var(--heading-color);
    }
    .no-border img {
        border: 0;
    }
    .right {
        float: right;
        max-width: 40%;
    }

  </style>
  

</head>
<body>
  <div class="site">
    <header>
      {{ block "head" . }}
      {{ end }}  

  </header>
    <article>
      <h1>{{ .Title }}</h1>

      {{ block "main" . }}
      {{ end }}
    </article>

    <footer>
      <hr>
      Website created and operated by <a href="https://michal.sapka.me">Michał</a>
      <div style="padding: 15px; text-align: center;">
        {{ partial "buttons/valid_html" . }}
        {{ partial "button-31" (dict "file" "rss.gif" "alt" "RSS Feed" "href" "https://michal.sapka.me/cool-emacs/index.xml") }}
        {{ partial "buttons/emacs" . }}
        {{ partial "buttons/openbsd" . }}
      </div>
    </footer>
  </div>
</body>