diff --git a/content/gallery/_index.md b/content/gallery/_index.md new file mode 100644 index 0000000..0f807f4 --- /dev/null +++ b/content/gallery/_index.md @@ -0,0 +1,6 @@ ++++ +paginate_by = 4 +sort_by = "date" +template = "index.html" +title = "Photo gallery" ++++ diff --git a/content/gallery/test-2/2022-07-17-4815.jpg b/content/gallery/test-2/2022-07-17-4815.jpg new file mode 100644 index 0000000..0569a4f Binary files /dev/null and b/content/gallery/test-2/2022-07-17-4815.jpg differ diff --git a/content/gallery/test-2/2022-07-28-4867.jpg b/content/gallery/test-2/2022-07-28-4867.jpg new file mode 100644 index 0000000..3cc2baf Binary files /dev/null and b/content/gallery/test-2/2022-07-28-4867.jpg differ diff --git a/content/gallery/test-2/2022-07-28-4868.jpg b/content/gallery/test-2/2022-07-28-4868.jpg new file mode 100644 index 0000000..988b811 Binary files /dev/null and b/content/gallery/test-2/2022-07-28-4868.jpg differ diff --git a/content/gallery/test-2/22-10-29 16-22-41 5295.jpg b/content/gallery/test-2/22-10-29 16-22-41 5295.jpg new file mode 100644 index 0000000..47d63bc Binary files /dev/null and b/content/gallery/test-2/22-10-29 16-22-41 5295.jpg differ diff --git a/content/gallery/test-2/23-04-25 16-11-02 5888.jpg b/content/gallery/test-2/23-04-25 16-11-02 5888.jpg new file mode 100644 index 0000000..b4a67e6 Binary files /dev/null and b/content/gallery/test-2/23-04-25 16-11-02 5888.jpg differ diff --git a/content/gallery/test-2/23-04-25 18-14-07 5889.jpg b/content/gallery/test-2/23-04-25 18-14-07 5889.jpg new file mode 100644 index 0000000..84f15b0 Binary files /dev/null and b/content/gallery/test-2/23-04-25 18-14-07 5889.jpg differ diff --git a/content/gallery/test-2/23-04-25 18-16-13 5890.jpg b/content/gallery/test-2/23-04-25 18-16-13 5890.jpg new file mode 100644 index 0000000..bcd08c7 Binary files /dev/null and b/content/gallery/test-2/23-04-25 18-16-13 5890.jpg differ diff --git a/content/gallery/test-2/index.md b/content/gallery/test-2/index.md new file mode 100644 index 0000000..beee5bf --- /dev/null +++ b/content/gallery/test-2/index.md @@ -0,0 +1,10 @@ ++++ +title = "Photo gallery Test photos number two" +template = "gallery.html" +date = 2024-06-07 ++++ + +Another few photos for testing my new gallery layout + +{{ gallery() }} + diff --git a/content/gallery/test/22-12-16 14-51-56 5729.jpg b/content/gallery/test/22-12-16 14-51-56 5729.jpg new file mode 100644 index 0000000..cdb9000 Binary files /dev/null and b/content/gallery/test/22-12-16 14-51-56 5729.jpg differ diff --git a/content/gallery/test/23-09-06 07-42-31 6209.jpg b/content/gallery/test/23-09-06 07-42-31 6209.jpg new file mode 100644 index 0000000..a48aab0 Binary files /dev/null and b/content/gallery/test/23-09-06 07-42-31 6209.jpg differ diff --git a/content/gallery/test/IMG_20231001_120627.jpg b/content/gallery/test/IMG_20231001_120627.jpg new file mode 100644 index 0000000..8f9a433 Binary files /dev/null and b/content/gallery/test/IMG_20231001_120627.jpg differ diff --git a/content/gallery/test/IMG_20231031_112952.jpg b/content/gallery/test/IMG_20231031_112952.jpg new file mode 100644 index 0000000..07375ea Binary files /dev/null and b/content/gallery/test/IMG_20231031_112952.jpg differ diff --git a/content/gallery/test/IMG_20240320_153100.jpg b/content/gallery/test/IMG_20240320_153100.jpg new file mode 100644 index 0000000..e3cd026 Binary files /dev/null and b/content/gallery/test/IMG_20240320_153100.jpg differ diff --git a/content/gallery/test/IMG_20240521_154934.jpg b/content/gallery/test/IMG_20240521_154934.jpg new file mode 100644 index 0000000..99d4018 Binary files /dev/null and b/content/gallery/test/IMG_20240521_154934.jpg differ diff --git a/content/gallery/test/IMG_20240602_181327.jpg b/content/gallery/test/IMG_20240602_181327.jpg new file mode 100644 index 0000000..dfe07f9 Binary files /dev/null and b/content/gallery/test/IMG_20240602_181327.jpg differ diff --git a/content/gallery/test/IMG_20240602_181446.jpg b/content/gallery/test/IMG_20240602_181446.jpg new file mode 100644 index 0000000..01ca0e0 Binary files /dev/null and b/content/gallery/test/IMG_20240602_181446.jpg differ diff --git a/content/gallery/test/index.md b/content/gallery/test/index.md new file mode 100644 index 0000000..4f0a217 --- /dev/null +++ b/content/gallery/test/index.md @@ -0,0 +1,10 @@ ++++ +title = "Photo gallery Test photos" +template = "gallery.html" +date = 2024-06-06 ++++ + +All photos shot on a phone camera over the last years. + +{{ gallery() }} + diff --git a/sass/gallery.scss b/sass/gallery.scss new file mode 100644 index 0000000..8114b9e --- /dev/null +++ b/sass/gallery.scss @@ -0,0 +1,14 @@ +@import "variables"; + +.gallery { + display: grid; + grid-auto-flow: row dense; + grid-auto-rows: 1fr; + grid-template-columns: 1fr 1fr 1fr; + grid-template-rows: 1fr 1fr 1fr; + gap: 2em 2em; + grid-template-areas: + ". . ." + ". . ." + ". . ."; +} diff --git a/sass/style.scss b/sass/style.scss index 3a289d7..c8baa7a 100644 --- a/sass/style.scss +++ b/sass/style.scss @@ -4,5 +4,6 @@ @import 'logo'; @import 'main'; @import 'post'; +@import 'gallery'; @import 'pagination'; @import 'footer'; diff --git a/static/processed_images/2022-07-17-4815.4e690c6f5e1eec6e.jpg b/static/processed_images/2022-07-17-4815.4e690c6f5e1eec6e.jpg new file mode 100644 index 0000000..e1a35ba Binary files /dev/null and b/static/processed_images/2022-07-17-4815.4e690c6f5e1eec6e.jpg differ diff --git a/static/processed_images/2022-07-28-4867.8ad890a69bc69907.jpg b/static/processed_images/2022-07-28-4867.8ad890a69bc69907.jpg new file mode 100644 index 0000000..49f21b9 Binary files /dev/null and b/static/processed_images/2022-07-28-4867.8ad890a69bc69907.jpg differ diff --git a/static/processed_images/2022-07-28-4868.3b78fa725881b47e.jpg b/static/processed_images/2022-07-28-4868.3b78fa725881b47e.jpg new file mode 100644 index 0000000..accc8d4 Binary files /dev/null and b/static/processed_images/2022-07-28-4868.3b78fa725881b47e.jpg differ diff --git a/static/processed_images/22-10-29 16-22-41 5295.b0b2d3b868c0d377.jpg b/static/processed_images/22-10-29 16-22-41 5295.b0b2d3b868c0d377.jpg new file mode 100644 index 0000000..01ca57e Binary files /dev/null and b/static/processed_images/22-10-29 16-22-41 5295.b0b2d3b868c0d377.jpg differ diff --git a/static/processed_images/22-12-16 14-51-56 5729.fc391cfc76076603.jpg b/static/processed_images/22-12-16 14-51-56 5729.fc391cfc76076603.jpg new file mode 100644 index 0000000..3191f13 Binary files /dev/null and b/static/processed_images/22-12-16 14-51-56 5729.fc391cfc76076603.jpg differ diff --git a/static/processed_images/23-04-25 16-11-02 5888.f6a7d6bd1c113c3d.jpg b/static/processed_images/23-04-25 16-11-02 5888.f6a7d6bd1c113c3d.jpg new file mode 100644 index 0000000..46b530a Binary files /dev/null and b/static/processed_images/23-04-25 16-11-02 5888.f6a7d6bd1c113c3d.jpg differ diff --git a/static/processed_images/23-04-25 18-14-07 5889.08999c0e3780dc93.jpg b/static/processed_images/23-04-25 18-14-07 5889.08999c0e3780dc93.jpg new file mode 100644 index 0000000..caf4f98 Binary files /dev/null and b/static/processed_images/23-04-25 18-14-07 5889.08999c0e3780dc93.jpg differ diff --git a/static/processed_images/23-04-25 18-16-13 5890.e0ba47a226444b97.jpg b/static/processed_images/23-04-25 18-16-13 5890.e0ba47a226444b97.jpg new file mode 100644 index 0000000..51eca47 Binary files /dev/null and b/static/processed_images/23-04-25 18-16-13 5890.e0ba47a226444b97.jpg differ diff --git a/static/processed_images/23-09-06 07-42-31 6209.c0eef8268f3cd3bd.jpg b/static/processed_images/23-09-06 07-42-31 6209.c0eef8268f3cd3bd.jpg new file mode 100644 index 0000000..1ea9ec7 Binary files /dev/null and b/static/processed_images/23-09-06 07-42-31 6209.c0eef8268f3cd3bd.jpg differ diff --git a/static/processed_images/IMG_20231001_120627.fa88c9a63ec203b3.jpg b/static/processed_images/IMG_20231001_120627.fa88c9a63ec203b3.jpg new file mode 100644 index 0000000..38f9e22 Binary files /dev/null and b/static/processed_images/IMG_20231001_120627.fa88c9a63ec203b3.jpg differ diff --git a/static/processed_images/IMG_20231031_112952.8c576a92bcdd8f7e.jpg b/static/processed_images/IMG_20231031_112952.8c576a92bcdd8f7e.jpg new file mode 100644 index 0000000..187787c Binary files /dev/null and b/static/processed_images/IMG_20231031_112952.8c576a92bcdd8f7e.jpg differ diff --git a/static/processed_images/IMG_20240320_153100.af1d98f752e29648.jpg b/static/processed_images/IMG_20240320_153100.af1d98f752e29648.jpg new file mode 100644 index 0000000..241c954 Binary files /dev/null and b/static/processed_images/IMG_20240320_153100.af1d98f752e29648.jpg differ diff --git a/static/processed_images/IMG_20240521_154934.e784a18572e1050e.jpg b/static/processed_images/IMG_20240521_154934.e784a18572e1050e.jpg new file mode 100644 index 0000000..b81916e Binary files /dev/null and b/static/processed_images/IMG_20240521_154934.e784a18572e1050e.jpg differ diff --git a/static/processed_images/IMG_20240602_181327.53ce4a138aec6622.jpg b/static/processed_images/IMG_20240602_181327.53ce4a138aec6622.jpg new file mode 100644 index 0000000..3e87101 Binary files /dev/null and b/static/processed_images/IMG_20240602_181327.53ce4a138aec6622.jpg differ diff --git a/static/processed_images/IMG_20240602_181446.58fcfef84d45c6a1.jpg b/static/processed_images/IMG_20240602_181446.58fcfef84d45c6a1.jpg new file mode 100644 index 0000000..4338882 Binary files /dev/null and b/static/processed_images/IMG_20240602_181446.58fcfef84d45c6a1.jpg differ diff --git a/templates/gallery.html b/templates/gallery.html new file mode 100644 index 0000000..f59d965 --- /dev/null +++ b/templates/gallery.html @@ -0,0 +1,13 @@ +{% extends "index.html" %} + +{%- block title -%} +{{ title_macros::title(page_title=page.title, main_title=config.title) }} +{%- endblock -%} + +{% block content %} +
+ {{ post_macros::header(page=page) }} + {{ post_macros::content(page=page, summary=false) }} + {{ post_macros::earlier_later(page=page) }} +
+{% endblock content %} diff --git a/templates/shortcodes/gallery.html b/templates/shortcodes/gallery.html new file mode 100644 index 0000000..7774773 --- /dev/null +++ b/templates/shortcodes/gallery.html @@ -0,0 +1,10 @@ +