summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJohannes Löthberg <johannes@kyriasis.com>2016-08-07 20:51:22 +0200
committerJohannes Löthberg <johannes@kyriasis.com>2016-08-07 20:51:22 +0200
commit08abcf7543844ae3480d22bf89daf7034b271fbb (patch)
tree7776b883eedba4dad75f0e0df80cd01bdfe35390 /src
parent950273e92cbd95e9abbc09d56a65134948829d93 (diff)
downloadwebsite-08abcf7543844ae3480d22bf89daf7034b271fbb.tar.xz
Redo permalink again
Signed-off-by: Johannes Löthberg <johannes@kyriasis.com>
Diffstat (limited to 'src')
-rw-r--r--src/style.css9
-rw-r--r--src/templates/journal.html6
2 files changed, 13 insertions, 2 deletions
diff --git a/src/style.css b/src/style.css
index aac5d1c..f853a73 100644
--- a/src/style.css
+++ b/src/style.css
@@ -78,6 +78,15 @@ header h1 {
color: #333;
}
+.entry .permalink a,
+.entry .permalink a:visited {
+ color: #eeeeee;
+}
+
+.entry .permalink a:hover {
+ color: #738181;
+}
+
.entry .info {
font-size: 0.9rem;
color: #505050;
diff --git a/src/templates/journal.html b/src/templates/journal.html
index 33856c1..4c1b47f 100644
--- a/src/templates/journal.html
+++ b/src/templates/journal.html
@@ -9,14 +9,16 @@
<article itemscope itemtype="http://schema.org/Article"
class="entry{% if entry.dropcap %} dropcap{% endif %}" id="entry:{{ entry.id }}">
- <h2 itemprop="name" class="title"><a href="#entry:{{ entry.id }}">{{ entry.title }}</a></h2>
+ <h2 itemprop="name" class="title">
+ <a href="journal/{{ entry.page }}">{{ entry.title }}</a>
+ <a href="#entry:{{ entry.id }}" class="permalink">§</a>
+ </h2>
<div class="info">
Published on
<time itemprop="datePublished" datetime="{{ entry.date.strftime('%Y-%m-%d') }}">
{{ entry.date.strftime('%Y-%m-%d') }}
</time>
- <a href="journal/{{ entry.page }}">[permalink]</a>
</div>
{{ entry.body }}