summaryrefslogtreecommitdiff
path: root/layouts/unix-history/baseof.html
blob: dd03455d9a20225afdd710eb3c93a40fed56fe4a (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
<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
    }

    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;
    }
    
    @media only screen and (max-width: 700px) {
        body {
            background-image: unset;
            max-width: 95%;
            padding: 10px;
                          margin-left: 0;
        }
    }
    a {
        color: #000
    }

    img {
        max-width: 60%;
        height: auto;

    }

    h1 {
        font-style: italic;
    }

    .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 }}
  <header>
    <h1><a href="{{ .Permalink }}">{{ .Title }}</a></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>
  </footer>
</body>