aboutsummaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorRomain Gonçalves <me@rgoncalves.se>2021-09-27 15:08:34 +0200
committerRomain Gonçalves <me@rgoncalves.se>2021-09-27 15:08:34 +0200
commit8fe5387c47196d09063e12ca6b9ad768ad4849b0 (patch)
treedc75df123d86c4027b9fb18218d1bafdc13819fe /templates
parent17278427d7e7eecd95c8bf808501188342cd8435 (diff)
downloadwebsite-8fe5387c47196d09063e12ca6b9ad768ad4849b0.tar.gz
all: Bump to version 3 of static site generation
Diffstat (limited to 'templates')
-rw-r--r--templates/_metadata.md3
-rw-r--r--templates/default15
-rw-r--r--templates/default.footer3
-rw-r--r--templates/default.head (renamed from templates/head.html)2
-rw-r--r--templates/default.header10
-rw-r--r--templates/default.html15
-rw-r--r--templates/footer.md1
-rw-r--r--templates/header.md8
-rw-r--r--templates/none6
-rw-r--r--templates/none.html9
10 files changed, 35 insertions, 37 deletions
diff --git a/templates/_metadata.md b/templates/_metadata.md
deleted file mode 100644
index da79be4..0000000
--- a/templates/_metadata.md
+++ /dev/null
@@ -1,3 +0,0 @@
-$(
-pwd
-)
diff --git a/templates/default b/templates/default
new file mode 100644
index 0000000..38de71d
--- /dev/null
+++ b/templates/default
@@ -0,0 +1,15 @@
+<html>
+include(templates/default.head)
+<body>
+ <header>
+ include(templates/default.header)
+ </header>
+ sinclude(tmp/tmp.metadata)
+ sinclude(tmp/tmp.toc)
+ include(tmp/tmp.body)
+ sinclude(tmp/tmp.index)
+ <footer>
+ include(templates/default.footer)
+ </footer>
+<body>
+</html>
diff --git a/templates/default.footer b/templates/default.footer
new file mode 100644
index 0000000..f41001a
--- /dev/null
+++ b/templates/default.footer
@@ -0,0 +1,3 @@
+<blockquote>
+remember that computer sucks
+</blockquote>
diff --git a/templates/head.html b/templates/default.head
index 7272d63..ca312c9 100644
--- a/templates/head.html
+++ b/templates/default.head
@@ -1,4 +1,4 @@
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link href="/style/style.css" rel="stylesheet" type="text/css">
-<title></title>
+<title>rgoncalves.se</title>
diff --git a/templates/default.header b/templates/default.header
new file mode 100644
index 0000000..d646b91
--- /dev/null
+++ b/templates/default.header
@@ -0,0 +1,10 @@
+<h1><a href="/">rgoncalves.se</a></h1>
+
+<ul>
+ <li><a href="/w">wiki</a></li>
+ <li><a href="/s">services</a></li>
+ <li><a href="/rss.xml">rss</a></li>
+ <li><a href="https://git.rgoncalves.se">git</a></li>
+ <li><a href="https://webring.xxiivv.com/#random">webring</a></li>
+ <li><a href="/a">about</a></li>
+</ul>
diff --git a/templates/default.html b/templates/default.html
deleted file mode 100644
index 9156cbd..0000000
--- a/templates/default.html
+++ /dev/null
@@ -1,15 +0,0 @@
-<html>
-include(templates/head.html)
-<body>
- <header>
- include(tmp/header.html)
- </header>
- sinclude(tmp/metadata.html)
- sinclude(tmp/toc.html)
- include(tmp/body.html)
- sinclude(tmp/index.html)
- <footer>
- include(tmp/footer.html)
- </footer>
-<body>
-</html>
diff --git a/templates/footer.md b/templates/footer.md
deleted file mode 100644
index 150702b..0000000
--- a/templates/footer.md
+++ /dev/null
@@ -1 +0,0 @@
-> remember that computer sucks
diff --git a/templates/header.md b/templates/header.md
deleted file mode 100644
index 4356090..0000000
--- a/templates/header.md
+++ /dev/null
@@ -1,8 +0,0 @@
-# [rgoncalves.se](/)
-
-- [wiki](/w)
-- [services](/s)
-- [rss](/rss.xml)
-- [git](https://git.rgoncalves.se)
-- [webring](https://webring.xxiivv.com/#random)
-- [about](/a)
diff --git a/templates/none b/templates/none
new file mode 100644
index 0000000..a125d9e
--- /dev/null
+++ b/templates/none
@@ -0,0 +1,6 @@
+<html>
+include(templates/default.head)
+<body>
+ include(tmp/tmp.body)
+<body>
+</html>
diff --git a/templates/none.html b/templates/none.html
deleted file mode 100644
index f75fb33..0000000
--- a/templates/none.html
+++ /dev/null
@@ -1,9 +0,0 @@
-<html>
-include(templates/head.html)
-<body>
- sinclude(tmp/metadata.html)
- sinclude(tmp/toc.html)
- include(tmp/body.html)
- sinclude(tmp/index.html)
-<body>
-</html>
remember that computers suck.