summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJohannes Löthberg <johannes@kyriasis.com>2014-10-15 18:39:56 +0100
committerJohannes Löthberg <johannes@kyriasis.com>2014-10-15 18:40:45 +0100
commitb8cd2d937eb0e305509d1ffc70a52315320541c8 (patch)
tree81f2b020f274c2128b8aeff19561130014d33923 /src
parent965c9e67ef6f79b9cf72a01da03222a66d632569 (diff)
downloadwebsite-b8cd2d937eb0e305509d1ffc70a52315320541c8.tar.xz
refactor bupa slightly, add isso comments on separate entry pages
Diffstat (limited to 'src')
-rw-r--r--src/journal/1-hello-world.rst2
-rw-r--r--src/templates/entry.html37
-rw-r--r--src/templates/journal.html1
-rw-r--r--src/templates/layout.html6
-rw-r--r--src/templates/nav.html6
5 files changed, 46 insertions, 6 deletions
diff --git a/src/journal/1-hello-world.rst b/src/journal/1-hello-world.rst
index a7f77bc..b5827a4 100644
--- a/src/journal/1-hello-world.rst
+++ b/src/journal/1-hello-world.rst
@@ -2,7 +2,7 @@
title: Hello, World
date: 2014-10-14
author: Johannes Löthberg
- author_link: about.html
+ author_link: /~kyrias/about.html
I should probably write an entry some time. I’ve been thinking about what to write about for a while but I can’t really think of anything that I’d want people to read. (Not that I expect anyone to actually read this, eh…) Could write about what I’m doing and how I’m poking and prodding at this site maybe? Or maybe something related to LDAP, or setting up OpenSMTPD and Dovecot, or maybe bind, or even Kerberos… All of them could be useful for future reference for myself in either case I guess.
diff --git a/src/templates/entry.html b/src/templates/entry.html
new file mode 100644
index 0000000..1988537
--- /dev/null
+++ b/src/templates/entry.html
@@ -0,0 +1,37 @@
+{% extends 'layout.html' %}
+
+{% block head %}
+ <link href="/~kyrias/isso.css" rel="stylesheet">
+{% endblock head %}
+
+{% block content %}
+ <article itemscope itemtype="http://schema.org/Article"
+ class="entry" id="entry:{{ entry.id }}">
+
+ <h2 itemprop="name" class="title">{{ entry.title }}</h2>
+
+ <div class="info">
+ Published on
+ <time itemprop="datePublished" datetime="{{ entry.date.strftime('%Y-%m-%d') }}">
+ {{ entry.date.strftime('%Y-%m-%d') }}
+ </time>
+
+ <span itemprop="author" itemscope itemtype="http://schema.org/Person">
+ {% if entry.author_link %}
+ by <a itemprop="name" rel="author" href="{{ entry.author_link }}">{{ entry.author }}</a>
+ {% else %}
+ by {{ entry.author }}
+ {% endif %}
+ </span>
+ </div>
+
+ {{ entry.body }}
+ </article>
+
+ <script data-isso="https://theos.kyriasis.com/isso/"
+ data-isso-css="false"
+ data-isso-vote="true"
+ src="https://theos.kyriasis.com/isso/js/embed.min.js"></script>
+ <section id="isso-thread" class="botborder"></section>
+
+{% endblock content %}
diff --git a/src/templates/journal.html b/src/templates/journal.html
index 9f301b1..a4bef7f 100644
--- a/src/templates/journal.html
+++ b/src/templates/journal.html
@@ -20,6 +20,7 @@
by {{ entry.author }}
{% endif %}
</span>
+ | <a href="/~kyrias/{{ entry.page }}#isso-thread">comments</a>
</div>
{{ entry.body }}
diff --git a/src/templates/layout.html b/src/templates/layout.html
index c91aa94..3c9db2f 100644
--- a/src/templates/layout.html
+++ b/src/templates/layout.html
@@ -3,11 +3,13 @@
<head>
<meta charset="UTF-8">
<title>{{ title }}</title>
- <link href="style.css" rel="stylesheet">
+ <link href="/~kyrias/style.css" rel="stylesheet">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="author" content="Johannes Löthberg">
<link rel="me" href="https://theos.kyriasis.com/~kyrias/about.html"
title="Johannes Löthberg <johannes@kyriasis.com>">
+
+{% block head %}{% endblock %}
</head>
<body itemscope itemtype="http://schema.org/WebPage">
<header>
@@ -34,7 +36,7 @@
</div>
</div>
<a id="emblem" href="http://www.catb.org/hacker-emblem/">
- <img src="resources/glider.png" alt="hacker emblem" />
+ <img src="/~kyrias/resources/glider.png" alt="hacker emblem" />
</a>
</footer>
</body>
diff --git a/src/templates/nav.html b/src/templates/nav.html
index e40b4ed..fddd9bc 100644
--- a/src/templates/nav.html
+++ b/src/templates/nav.html
@@ -1,7 +1,7 @@
<nav>
<ul>
- <li><a href="index.html">~kyrias/</a></li>
- <li><a href="journal.html">journal/</a></li>
- <li><a href="about.html">about/</a></li>
+ <li><a href="/~kyrias/index.html">~kyrias/</a></li>
+ <li><a href="/~kyrias/journal.html">journal/</a></li>
+ <li><a href="/~kyrias/about.html">about/</a></li>
</ul>
</nav>