From fd77cf10209b56cba96a75e09b3172b83fb50244 Mon Sep 17 00:00:00 2001 From: Robert Kaussow Date: Mon, 13 Jul 2020 09:00:19 +0200 Subject: [PATCH] add simple stickey posts --- exampleSite/content/posts/sticky.md | 12 ++++++++++++ layouts/_default/list.html | 17 ++++++++++++----- layouts/partials/svg-icon-symbols.html | 2 +- src/iconfont/{email.svg => uEA15-email.svg} | 0 src/icons/pin.svg | 5 +++++ 5 files changed, 30 insertions(+), 6 deletions(-) create mode 100644 exampleSite/content/posts/sticky.md rename src/iconfont/{email.svg => uEA15-email.svg} (100%) create mode 100644 src/icons/pin.svg diff --git a/exampleSite/content/posts/sticky.md b/exampleSite/content/posts/sticky.md new file mode 100644 index 0000000..7d02912 --- /dev/null +++ b/exampleSite/content/posts/sticky.md @@ -0,0 +1,12 @@ +--- +title: "Simple sticky posts" +weight: 1 +date: 2020-07-13T00:06:00+02:00 +authors: + - john-doe +tags: + - Open Source + - DevOps +--- + +Stickey (or pinned) posts implementation is currently really simple and handled by `weight: 1` in a post front matter. diff --git a/layouts/_default/list.html b/layouts/_default/list.html index 56f8205..7156efb 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -22,13 +22,20 @@