From e1dfdfdf9700b7d7ca404d2ffc0399e7db4b51a8 Mon Sep 17 00:00:00 2001 From: dan Date: Fri, 21 Jun 2024 10:22:28 +0200 Subject: [PATCH] (Grav GitSync) Automatic Commit from dan --- .../item.en.md | 28 +++++++++++++++++++ plugins/sitemap/CHANGELOG.md | 8 ++++++ plugins/sitemap/README.md | 12 ++++++++ plugins/sitemap/blueprints.yaml | 2 +- plugins/sitemap/blueprints/sitemap.yaml | 5 ++++ plugins/sitemap/languages.yaml | 1 + plugins/sitemap/sitemap.php | 3 +- 7 files changed, 57 insertions(+), 2 deletions(-) create mode 100644 pages/01.blog/dnscrypt-now-available-on-digital-privacy-diy-ipv6/item.en.md diff --git a/pages/01.blog/dnscrypt-now-available-on-digital-privacy-diy-ipv6/item.en.md b/pages/01.blog/dnscrypt-now-available-on-digital-privacy-diy-ipv6/item.en.md new file mode 100644 index 0000000..1932f54 --- /dev/null +++ b/pages/01.blog/dnscrypt-now-available-on-digital-privacy-diy-ipv6/item.en.md @@ -0,0 +1,28 @@ +--- +title: 'DNSCrypt now available on DIGITAL PRIVACY .DIY + IPv6' +author: Dan +published: true +date: '21-06-2024 08:22' +taxonomy: + category: + - news + tag: + - 'DIGITAL PRIVACY' + - dnscrypt + - ipv6 + - dns + - encryption +aura: + author: dan +--- + +So this move has also been completed! + +Already listed at https://dnscrypt.info/public-servers/ but this time with IPv6. + +Everything is already updated: +* [Server](https://wiki.digitalprivacy.diy/en/server/services/dnscrypt) +* [Phone](https://wiki.digitalprivacy.diy/en/phone/apps/invizible-pro) +* [Desktop](https://wiki.digitalprivacy.diy/en/desktop/services/dnscrypt) + +> techsaviours.org dnscrypt will be still maintained and available until 25 Oct 24. \ No newline at end of file diff --git a/plugins/sitemap/CHANGELOG.md b/plugins/sitemap/CHANGELOG.md index 92009a0..b8179d6 100644 --- a/plugins/sitemap/CHANGELOG.md +++ b/plugins/sitemap/CHANGELOG.md @@ -1,3 +1,11 @@ +# v5.1.0 +## 06/17/24 + +1. [](#new) + * Added page-level `lastmod` options [#113](https://github.com/getgrav/grav-plugin-sitemap/pull/113) +1. [](#improved) + * Updated README.md with page override options. + # v5.0.0 ## 10/05/2023 diff --git a/plugins/sitemap/README.md b/plugins/sitemap/README.md index 1213951..a7f1fa0 100644 --- a/plugins/sitemap/README.md +++ b/plugins/sitemap/README.md @@ -76,6 +76,17 @@ sitemap: ignore: true ``` +## Overrides + +You can override several elements of the sitemap entry for the page in the page's header. For example, as well as `ignore` mentioned above, these are available: + +```yaml +sitemap: + lastmod: # e.g. '2024-04-17' + changefreq: # always| hourly | daily: | weekly | monthly | yearly | never + priority: # 0.1 -> 1.0 +``` + ## Multi-Language Support The latest Sitemap `v3.0` includes all new multi-language support utilizing the latest [Google Search SEO Recomendations](https://developers.google.com/search/docs/advanced/crawling/localized-versions?hl=en&visit_id=637468720624267418-280936473&rd=2) which creates bi-directional `hreflang` entries for each language available. @@ -98,6 +109,7 @@ https://yoursite.com/blog/sitemap-news.xml You can change the "News Path" to be something other than `sitemap-news.xml` if you wish. + ## Images You can add images to the sitemap by adding an entry in the page's Frontmatter. diff --git a/plugins/sitemap/blueprints.yaml b/plugins/sitemap/blueprints.yaml index fdf37b3..7e3d846 100644 --- a/plugins/sitemap/blueprints.yaml +++ b/plugins/sitemap/blueprints.yaml @@ -1,7 +1,7 @@ name: Sitemap type: plugin slug: sitemap -version: 5.0.0 +version: 5.1.0 description: "Provide automatically generated **XML sitemaps** with this very useful, as a simple to configure Grav plugin." icon: map-marker author: diff --git a/plugins/sitemap/blueprints/sitemap.yaml b/plugins/sitemap/blueprints/sitemap.yaml index b414ac6..5e56da4 100644 --- a/plugins/sitemap/blueprints/sitemap.yaml +++ b/plugins/sitemap/blueprints/sitemap.yaml @@ -25,6 +25,11 @@ form: type: bool required: false + header.sitemap.lastmod: + type: datetime + label: PLUGIN_SITEMAP.HEADER_LASTMOD + default: '' + header.sitemap.changefreq: type: select label: PLUGIN_SITEMAP.HEADER_CHANGEFREQ diff --git a/plugins/sitemap/languages.yaml b/plugins/sitemap/languages.yaml index 4b205b5..87e047b 100644 --- a/plugins/sitemap/languages.yaml +++ b/plugins/sitemap/languages.yaml @@ -2,6 +2,7 @@ en: PLUGIN_SITEMAP: SITEMAP: 'Sitemap' HEADER_IGNORE: 'Sitemap ignore page' + HEADER_LASTMOD: 'Sitemap Last Modified' HEADER_CHANGEFREQ: 'Sitemap Change Frequency' HEADER_PRIORITY: 'Sitemap priority' CHANGEFREQ: 'Global - Sitemap Change Frequency' diff --git a/plugins/sitemap/sitemap.php b/plugins/sitemap/sitemap.php index 0597080..a90d050 100644 --- a/plugins/sitemap/sitemap.php +++ b/plugins/sitemap/sitemap.php @@ -310,6 +310,7 @@ class SitemapPlugin extends Plugin $include_lang = $this->multilang_skiplang_prefix !== $lang; $location = $page->canonical($include_lang); $url = $page->url(false, $include_lang); + $lastmod = !empty($header->sitemap['lastmod']) ? strtotime($header->sitemap['lastmod']) : $page->modified(); $lang_route = [ 'title' => $page->title(), @@ -318,7 +319,7 @@ class SitemapPlugin extends Plugin 'lang' => $lang, 'translated' => in_array($lang, $page_languages), 'location' => $location, - 'lastmod' => date($this->datetime_format, $page->modified()), + 'lastmod' => date($this->datetime_format, $lastmod), 'longdate' => date('Y-m-d\TH:i:sP', $page->date()), 'shortdate' => date('Y-m-d', $page->date()), 'timestamp' => $page->date(),