From 126fa877f904a894e43c423fe19427e9221e36d1 Mon Sep 17 00:00:00 2001 From: Loek Le Blansch Date: Fri, 24 Jan 2025 21:15:21 +0100 Subject: more tweaks --- _config.yml | 4 ++-- _includes/posts.html | 13 +++++++++++++ _layouts/default.html | 24 +++++++++++------------- _plugins/datefmt.rb | 8 ++++++++ _plugins/meta.rb | 31 +++++++++++++++++++++++++++++++ _sass/layout.scss | 1 - _sass/theme.scss | 35 +++++++++++++++++++++++++++++++++++ _scripts/postinfo | 6 +++--- _scripts/repoinfo | 2 +- index.md | 2 +- posts/by-date.md | 12 ++++++++++++ posts/by-title.md | 12 ++++++++++++ 12 files changed, 129 insertions(+), 21 deletions(-) create mode 100644 _includes/posts.html create mode 100644 _plugins/datefmt.rb create mode 100644 _plugins/meta.rb create mode 100644 posts/by-date.md create mode 100644 posts/by-title.md diff --git a/_config.yml b/_config.yml index e805b30..f2546ec 100644 --- a/_config.yml +++ b/_config.yml @@ -1,4 +1,4 @@ -title: "Loek's Blog" +title: blog.pipeframe.xyz domain: blog.pipeframe.xyz exclude: - makefile @@ -16,7 +16,7 @@ defaults: lang: en toc: true output: true - footer: true + post: true markdown: kramdown sass: style: compressed diff --git a/_includes/posts.html b/_includes/posts.html new file mode 100644 index 0000000..692e6ad --- /dev/null +++ b/_includes/posts.html @@ -0,0 +1,13 @@ + + + + + + {% assign posts = site.items | sort: include.sort %} + {% for post in posts %} + + + + + {% endfor %} + diff --git a/_layouts/default.html b/_layouts/default.html index 46cf1e9..efb2c87 100644 --- a/_layouts/default.html +++ b/_layouts/default.html @@ -7,10 +7,10 @@ - {% if page.id == "index" %} - {{ site.title }} - {% else %} + {% if page.post %} {{ page.title }} - {{ site.title }} + {% else %} + {{ site.title }} {% endif %} @@ -25,7 +25,7 @@ posts {% if page.toc %}top{% endif %} - {% if page.footer %}bottom{% endif %} + {% if page.post %}bottom{% endif %} @@ -33,28 +33,26 @@ {% if page.toc %}{% toc %}{% endif %} {{ content }} - {% if page.footer %} - {% assign post_meta = site.data.post[page.slug] %} - {% assign site_meta = site.data.meta %} + {% if page.post %}