blob: 7a04eff23453b0f8453099106e4da503dd32eb60 (
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
|
<!DOCTYPE html>
<html lang="en">
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
{{ partial "header/meta" . }}
{{- $bg := resources.Get "unix-history/bg.gif" -}}
<style>
:root {
--bg-color: #E8E9EB;
--heading-color: #738678;
--text-color: #000;
}
body {
width: 800px;
max-width: 70%;
margin-left: auto;
margin-right: auto;
font-family: helvetica;
font-size: 1em;
line-height: 1.5em;
text-align: justify;
background-image: url({{ $bg.Permalink }});
background-repeat: repeat-y;
background-size: 200px;
background-color: var(--bg-color);
padding-top: 20px;
padding-bottom: 30px;
padding-left: 210px;
padding-right: 30px;
overflow-x: hidden;
color: var(--text-color);
}
@media only screen and (max-width: 700px) {
body {
background-image: unset;
max-width: 95%;
padding: 10px;
margin-left: 0;
}
}
a {
color: var(--text-color);
}
p {
padding-left: 40px;
}
article figure {
text-align: center;
margin: 0;
max-width: 100%;
font-size: 0.8em;
}
img {
max-width: 60%;
height: auto;
}
h1 {
font-style: italic;
color: var(--heading-color);
}
h2 {
font-size:1.1em;
color: var(--heading-color);
}
.wip {
width: 80%;
background-color: #EEE;
border-radius: 5px;
margin: 20px;
margin-left: auto;
margin-right: auto;
padding: 10px;
padding-top: 20px;
padding-bottom: 20px;
border-style: solid;
border-color: #000;
border-width: 1px;
vertical-align: middle;
}
.wip img {
vertical-align: middle;
padding-left: 10px;
padding-right: 10px;
}
.top-menu {
display: flex;
}
.top-menu-element {
width: 50%;
flex-shrink: 0;
}
.header-sep {
margin-top: 30px;
margin-bottom: 30px;
}
</style>
</head>
<body>
<nav>
{{ range $parent := first 1 .Ancestors}}
<a href="{{ .Permalink }}"> << Back</a>
{{ end }}
</nav>
<header>
<h1>{{ .Title }}</h1>
</header>
<hr>
<article>
<aside class="wip">
{{ $wip := resources.Get "icons/wip.gif"}}
<img src="{{$wip.Permalink}}" alt="Work in progress" width="{{ $wip.Width}}" height="{{ $wip.Height }}">
This text is still work in progress and will be updated.
</aside>
{{ block "main" . }}
{{ end }}
</article>
<hr>
<footer>
Website created and operated by <a href="https://michal.sapka.me">Michał</a>
<div style="padding: 15px; text-align: center;">
{{ partial "buttons/valid_html" . }}
</div>
</footer>
</body>
</html>
|