(Grav GitSync) Automatic Commit from dan

This commit is contained in:
dan 2024-06-21 10:22:28 +02:00 committed by GitSync
parent 29c40548a3
commit e1dfdfdf97
7 changed files with 57 additions and 2 deletions

View file

@ -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.

View file

@ -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

View file

@ -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.

View file

@ -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:

View file

@ -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

View file

@ -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'

View file

@ -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(),