From 9d114262053fe91bca8077773ed5908e1d9e8696 Mon Sep 17 00:00:00 2001 From: Nikolas Date: Mon, 28 Oct 2024 18:16:08 +0200 Subject: index: add photos section --- content/photos/_index.md | 9 +++++++++ templates/index.html | 9 ++++++++- templates/photos-page.html | 4 ++++ templates/photos.html | 19 +++++++++++++++++++ 4 files changed, 40 insertions(+), 1 deletion(-) create mode 100644 content/photos/_index.md create mode 100644 templates/photos-page.html create mode 100644 templates/photos.html diff --git a/content/photos/_index.md b/content/photos/_index.md new file mode 100644 index 0000000..6e5f617 --- /dev/null +++ b/content/photos/_index.md @@ -0,0 +1,9 @@ ++++ +title="Photos" +sort_by = "date" +template = "photos.html" +page_template = "photos-page.html" +paginate_by = 2 ++++ + +I recently decided to dive into the exciting world of photography and picked up a used camera. If I like any of the photos I take, I will consider uploading them here. diff --git a/templates/index.html b/templates/index.html index 8540d29..b6d794c 100644 --- a/templates/index.html +++ b/templates/index.html @@ -1,10 +1,17 @@ {% extends "base.html" %} {% block body %}

Archive

Opinions are (hopefully) my own.

+ {% set notes_section = get_section(path="notes/_index.md") %}

{{notes_section.title}}

{{ notes_section.content | safe}} -Read More +Read more + +{% set photos_section = get_section(path="photos/_index.md") %} +

{{photos_section.title}}

+{{ photos_section.content | safe}} +Check them out +

Links