From dcf8e30c74b57f18f60b6592700ea8fe3b18d339 Mon Sep 17 00:00:00 2001
From: uvok cheetah
Date: Thu, 23 May 2019 20:23:19 +0200
Subject: Prepare pagination
and handle diplaying all posts of pagination is disabled.
Todo: Think about navigation links
---
Gemfile | 1 +
_config.yml | 8 ++++++++
_includes/header.html | 33 +++++++++++++++++++++++++++++++++
_layouts/home.html | 38 ++++++++++++++++++++++++++++++++++++++
index.md | 2 ++
5 files changed, 82 insertions(+)
create mode 100644 _includes/header.html
create mode 100644 _layouts/home.html
diff --git a/Gemfile b/Gemfile
index c8e11f0..e5b1290 100644
--- a/Gemfile
+++ b/Gemfile
@@ -13,4 +13,5 @@ gem "minima", "~> 2.0"
group :jekyll_plugins do
gem "jekyll-redirect-from", "~> 0.15.0"
gem "jekyll-feed", "~> 0.6"
+ gem "jekyll-paginate-v2", "~> 2.0"
end
diff --git a/_config.yml b/_config.yml
index dbc43b9..c0f2de8 100644
--- a/_config.yml
+++ b/_config.yml
@@ -20,6 +20,9 @@ timezone: Europe/Berlin
# Build settings
markdown: kramdown
+# avoid deep nesting when using categories
+permalink: /:year/:month/:title.html
+
theme: minima
minima:
@@ -30,3 +33,8 @@ mastodon:
instance: vulpine.club
#show_excerpts: true
+
+pagination:
+ enabled: false
+ per_page: 5
+ title: ":title (Seite :num)"
diff --git a/_includes/header.html b/_includes/header.html
new file mode 100644
index 0000000..dc42cdd
--- /dev/null
+++ b/_includes/header.html
@@ -0,0 +1,33 @@
+
subscribe via RSS
+ {%- endif -%} + +