From 628ebe9567fbe325edf4a52dbc26e313d02da140 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jmeno=20P=C5=99=C3=ADjmen=C3=AD?= Date: Thu, 21 Oct 2021 11:32:38 +0200 Subject: [PATCH] css + template filtry --- novinky/static/novinky/css/novinky.css | 3 +++ novinky/templates/novinky/base.html | 2 ++ novinky/templates/novinky/index.html | 4 ++-- 3 files changed, 7 insertions(+), 2 deletions(-) create mode 100644 novinky/static/novinky/css/novinky.css diff --git a/novinky/static/novinky/css/novinky.css b/novinky/static/novinky/css/novinky.css new file mode 100644 index 0000000..7f8a925 --- /dev/null +++ b/novinky/static/novinky/css/novinky.css @@ -0,0 +1,3 @@ +body { + +} \ No newline at end of file diff --git a/novinky/templates/novinky/base.html b/novinky/templates/novinky/base.html index d6c7cc0..067c27a 100644 --- a/novinky/templates/novinky/base.html +++ b/novinky/templates/novinky/base.html @@ -1,3 +1,4 @@ +{% load static %} @@ -5,6 +6,7 @@ Novinky + {% block content %} diff --git a/novinky/templates/novinky/index.html b/novinky/templates/novinky/index.html index 8fbc324..a2e8e9c 100644 --- a/novinky/templates/novinky/index.html +++ b/novinky/templates/novinky/index.html @@ -4,11 +4,11 @@

Novinky

{% for novinka in novinky %} - {{ novinka.datum }}
+ {{ novinka.datum|date:"j. E Y G:i" }}
{{ novinka.autor }}

{{ novinka.titulek }}

- {{ novinka.zprava }} + {{ novinka.zprava|truncatewords:10 }}

{% endfor %}