summaryrefslogtreecommitdiff
path: root/layouts
diff options
context:
space:
mode:
authormms <michal@sapka.me>2024-09-13 23:05:06 +0200
committermms <michal@sapka.me>2024-09-13 23:05:06 +0200
commit738a6b74f6c77df682526fc6ced9c02d108e1f4d (patch)
tree3adeb7805228ecca162ce9f4b6e79b3b408b5d2f /layouts
parentec53ecc04df5ed113b2cbecfecdea28b7ccb22b1 (diff)
feat: uxhist moved
Diffstat (limited to 'layouts')
-rw-r--r--layouts/partials/homepage/omake.html2
-rw-r--r--layouts/unix-history/baseof.html190
-rw-r--r--layouts/unix-history/single.html31
3 files changed, 10 insertions, 213 deletions
diff --git a/layouts/partials/homepage/omake.html b/layouts/partials/homepage/omake.html
index a83a0dc..aa78624 100644
--- a/layouts/partials/homepage/omake.html
+++ b/layouts/partials/homepage/omake.html
@@ -23,6 +23,6 @@
(japanese): extra, bonus<br>
Currently: mirror of an old site.
<ul>
- <li><a href="/userfriendly/">User Friendly Cartoon Archive</a> (over 5500 pages!)
+ <li><a href="https://uf.crys.site">User Friendly Cartoon Archive</a> (over 5500 pages!)
</lu>
</section>
diff --git a/layouts/unix-history/baseof.html b/layouts/unix-history/baseof.html
index 0ad985c..54db2d9 100644
--- a/layouts/unix-history/baseof.html
+++ b/layouts/unix-history/baseof.html
@@ -1,187 +1,13 @@
+{{ block "main" . }}
+{{ end }}
+
<!DOCTYPE html>
-<html lang="en">
-
+<html>
<head>
- <meta name="viewport" content="width=device-width, initial-scale=1">
- <meta charset="utf-8">
- <title> {{ .Page.Title }} </title>
-
-
- <meta name="viewport" content="width=device-width, initial-scale=1">
-
- {{- $header_rect := resources.Get "unix-history/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 Unix History changes" href='/unix-history/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 "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;
- }
-
- .footnotes p {
- margin: 0;
- padding: 0;
- }
-
- .button {
- text-align: left;
- }
- .button img {
- width: 88px;
- padding-left: 44px;
- }
-
- </style>
-
+ <title>{{ .Title }}</title>
+ <link rel="canonical" href="/unix-history/"/>
+ <meta http-equiv="content-type" content="text/html; charset=utf-8"/>
+ <meta http-equiv="refresh" content="0; url=https://unixhist.crys.site/{{ replace .RelPermalink "/unix-history/" ""}}"/>
</head>
- <body>
- <header>
- {{ block "head" . }}
- {{ end }}
-
- <h1>{{ .Page.Params.shortname }}</h1>
- </header>
-
- <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" . }}
- {{ partial "buttons/emacs" . }}
- {{ partial "buttons/openbsd" . }}
- </div>
- </footer>
- </body>
</html>
diff --git a/layouts/unix-history/single.html b/layouts/unix-history/single.html
index fa8673b..e4e4a83 100644
--- a/layouts/unix-history/single.html
+++ b/layouts/unix-history/single.html
@@ -1,31 +1,2 @@
-{{ define "head" }}
-<a href="/unix-history">
-{{- $header_rect := resources.Get "unix-history/header-top.png" }}
-{{- $header_rect_180 := $header_rect.Resize "50x webp q90"}}
-<img
- style="
- height: 1.5em;
- width: auto;
- margin-right: 0.5em;
- "
- src="{{ $header_rect_180.Permalink }}"
- ></a>
-
-<b><i>History of Unix</i></b>
-<hr>
-
-{{ end }}
-
{{ define "main" }}
-
-<article>
- {{ .Page.Content }}
-</article>
-
-{{- if .Params.primary_menu }}
- {{ partial "single/bottom_nav.html" (dict "menuID" .Page.Params.primary_menu "page" .) }}
-{{- end }}
-
-{{ partial "single/dates.html" . }}
-
-{{- end }}
+{{ end }}