Skip to content

Commit

Permalink
Sitemap 2.7.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Awilum committed Dec 30, 2020
1 parent ba70ca9 commit 7e8f54f
Show file tree
Hide file tree
Showing 7 changed files with 18 additions and 9 deletions.
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
<a name="2.7.0"></a>
# [2.7.0](https://github.com/flextype-plugins/sitemap/compare/v2.6.1...v2.7.0) (2020-12-30)

### Features

* **core** update code base for new Flextype 0.9.14
* **core** Moving to PHP 7.4
* **core** use new TWIG Plugin 1.7.0

<a name="2.6.1"></a>
# [2.6.1](https://github.com/flextype-plugins/sitemap/compare/v2.6.0...v2.6.1) (2020-12-21)

Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<h1 align="center">Sitemap Plugin for <a href="https://flextype.org/">Flextype</a></h1>

<p align="center">
<a href="https://github.com/flextype-plugins/themes-admin/releases"><img alt="Version" src="https://img.shields.io/github/release/flextype-plugins/sitemap.svg?label=version&color=black"></a> <a href="https://github.com/flextype-plugins/sitemap"><img src="https://img.shields.io/badge/license-MIT-blue.svg?color=black" alt="License"></a> <a href="https://github.com/flextype-plugins/sitemap"><img src="https://img.shields.io/github/downloads/flextype-plugins/sitemap/total.svg?color=black" alt="Total downloads"></a> <a href="https://github.com/flextype/flextype"><img src="https://img.shields.io/badge/Flextype-0.9.13-green.svg?color=black" alt="Flextype"></a> <a href=""><img src="https://img.shields.io/discord/423097982498635778.svg?logo=discord&color=black&label=Discord%20Chat" alt="Discord"></a>
<a href="https://github.com/flextype-plugins/themes-admin/releases"><img alt="Version" src="https://img.shields.io/github/release/flextype-plugins/sitemap.svg?label=version&color=black"></a> <a href="https://github.com/flextype-plugins/sitemap"><img src="https://img.shields.io/badge/license-MIT-blue.svg?color=black" alt="License"></a> <a href="https://github.com/flextype-plugins/sitemap"><img src="https://img.shields.io/github/downloads/flextype-plugins/sitemap/total.svg?color=black" alt="Total downloads"></a> <a href="https://github.com/flextype/flextype"><img src="https://img.shields.io/badge/Flextype-0.9.14-green.svg?color=black" alt="Flextype"></a> <a href=""><img src="https://img.shields.io/discord/423097982498635778.svg?logo=discord&color=black&label=Discord%20Chat" alt="Discord"></a>
</p>

Sitemap plugin provide automatically generated XML sitemap for Flextype.
Expand All @@ -12,7 +12,7 @@ The following dependencies need to be downloaded and installed for Sitemap Plugi

| Item | Version | Download |
|---|---|---|
| [flextype](https://github.com/flextype/flextype) | 0.9.13 | [download](https://github.com/flextype/flextype/releases) |
| [flextype](https://github.com/flextype/flextype) | 0.9.14 | [download](https://github.com/flextype/flextype/releases) |
| [twig](https://github.com/flextype-plugins/twig) | >=1.0.0 | [download](https://github.com/flextype-plugins/twig/releases) |

## Installation
Expand Down
2 changes: 1 addition & 1 deletion bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* Flextype Sitemap Plugin
*
* @author Romanenko Sergey / Awilum <awilum@yandex.ru>
* @link http://flextype.org
* @link https://flextype.org
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
Expand Down
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"issues": "https://github.com/flextype-plugins/sitemap/issues"
},
"require": {
"php": ">=7.3.0",
"php": ">=7.4.0",
"ext-json": "*",
"flextype-components/arrays" : "3.0.1",
"flextype-components/filesystem": "2.0.8"
Expand All @@ -25,7 +25,7 @@
"apcu-autoloader": true,
"optimize-autoloader": true,
"platform": {
"php": "7.3.0"
"php": "7.4.0"
}
},
"autoload": {
Expand Down
4 changes: 2 additions & 2 deletions plugin.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: Sitemap
version: 2.6.1
version: 2.7.0
description: Provide automatically generated XML sitemap.
author:
name: Sergey Romanenko
Expand All @@ -14,5 +14,5 @@ keywords: sitemap, plugin, xml, map, index
license: MIT

dependencies:
flextype: 0.9.13
flextype: 0.9.14
twig: '>=1.0.0'
2 changes: 1 addition & 1 deletion settings.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
enabled: true

# Sitemap plugin priority
priority: 95
priority: 100

# Route
route: sitemap.xml
Expand Down
2 changes: 1 addition & 1 deletion templates/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<url>
<loc>{{ url() }}/{{ entry.loc|e }}</loc>
{% if entry.lastmod %}
<lastmod>{{ entry.lastmod|date(registry.get('plugins.sitemap.settings.date_format')) }}</lastmod>
<lastmod>{{ entry.lastmod|date(flextype.registry.get('plugins.sitemap.settings.date_format')) }}</lastmod>
{% endif %}
{% if entry.changefreq %}
<changefreq>{{ entry.changefreq }}</changefreq>
Expand Down

0 comments on commit 7e8f54f

Please sign in to comment.