From f5c0702d6cff33c01564fa6c3d6a1c3a516fd307 Mon Sep 17 00:00:00 2001 From: minoplhy Date: Tue, 18 Apr 2023 23:18:44 +0700 Subject: [PATCH] crappy-reverie : fix hide the post issue --- README.md | 5 +++-- _config.yml | 15 ++++++++++++--- _pages/archive.md | 2 +- ...rted.md => getting-started_hidden_true.md} | 0 _pages/{search.md => search_hidden_true.md} | 0 _posts/2021-06-07-Crappy-blog-again.markdown | 2 +- .../2021-12-25-Moved-from-cloudflare.markdown | 2 +- .../2022-03-30-Back-to-Self-Hosting.markdown | 2 +- _posts/2022-09-19-v4-crappy.markdown | 2 +- ...3-04-16-big-migration-2023_hidden_true.md} | 2 +- assets/images/deepfried-cropped.png | Bin 66320 -> 69088 bytes index.html | 2 -- search.json | 2 ++ 13 files changed, 23 insertions(+), 13 deletions(-) rename _pages/{getting-started.md => getting-started_hidden_true.md} (100%) rename _pages/{search.md => search_hidden_true.md} (100%) rename _posts/{2023-04-16-big-migration-2023.md => 2023-04-16-big-migration-2023_hidden_true.md} (90%) diff --git a/README.md b/README.md index a7b4f48..5b1896a 100644 --- a/README.md +++ b/README.md @@ -13,14 +13,15 @@ Reverie-Crappy is a fork of [amitmerchant1990/reverie](https://github.com/amitmerchant1990/reverie) with some adjustment. The following has been add/edited from the original : - - Dark Theme toggle (don't respect browser preferance) with DarkReader. + - Dark Theme toggle (don't respect browser preferences) with DarkReader. - Remove . when post author doesn't present. - change file strcture. - - Post 'visiblity' when not set to public, will not be listed on site. It still appear on sitemap though. + - ~~Post 'visiblity' when not set to public, will not be listed on site. It still appear on sitemap though.~~ changed to 'hidden: true' for pagination compatiblity. - More expand friendly navbar. - add gitea icon svg. - choice to disable/enable Twitter share on buttom. - choice to enable/disable blog on first page. + - any file contain "hidden_true" will be exclude from sitemap (via _config.yaml) Reverie is a [Jekyll](https://jekyllrb.com/)-powered theme which is simple and opinionated. It's actually a fork of [jekyll-now](https://github.com/barryclark/jekyll-now) with some additional features and personal touches which I've implemented to suit my needs for my blog. diff --git a/_config.yml b/_config.yml index 3b668fd..33694e3 100644 --- a/_config.yml +++ b/_config.yml @@ -58,8 +58,9 @@ enforce_ssl: # then add in the baseurl here, like this: "/repository-name" baseurl: "" +# Enable blog on index page index_blog: true - +# Enable share to twitter button in posts twitter_blog_share: false # @@ -95,11 +96,19 @@ plugins: include: ['_pages'] paginate: 3 -paginate_path: /page:num/ +paginate_path: /blog/page_:num + +# Sitemap configuration +defaults: + - + scope: + path: "**/*hidden_true*" + values: + sitemap: false header_pages: - _pages/projects.md - - _pages/search.md + - _pages/search_hidden_true.md - _pages/archive.md - _pages/about.md diff --git a/_pages/archive.md b/_pages/archive.md index 388a14e..f3ecd2e 100644 --- a/_pages/archive.md +++ b/_pages/archive.md @@ -10,7 +10,7 @@ title: Archive