aboutsummaryrefslogtreecommitdiff
path: root/templates/web/entry.html
diff options
context:
space:
mode:
authorfabrixxm <fabrix.xm@gmail.com>2020-10-08 15:01:09 +0200
committerfabrixxm <fabrix.xm@gmail.com>2020-10-08 15:01:09 +0200
commit509a656b6fcde12d40aabaffe81dfe64ca9dfbf1 (patch)
treeb993b274e056b309894977b74642be52e3a7602d /templates/web/entry.html
parent4279f1078df48fc17d837947546dc67d32ec3b15 (diff)
Template per entry, permalink
Diffstat (limited to 'templates/web/entry.html')
-rw-r--r--templates/web/entry.html20
1 files changed, 20 insertions, 0 deletions
diff --git a/templates/web/entry.html b/templates/web/entry.html
new file mode 100644
index 0000000..9fea0af
--- /dev/null
+++ b/templates/web/entry.html
@@ -0,0 +1,20 @@
+{% extends "base.html" %}
+
+{% block title %}Linkopedia{% endblock %}
+
+{% block content %}
+ <article>
+ <header>
+ <h1><a href="{{ entry.data.url }}">{{ entry.data.title }}</a></h1>
+ <aside>{{ entry.data.url }}</aside>
+ </header>
+ <p>{{ entry.data.description }}</p>
+ <footer>
+ {{ entry.data.added }}
+ {{ "- tags: " if entry.data.tags|count > 0 }}
+ {% for tag in entry.data.tags %}
+ <a class="tag" href="{{ url_for('search') }}?q=tag:{{tag|urlencode}}">{{ tag }}</a>
+ {% endfor %}
+ </footer>
+ </article>
+{% endblock %}