Skip to content

Commit

Permalink
Merge branch 'release/5.0.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
rhukster committed Oct 5, 2023
2 parents d8df127 + 73f37fa commit cda7953
Show file tree
Hide file tree
Showing 11 changed files with 425 additions and 167 deletions.
13 changes: 13 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,16 @@
# v5.0.0
## 10/05/2023

1. [](#new)
* New capability to support "standalone" Sitemap News pages
* New XSL format for Sitemap News
* Added a toggle for XSL transform support to be disabled
1. [](#improved)
* Improved blueprint and created sections
* Hide `x-default` alternate links when `include_default_lang` is enabled
1. [](#bugfix)
* Fixed an issue with translated links were not being handled properly and not showing all alternate languages

# v4.0.0
## 09/22/2023

Expand Down
14 changes: 13 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ ignores:
- /ignore-this-route
- /ignore-children-of-this-route/.*
include_news_tags: false
standalone_sitemap_news: false
sitemap_news_path: '/sitemap-news.xml'
news_max_age_days: 2
news_enabled_paths:
- /blog
Expand Down Expand Up @@ -84,7 +86,17 @@ This is handled automatically based on your Grav multi-language System configura

New in version 4.0 of the plugin is support for Google's [**News Sitemap Extension**](https://developers.google.com/search/docs/crawling-indexing/sitemaps/news-sitemap) that uses a specific tags under a `<news:news></news:news>` tag to provide Google News specific data. When enabled, the news extensions will be enabled when an item is in one of the configured news paths (`/` by default, so all), and if the published date is not older than the configured `max age` (default of 2 per Googles recommendations).

The output of the news tags is controlled by an overridable `sitemap-extensions/news.html.twig` template
The output of the news tags is controlled by an overridable `sitemap-extensions/news.html.twig` template.

The default behavior when **Include News Tags** is enabled, is to include the news tags directly in the primary `sitemap.xml` file. However, if you enabled the **Standalone News URLs** option, news tags will not be added to the primary `sitemap.xml`, rather, they will be available in standalone paths that contain only the pages in the designated news paths.

For example, the default behavior is to enable `/blog` as a news path. If this path exists, you have content in subfolders of this page, and that content is less than the defined "News Max Age" (2 days recommended by Google), then that sitemap-news-specific sitemap would be available via:

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

Expand Down
Loading

0 comments on commit cda7953

Please sign in to comment.