Skip to content

Commit

Permalink
Sitemap 1.3.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Awilum committed Jan 12, 2019
1 parent 6bc176e commit 73b592f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# v1.3.1, 2019-01-13
* Updates for Flextype 0.8.2

# v1.3.0, 2018-12-28
* Updates for Flextype 0.8.0

Expand Down
4 changes: 2 additions & 2 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.3.0-brightgreen.svg?style=flat-square "Version")
![Flextype](https://img.shields.io/badge/Flextype-0.8.0-green.svg?style=flat-square "Flextype Version")
![version](https://img.shields.io/badge/version-1.3.1-brightgreen.svg?style=flat-square "Version")
![Flextype](https://img.shields.io/badge/Flextype-0.8.2-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 Down
2 changes: 1 addition & 1 deletion sitemap.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
Http::setResponseStatus(200);
Http::setRequestHeaders('Content-Type: text/xml; charset=utf-8');

foreach (Entries::getEntries('', 'date') as $entry) {
foreach (Entries::getEntries('', 'date', 'DESC', null, null, true) as $entry) {
if ($entry['slug'] !== '404' && !(isset($entry['visibility']) && ($entry['visibility'] === 'draft' || $entry['visibility'] === 'hidden'))) {
$entries[] = $entry;
}
Expand Down

0 comments on commit 73b592f

Please sign in to comment.