From 29eec9ce3d71b9dd3a515104e13395f7424211a9 Mon Sep 17 00:00:00 2001 From: dan Date: Sat, 12 Aug 2023 04:55:01 +0200 Subject: [PATCH] (Grav GitSync) Automatic Commit from dan --- .../item.en.md | 33 +++++++++++++++++++ plugins/relatedpages/CHANGELOG.md | 8 +++++ plugins/relatedpages/blueprints.yaml | 2 +- plugins/relatedpages/relatedpages.php | 6 ++-- 4 files changed, 45 insertions(+), 4 deletions(-) create mode 100644 pages/01.blog/wireguard-joins-our-wiki-and-makes-the-wiki-fully-functional-now/item.en.md diff --git a/pages/01.blog/wireguard-joins-our-wiki-and-makes-the-wiki-fully-functional-now/item.en.md b/pages/01.blog/wireguard-joins-our-wiki-and-makes-the-wiki-fully-functional-now/item.en.md new file mode 100644 index 0000000..21f8ba1 --- /dev/null +++ b/pages/01.blog/wireguard-joins-our-wiki-and-makes-the-wiki-fully-functional-now/item.en.md @@ -0,0 +1,33 @@ +--- +title: 'WireGuard joins our wiki and makes the wiki fully functional now!' +author: Dan +published: true +date: '12-08-2023 02:54' +taxonomy: + category: + - news + tag: + - wireguard + - wiki + - tutorials +aura: + author: dan +--- + +# WireGuard tutorial and our wiki + +Two days ago I added a [WireGuard tutorial](https://wiki.techsaviours.org/en/server/services/wireguard) to [our wiki]((https://wiki.techsaviours.org/). This finally gives you access to your services from anywhere. +It also means that the wiki or your digital privacy have a good base to start with. There will always be something, more or maybe even less for you. Other operating systems or just other services/apps that others or you prefer instead. And that's fine, we all even have options to choose from and don't have to rely only on Microsoft & Co. + +Regardless of which tutorial(s) you prefer, here is yet another tutorial of WireGuard and a quick overview of how to import your [Phone](https://wiki.techsaviours.org/en/phone/apps/wireguard) and [Desktop](https://wiki.techsaviours.org/en/desktop/services/wireguard) devices. + +The next tutorial will be KeePassXC for desktop and a bunch of Linux Mobile tutorials. + + +# Extras + +Tomorrow or so another "Extras" will also be published. This will make the wiki even more complete ;) + + +Have a good weekend! +Dan \ No newline at end of file diff --git a/plugins/relatedpages/CHANGELOG.md b/plugins/relatedpages/CHANGELOG.md index f2c4379..d72c3d2 100644 --- a/plugins/relatedpages/CHANGELOG.md +++ b/plugins/relatedpages/CHANGELOG.md @@ -1,3 +1,11 @@ +# v1.2.5 +## 08/11/2023 + +1. [](#improved) + * Use pages cache ID for more reliable caching +1. [](#bugfix) + * Fixed a bug when taxonomy matches > scores provided + # v1.2.4 ## 12/06/2022 diff --git a/plugins/relatedpages/blueprints.yaml b/plugins/relatedpages/blueprints.yaml index 85efb51..8daae2f 100644 --- a/plugins/relatedpages/blueprints.yaml +++ b/plugins/relatedpages/blueprints.yaml @@ -1,7 +1,7 @@ name: Related Pages slug: relatedpages type: plugin -version: 1.2.4 +version: 1.2.5 description: "A highly sophisticated and configurable plugin that calculates related pages in relation to the current page." icon: newspaper-o author: diff --git a/plugins/relatedpages/relatedpages.php b/plugins/relatedpages/relatedpages.php index c0b2e88..b93061d 100644 --- a/plugins/relatedpages/relatedpages.php +++ b/plugins/relatedpages/relatedpages.php @@ -74,7 +74,7 @@ class RelatedPagesPlugin extends Plugin 'onTwigSiteVariables' => ['onTwigSiteVariables', 0] ]); - $cache_id = md5('relatedpages' . $page->path() . $cache->getKey()); + $cache_id = md5('relatedpages' . $page->path() . $pages->getPagesCacheId()); $this->related_pages = $cache->fetch($cache_id); if ($this->related_pages === false) { @@ -163,7 +163,7 @@ class RelatedPagesPlugin extends Plugin if (array_key_exists($count, $score_scale)) { $score += $score_scale[$count]; } else { - $score += max(array_keys($score_scale)); + $score += $score_scale[max(array_keys($score_scale))]; } $has_matches = true; @@ -199,7 +199,7 @@ class RelatedPagesPlugin extends Plugin if (array_key_exists($count, $score_scale)) { $score += $score_scale[$count]; } else { - $score += max(array_keys($score_scale)); + $score += $score_scale[max(array_keys($score_scale))]; } $has_matches = true;