From 78124a42ac5dff3001d03cd7a72435e912deba19 Mon Sep 17 00:00:00 2001 From: andis Date: Wed, 17 Jun 2020 08:50:59 +0000 Subject: [PATCH] First Templates added --- fet2020/templates/home.html | 100 +++++++++++++++++++++++++++++ fet2020/templates/layout.html | 38 +++++++++++ fet2020/templates/posts/index.html | 16 +++++ fet2020/templates/posts/show.html | 44 +++++++++++++ 4 files changed, 198 insertions(+) create mode 100644 fet2020/templates/home.html create mode 100644 fet2020/templates/layout.html create mode 100644 fet2020/templates/posts/index.html create mode 100644 fet2020/templates/posts/show.html diff --git a/fet2020/templates/home.html b/fet2020/templates/home.html new file mode 100644 index 00000000..eb2baee7 --- /dev/null +++ b/fet2020/templates/home.html @@ -0,0 +1,100 @@ +{% extends 'layout.html' %} +{% load post_helpers %} +{% load static %} +{% block content %} + + +
+ + + + +
+ +
+
+ {{ tags_list|tags_to_url }} +
+ + +
+
+ {% for post in posts %} + {% include 'posts/_posts_hero.html' %} + {% endfor %} +
+
+
+ + + 16 + Apr + + Title + +
+
+
+ + +
+ + + +{% endblock %} \ No newline at end of file diff --git a/fet2020/templates/layout.html b/fet2020/templates/layout.html new file mode 100644 index 00000000..b8065ddc --- /dev/null +++ b/fet2020/templates/layout.html @@ -0,0 +1,38 @@ + +{% load static %} + + + + + + + FET DjangoLayout + + {% csrf_token %} + {% block header %} + {% endblock %} + + + + + + +{% block content %} +{% endblock %} + + + + diff --git a/fet2020/templates/posts/index.html b/fet2020/templates/posts/index.html new file mode 100644 index 00000000..dc4d12fe --- /dev/null +++ b/fet2020/templates/posts/index.html @@ -0,0 +1,16 @@ +{% extends 'layout.html' %} +{% load post_helpers %} + +{% block content %} +
+
+
+ {% for post in posts %} + {% include 'posts/_posts_hero.html' %} + {% endfor %} + + +
+
+
+{% endblock %} \ No newline at end of file diff --git a/fet2020/templates/posts/show.html b/fet2020/templates/posts/show.html new file mode 100644 index 00000000..e0cc5c0e --- /dev/null +++ b/fet2020/templates/posts/show.html @@ -0,0 +1,44 @@ + +{% extends "layout.html" %} +{% load post_helpers %} + +{% block content %} + +
+
+
+ +
+

{{post.title | tags_to_url }}

+
+
+ {{post.subtitle | tags_to_url }} + + +
+ 3 Comments +
+
+
+
+
+

{{post.title | tags_to_url }}


+ Nächster Artikel +{{post.event_start}} +{{post.event_end}} +{{post.subtitle | tags_to_url }} +
+{{post.body | safe}} +
+tags:{{ post.get_tags }} + +
+ +{{related_posts}} +
+{% endblock %} \ No newline at end of file