summaryrefslogtreecommitdiffstats
path: root/_layouts
diff options
context:
space:
mode:
Diffstat (limited to '_layouts')
-rw-r--r--_layouts/author.html28
-rw-r--r--_layouts/default.html21
-rw-r--r--_layouts/post.html23
3 files changed, 72 insertions, 0 deletions
diff --git a/_layouts/author.html b/_layouts/author.html
new file mode 100644
index 0000000..7c5cddc
--- /dev/null
+++ b/_layouts/author.html
@@ -0,0 +1,28 @@
+---
+layout: default
+---
+<h1>
+ {{ page.name }}
+</h1>
+<h2>
+ {{ page.position }}
+</h2>
+{{ content }}
+
+<h2>objave:</h2>
+<ul>
+ {% assign filtered_posts = site.posts | where: "author", page.short_name %}
+ {% assign author_not_specified = site.posts | where: 'author', nil %}
+ {% if page.short_name == "anonymous" %}
+ {% assign filtered_posts =
+ author_not_specified | concat: filtered_posts %}
+ {% endif %}
+ {% assign filtered_posts = filtered_posts | sort: "date" | reverse %}
+ {% for post in filtered_posts %}
+ <li>
+ <a href="{{ post.url | remove: ".html" }}">
+ {{ post.title }} @ {{ post.date | date: site.short_date_format }}
+ </a>
+ </li>
+ {% endfor %}
+</ul>
diff --git a/_layouts/default.html b/_layouts/default.html
new file mode 100644
index 0000000..1f3aee4
--- /dev/null
+++ b/_layouts/default.html
@@ -0,0 +1,21 @@
+<!DOCTYPE html>
+<html lang=sl>
+ <head>
+ <meta charset=UTF-8 />
+ <title>
+ {{ page.title }}
+ </title>
+ <link rel=stylesheet href=/assets/css/styles.css />
+ <meta name=viewport content=width=device-width,initial-scale=1.0 />
+ {% feed_meta %}
+ {% seo %}
+ {% if jekyll.environment == "production" %}
+ <!-- this comment generates if JEKYLL_ENV=production -->
+ {% endif %}
+ </head>
+ <body>
+ {% include navigation.html %}
+ {{ content }}
+ {% include footer.html %}
+ </body>
+</html>
diff --git a/_layouts/post.html b/_layouts/post.html
new file mode 100644
index 0000000..4e63808
--- /dev/null
+++ b/_layouts/post.html
@@ -0,0 +1,23 @@
+---
+layout: default
+---
+<h1>
+ {{ page.title }}
+</h1>
+<p>
+ {{ page.date | date: site.short_date_format }}
+ {% assign author = site.authors | where: 'short_name', page.author | first %}
+ {% assign anon = site.authors | where: 'short_name', "anonymous" | first %}
+ -
+ {% if author %}
+ <a href="{{ author.url | remove: ".html" }}">
+ {{ author.name }}
+ </a>
+ {% else %}
+ <a href="{{ anon.url | remove: ".html" }}">
+ {{ anon.name }}
+ </a>
+ {% endif %}
+</p>
+
+{{ content }}