From 509a656b6fcde12d40aabaffe81dfe64ca9dfbf1 Mon Sep 17 00:00:00 2001 From: fabrixxm Date: Thu, 8 Oct 2020 15:01:09 +0200 Subject: Template per entry, permalink --- templates/web/base.html | 97 +++++++++++++++++++++++++++++++++++++++++++ templates/web/entry.html | 20 +++++++++ templates/web/index.html | 105 ++++++----------------------------------------- 3 files changed, 129 insertions(+), 93 deletions(-) create mode 100644 templates/web/base.html create mode 100644 templates/web/entry.html (limited to 'templates/web') diff --git a/templates/web/base.html b/templates/web/base.html new file mode 100644 index 0000000..bbb6d93 --- /dev/null +++ b/templates/web/base.html @@ -0,0 +1,97 @@ + + + + + + + + + {% block title %}{% endblock %} + + + {% block extrahead %}{% endblock %} + + +
+

Linkopedia

+ i Bookmark del GL-Como +
+ {% block content %}{% endblock %} + + + 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 %} +
+
+

{{ entry.data.title }}

+ +
+

{{ entry.data.description }}

+
+ {{ entry.data.added }} + {{ "- tags: " if entry.data.tags|count > 0 }} + {% for tag in entry.data.tags %} + {{ tag }} + {% endfor %} +
+
+{% endblock %} diff --git a/templates/web/index.html b/templates/web/index.html index 3339479..3301763 100644 --- a/templates/web/index.html +++ b/templates/web/index.html @@ -1,102 +1,24 @@ - - - - - - - - +{% extends "base.html" %} - Linkopedia - - - -
-

Linkopedia

- I Bookmark del GL-Como -
+{% block content %}
{% if q %}

Cerca: '{{ q }}'

{% endif %} @@ -110,8 +32,5 @@
nessun risultato
{% endif %}
- - - +{% endblock %} + -- cgit v1.2.3