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