summaryrefslogtreecommitdiff
path: root/_layouts.gemini
diff options
context:
space:
mode:
Diffstat (limited to '_layouts.gemini')
-rw-r--r--_layouts.gemini/default.html1
-rw-r--r--_layouts.gemini/home.html16
-rw-r--r--_layouts.gemini/page.html9
-rw-r--r--_layouts.gemini/post.html23
-rw-r--r--_layouts.gemini/postlist.html45
5 files changed, 94 insertions, 0 deletions
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" -%}
+ <span class="post-meta">{{ post.date | date: date_format }}
+ {%- if post.lang == 'de' %} (DE){%- endif -%}
+ <a class="post-link" href="{{ post.url | relative_url }}">
+ {{ post.title | escape }}
+ </a>
+ {%- 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
+---
+ <h1 class="post-title">{{ page.title | escape }}</h1>
+
+ <div class="post-content">
+ {{ content }}
+ </div>
+
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
+---
+ <h1 class="post-title p-name" itemprop="name headline">{{ page.title | escape }}</h1>
+ <p class="post-meta">
+ <p>
+ {%- 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 -%}
+ </p>
+
+ {%- if page.author -%}
+ - <span itemprop="author" itemscope itemtype="http://schema.org/Person"><span class="p-author h-card" itemprop="name">{{ page.author }}</span></span>
+ {%- endif -%}
+ </p>
+ <div class="post-content e-content" itemprop="articleBody">
+ {{ content }}
+ </div>
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 -%}
+ <h1 class="page-heading">{{ page.title }}</h1>
+ {%- 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 -%}
+ <div lang="{{ post.lang | default: site.lang | default: "en" }}">
+ <h2>
+ {{ post.title | escape }}
+ </h2>
+ <span class="post-meta">Published: {{ post.date | date: date_format }}</span>
+
+ {%- 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 -%}
+ <a class="post-link" href="{{ post.url | relative_url }}">Link to full post</a>
+
+ </div>
+ {%- if showsep -%}
+ <hr class="postsep" />
+ {%- endif -%}
+ {%- endfor -%}
+
+ {%- endif -%}
+
+</div>