From c3e34ca596f0032e707d8563c33bbd7f736ed7ca Mon Sep 17 00:00:00 2001 From: uvok cheetah Date: Sun, 22 Jun 2025 14:28:33 +0200 Subject: Prepare Gemini postings --- _layouts.gemini/default.html | 1 + _layouts.gemini/home.html | 16 +++++++++++++++ _layouts.gemini/page.html | 9 +++++++++ _layouts.gemini/post.html | 23 ++++++++++++++++++++++ _layouts.gemini/postlist.html | 45 +++++++++++++++++++++++++++++++++++++++++++ 5 files changed, 94 insertions(+) create mode 100644 _layouts.gemini/default.html create mode 100644 _layouts.gemini/home.html create mode 100644 _layouts.gemini/page.html create mode 100644 _layouts.gemini/post.html create mode 100644 _layouts.gemini/postlist.html (limited to '_layouts.gemini') diff --git a/_layouts.gemini/default.html b/_layouts.gemini/default.html new file mode 100644 index 0000000..cddd070 --- /dev/null +++ b/_layouts.gemini/default.html @@ -0,0 +1 @@ +{{ content }} diff --git a/_layouts.gemini/home.html b/_layouts.gemini/home.html new file mode 100644 index 0000000..4e877fb --- /dev/null +++ b/_layouts.gemini/home.html @@ -0,0 +1,16 @@ +--- +layout: default +--- + +{{ content }} + + {%- if site.posts.size > 0 -%} + {%- for post in site.posts -%} + {%- assign date_format = site.minima.date_format | default: "%b %-d, %Y" -%} + {{ post.date | date: date_format }} + {%- if post.lang == 'de' %} (DE){%- endif -%} + + {{ post.title | escape }} + + {%- endfor -%} + {%- endif -%} diff --git a/_layouts.gemini/page.html b/_layouts.gemini/page.html new file mode 100644 index 0000000..dda953c --- /dev/null +++ b/_layouts.gemini/page.html @@ -0,0 +1,9 @@ +--- +layout: default +--- +

{{ page.title | escape }}

+ +
+ {{ content }} +
+ diff --git a/_layouts.gemini/post.html b/_layouts.gemini/post.html new file mode 100644 index 0000000..9ce3141 --- /dev/null +++ b/_layouts.gemini/post.html @@ -0,0 +1,23 @@ +--- +layout: default +--- +

{{ page.title | escape }}

+

+

+ {%- assign date_format = site.minima.date_format | default: "%b %-d, %Y" -%} + {%- assign date_format = "%A, %e. %B %Y, %k:%M" -%} + Published: {{ page.date | date: date_format }} + + {%- if page.last_modified_at -%} + - + Updated: {{ page.last_modified_at | date: date_format }} + {%- endif -%} +

+ + {%- if page.author -%} + - + {%- endif -%} +

+
+ {{ content }} +
diff --git a/_layouts.gemini/postlist.html b/_layouts.gemini/postlist.html new file mode 100644 index 0000000..2d8368b --- /dev/null +++ b/_layouts.gemini/postlist.html @@ -0,0 +1,45 @@ +--- +layout: default +--- + + {%- if page.title -%} +

{{ page.title }}

+ {%- endif -%} + + {{ content }} + + {%- if site.posts.size > 0 -%} + + {% assign paginator = site %} + + {%- for post in paginator.posts -%} + {%- assign showsep = false -%} + {%- assign date_format = site.minima.date_format | default: "%b %-d, %Y" -%} + {%- if post.lang == 'de' %} (DE) {%- endif -%} +
+

+ {{ post.title | escape }} +

+ + + {%- if forloop.first and paginator.page == 1 or paginator == site -%} + {{ post.content }} + {%- assign showsep = true -%} + {%- elsif site.show_excerpts -%} + {{ post.excerpt }} + {%- assign showsep = true -%} + {%- elsif post.description -%} + {{ post.description }} + {%- assign showsep = true -%} + {%- endif -%} + Link to full post + +
+ {%- if showsep -%} +
+ {%- endif -%} + {%- endfor -%} + + {%- endif -%} + + -- cgit v1.2.3