feat: Google News sitemap

- sitemap-news.xml lists the articles (content kind article) first
  published in the last two days, newest first, at most 1000, with the
  publication name (news_publication, else app.name), the language of the
  locale, the publication date and the title
- news_sources narrows it to type:<key> and category:<key>:<id> values;
  the Images and News tab lists the values to use in a partial
- the index lists the file while news_enabled is on; otherwise it is 404
This commit is contained in:
Jakub Zych
2026-11-04 12:22:40 +01:00
parent 5bf56fde57
commit a10ce2d9de
9 changed files with 604 additions and 5 deletions

View File

@@ -12,6 +12,8 @@ errors:
html_path: Start the address with / and use a path only, e.g. /mapa-strony.
page_size: Enter a whole number from 50 to 500.
lastmod: 'Enter a date as YYYY-MM-DD, e.g. 2026-10-28, or leave it empty.'
news_publication: Enter at most 255 characters, without line breaks.
news_source: 'Use the values listed under the field: type:<type key> or category:<type key>:<id>.'
settings:
label: Sitemaps
description: XML sitemaps per content type, images, News, IndexNow and the HTML sitemap.
@@ -69,6 +71,12 @@ files:
index_note: Search engines read the index at :url, and robots.txt points to it. The files are rebuilt after content changes and every night; saving this form rebuilds them now.
empty: No files yet. They are built within a few minutes after the first save.
building: Rebuilding now. Reload the page in a minute.
news:
sources: Values for Types and categories
source_value: Value
source_label: Articles
source_type: 'Every article of :type'
none: No content type publishes articles yet.
indexnow:
key: 'Key: :key, served at :url'
no_key: A key is generated when you turn IndexNow on and save.

View File

@@ -12,6 +12,8 @@ errors:
html_path: Zacznij adres od / i użyj samej ścieżki, np. /mapa-strony.
page_size: Wpisz liczbę całkowitą od 50 do 500.
lastmod: 'Wpisz datę w formacie RRRR-MM-DD, np. 2026-10-28, albo zostaw puste.'
news_publication: Wpisz najwyżej 255 znaków, bez podziału wiersza.
news_source: 'Użyj wartości z listy pod polem: type:<klucz typu> albo category:<klucz typu>:<id>.'
settings:
label: Mapy witryny
description: Mapy XML według typów treści, obrazy, News, IndexNow i mapa HTML.
@@ -69,6 +71,12 @@ files:
index_note: Wyszukiwarki czytają indeks pod :url, a robots.txt go wskazuje. Pliki są odbudowywane po zmianach treści i co noc; zapisanie tego formularza odbudowuje je od razu.
empty: Nie ma jeszcze plików. Powstaną w ciągu kilku minut po pierwszym zapisie.
building: Trwa odbudowa. Odśwież stronę za minutę.
news:
sources: Wartości pola Typy i kategorie
source_value: Wartość
source_label: Artykuły
source_type: 'Wszystkie artykuły: :type'
none: Żaden typ treści nie publikuje jeszcze artykułów.
indexnow:
key: 'Klucz: :key, udostępniany pod :url'
no_key: Klucz zostanie wygenerowany po włączeniu IndexNow i zapisie.