diff --git a/content/katedra/galerie/_index.md b/content/katedra/galerie/_index.md index b7db26f..2b73840 100644 --- a/content/katedra/galerie/_index.md +++ b/content/katedra/galerie/_index.md @@ -2,7 +2,8 @@ title = "Galerie" weight = 4 +page_template = "gallery.html" + [extra] icon = "ri-gallery-fill" +++ - diff --git a/sass/main.scss b/sass/main.scss index 763765a..f23f248 100644 --- a/sass/main.scss +++ b/sass/main.scss @@ -366,6 +366,15 @@ main { } } + .gallery { + display: grid; + grid-template-columns: repeat(4, 1fr); + column-gap: 1em; + row-gap: 1em; + + img:hover { box-shadow: 0px 1px 9px #00000088 } + } + .button { border: 0; @include top-border($light-blue); diff --git a/templates/gallery.html b/templates/gallery.html new file mode 100644 index 0000000..627e0d6 --- /dev/null +++ b/templates/gallery.html @@ -0,0 +1,19 @@ +{% extends "base.html" %} + +{% block extra %} + {{ macro::breadcrumbs(page=page) }} +{% endblock %} + +{% block content %} +
+
+

{% if page.extra.heading %} + {{ page.extra.heading }} + {% else %} + {{ page.title }} + {% endif %}

+ {{ page.content | safe }} + {{ macro::gallery(page=page) }} +
+
+{% endblock content %} diff --git a/templates/macros.html b/templates/macros.html index 6e76c50..7db944b 100644 --- a/templates/macros.html +++ b/templates/macros.html @@ -206,3 +206,13 @@ {% endif %} {% endmacro %} + +{% macro gallery(page) %} + +{% endmacro %}