diff --git a/sass/main.scss b/sass/main.scss index 8460862..396e451 100644 --- a/sass/main.scss +++ b/sass/main.scss @@ -158,6 +158,9 @@ main { border-top: 5px solid #5E81AC; font-size: .85em; + a { font-weight: bold } + a:hover { text-decoration: underline } + &:hover { box-shadow: 0px 1px 9px #00000033; } diff --git a/templates/index.html b/templates/index.html index 8cafcb3..d9627cc 100644 --- a/templates/index.html +++ b/templates/index.html @@ -22,7 +22,7 @@
{% set section = get_section(path="spratelene-weby/_index.md") %} - {{ macro::list_posts(section=section) }} + {{ macro::list_external_links(section=section) }}
diff --git a/templates/macros.html b/templates/macros.html index 4c1b1c3..ecc1bc2 100644 --- a/templates/macros.html +++ b/templates/macros.html @@ -63,6 +63,24 @@ {% endmacro %} {% macro list_posts(section) %} + {% for post in section.pages %} +
+
+ {{ post.title }} +
+ {% if post.summary %} + {{ post.summary | safe }} + {% else %} + {{ post.content | safe }} + {% endif %} + {% if post.date %} +
{{ post.date | date(format="%d.%m.%Y")}}
+ {% endif %} +
+ {% endfor %} +{% endmacro %} + +{% macro list_external_links(section) %} {% for post in section.pages %} {{ post.date | date(format="%d.%m.%Y")}} - {% endif %} + {{ post.content | safe }} {% endfor %}