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 %}