Skip to content

Commit

Permalink
Sitemap 1.6.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Awilum committed Sep 15, 2019
1 parent c706c26 commit 4b5c1af
Show file tree
Hide file tree
Showing 12 changed files with 26 additions and 35 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# v1.6.0, 2019-09-15
* Updates for Flextype 0.9.4

# v1.5.0, 2019-07-08
* Updates for Flextype 0.9.3
* Fixed issue with response headers
Expand Down
2 changes: 1 addition & 1 deletion LICENSE.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
The MIT License (MIT)

Copyright (c) 2019 Flextype
Copyright (c) 2018-2019 Sergey Romanenko

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
14 changes: 6 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Sitemap Plugin for [Flextype](http://flextype.org/)
![version](https://img.shields.io/badge/version-1.5.0-brightgreen.svg?style=flat-square "Version")
![Flextype](https://img.shields.io/badge/Flextype-0.9.3-green.svg?style=flat-square "Flextype Version")
![version](https://img.shields.io/badge/version-1.6.0-brightgreen.svg?style=flat-square "Version")
![Flextype](https://img.shields.io/badge/Flextype-0.9.4-green.svg?style=flat-square "Flextype Version")
[![MIT License](https://img.shields.io/badge/license-MIT-blue.svg?style=flat-square)](https://github.com/flextype-plugins/tiny-url/blob/master/LICENSE.txt)

Sitemap plugin provide automatically generated XML sitemap for Flextype.
Expand All @@ -11,11 +11,9 @@ Unzip plugin to the folder `/site/plugins/`
## Settings
enabled: true or false to disable the plugin

```json
{
"enabled": true
}
```yaml
enabled: true
```
## License
See [LICENSE](https://github.com/flextype-plugins/sitemap/blob/master/LICENSE)
## LICENSE
[The MIT License (MIT)](https://github.com/flextype-plugins/sitemap/blob/master/LICENSE) Copyright (c) 2018-2019 [Sergey Romanenko](https://github.com/Awilum)
3 changes: 1 addition & 2 deletions app/Controllers/SitemapController.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
*/
class SitemapController extends Controller {


/**
* Index page
*
Expand All @@ -21,7 +20,7 @@ class SitemapController extends Controller {
*/
public function index(Request $request, Response $response) : Response
{
$_entries = $this->entries->fetchAll('', ['recursive' => true, 'order_by' => ['field' => 'date', 'direction' => 'desc']]);
$_entries = $this->entries->fetchAll('', ['recursive' => true, 'order_by' => ['field' => 'published_at', 'direction' => 'desc']]);
$entries = [];

foreach ($_entries as $entry) {
Expand Down
4 changes: 0 additions & 4 deletions lang/en_US.json

This file was deleted.

2 changes: 2 additions & 0 deletions lang/en_US.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
sitemap: "Sitemap"
sitemap_description: "Sitemap plugin provide automatically generated XML sitemap for Flextype."
4 changes: 0 additions & 4 deletions lang/ru_RU.json

This file was deleted.

2 changes: 2 additions & 0 deletions lang/ru_RU.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
sitemap: "Sitemap"
sitemap_description: "Sitemap plugin provide automatically generated XML sitemap for Flextype."
13 changes: 0 additions & 13 deletions plugin.json

This file was deleted.

10 changes: 10 additions & 0 deletions plugin.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
name: Sitemap
version: 1.6.0
description: Provide automatically generated XML sitemap.
author:
name: Sergey Romanenko
email: [email protected]
url: http://flextype.org
homepage: https://github.com/flextype-plugins/sitemap
bugs: https://github.com/flextype-plugins/sitemap/issues
license: MIT
3 changes: 0 additions & 3 deletions settings.json

This file was deleted.

1 change: 1 addition & 0 deletions settings.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
enabled: true

0 comments on commit 4b5c1af

Please sign in to comment.