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 %} + + +
+ +
+{% with post=featured_post %} + +
+
+
+ +
+

{{post.title| safe}}

+

{{post.subtitle | safe}}

+
+ +
+
+
+ {% endwith %} +
+ +
+ +

Neuigkeiten

+
+
+ {% with post=featured_post %} + + +
+ +
+

{{post.title}}

+ +

{{post.subtitle}}

+ + + +
+
+ +
+ {% endwith %} + + +
+ +
+

Nächste Fachschaftssitzung

+ +

Lorem ipsum dolor sit amet, consectetur adipisicing elit. Labore accusamus sint quas, odit, enim architecto officiis culpa!

+ + + +
+
+
+
+ +
+
+ +
+
+ {{ 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