summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorStefan Kreutz <mail@skreutz.com>2020-07-06 22:40:21 +0200
committerStefan Kreutz <mail@skreutz.com>2020-07-06 22:40:21 +0200
commit07c1d9f590e8de064e9b527c3d425eb898f7e59e (patch)
tree38307806182a481ca534e853a8ba2c3db9596a0c /templates
downloadblog-07c1d9f590e8de064e9b527c3d425eb898f7e59e.tar
Add initial version
This commit adds the first published version of the website including the first blog post, Unix Domain Socket Forwarding with OpenSSH.
Diffstat (limited to 'templates')
-rw-r--r--templates/default.html43
-rw-r--r--templates/direct.html2
-rw-r--r--templates/post.html8
-rw-r--r--templates/posts.html10
-rw-r--r--templates/sitemap.xml23
5 files changed, 86 insertions, 0 deletions
diff --git a/templates/default.html b/templates/default.html
new file mode 100644
index 0000000..739995b
--- /dev/null
+++ b/templates/default.html
@@ -0,0 +1,43 @@
+<!doctype html>
+<html lang="en">
+ <head>
+ <meta charset="utf-8">
+ <meta http-equiv="x-ua-compatible" content="ie=edge">
+ <meta name="viewport" content="width=device-width, initial-scale=1">
+ <meta name="author" content="Stefan Kreutz">
+ $if(description)$
+ <meta name="description" content="$description$">
+ $else$
+ <meta name="description" content="Stefan Kreutz' personal website.">
+ $endif$
+ <title>skreutz.com - $title$</title>
+ <link rel="stylesheet" href="/css/normalize.css">
+ <link rel="stylesheet" href="/css/site.css">
+ <link rel="alternate" type="application/rss+xml" href="/feeds/posts.rss" title="Stefan Kreutz' Blog">
+ <link rel="alternate" type="application/atom+xml" href="/feeds/posts.atom" title="Stefan Kreutz' Blog">
+ </head>
+ <body>
+ <header>
+ <nav>
+ <ul>
+ <li><a href="/" title="Home page">skreutz.com</a></li>
+ <li><a href="/about/">About</a></li>
+ <li><a href="/posts/">Blog</a></li>
+ <li><a href="/contact/">Contact</a></li>
+ </ul>
+ </nav>
+ </header>
+ <main>
+ $body$
+ </main>
+ <footer>
+ <nav>
+ <ul>
+ <li><a href="/privacy/">Privacy</a></li>
+ <li><a href="/feeds/posts.rss">RSS feed</a></li>
+ <li><a href="/feeds/posts.atom">Atom feed</a></li>
+ </ul>
+ </nav>
+ </footer>
+ </body>
+</html>
diff --git a/templates/direct.html b/templates/direct.html
new file mode 100644
index 0000000..a16a6f8
--- /dev/null
+++ b/templates/direct.html
@@ -0,0 +1,2 @@
+<h1>$title$</h1>
+$body$
diff --git a/templates/post.html b/templates/post.html
new file mode 100644
index 0000000..726fa77
--- /dev/null
+++ b/templates/post.html
@@ -0,0 +1,8 @@
+<article>
+ <h1>$title$</h1>
+ <header>
+ Posted on <time datetime="$formalDate$">$date$</time>
+ </header>
+ $body$
+ <footer></footer>
+</article>
diff --git a/templates/posts.html b/templates/posts.html
new file mode 100644
index 0000000..b35e0e7
--- /dev/null
+++ b/templates/posts.html
@@ -0,0 +1,10 @@
+<h1>Blog</h1>
+<ol class="blog-index">
+ $for(posts)$
+ <li>
+ <a href="$url$">$title$</a>
+ <time datetime="$formalDate$">$date$</time>
+ <p>$description$</p>
+ </li>
+ $endfor$
+</ol>
diff --git a/templates/sitemap.xml b/templates/sitemap.xml
new file mode 100644
index 0000000..c95874b
--- /dev/null
+++ b/templates/sitemap.xml
@@ -0,0 +1,23 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<urlset
+ xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
+ xmlns:news="http://www.google.com/schemas/sitemap-news/0.9"
+ xmlns:xhtml="http://www.w3.org/1999/xhtml"
+ xmlns:mobile="http://www.google.com/schemas/sitemap-mobile/1.0"
+ xmlns:image="http://www.google.com/schemas/sitemap-image/1.1"
+ xmlns:video="http://www.google.com/schemas/sitemap-video/1.1"
+>
+ <url>
+ <loc>$root$</loc>
+ <changefreq>daily</changefreq>
+ <priority>1.0</priority>
+ </url>
+ $for(pages)$
+ <url>
+ <loc>$root$$url$</loc>
+ <lastmod>$if(updated)$$updated$$else$$if(date)$$date$$endif$$endif$</lastmod>
+ <changefreq>weekly</changefreq>
+ <priority>0.8</priority>
+ </url>
+ $endfor$
+</urlset>
Generated by cgit. See skreutz.com for my tech blog and contact information.