From d4c91174179e6cbc34024965dc6507d33f6ed862 Mon Sep 17 00:00:00 2001 From: Johann Muszynski Date: Sat, 16 Mar 2019 00:06:01 +0200 Subject: [PATCH 1/2] Add ability to hide posts from blog post list --- layouts/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layouts/index.html b/layouts/index.html index 8e550f2..e1b4e99 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -3,7 +3,7 @@
{{ partial "header.html" . }}
- {{ range .Paginator.Pages }} + {{ range where .Paginator.Pages "Params.hide" "ne" "true" }}
From a16f81717b21388c526f5600c54e856476b40b62 Mon Sep 17 00:00:00 2001 From: Johann Muszynski Date: Sat, 16 Mar 2019 10:34:28 +0200 Subject: [PATCH 2/2] Update README.md --- README.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/README.md b/README.md index 513804e..127f710 100644 --- a/README.md +++ b/README.md @@ -80,6 +80,14 @@ featuredImage = "img/foobar.jpg" +++ ``` +### Hide the post from index.html +This can be used when creating an "About me"-page. +``` ++++ +hide = true ++++ +``` + ## Contributing 1. Fork it!