merge master in prod
This commit is contained in:
@@ -1,3 +1,13 @@
|
||||
# v1.3.4
|
||||
## 08/03/2020
|
||||
|
||||
1. [](#bugfix)
|
||||
* Reinstated caching that was broken from previous PR [#23](https://github.com/getgrav/grav-plugin-taxonomylist/issues/23)
|
||||
* Fixed wrong URL for blog site skeleton [#33](https://github.com/getgrav/grav-plugin-taxonomylist/pull/33)
|
||||
* Resolved `children_only option` showing unpublished pages [#27](https://github.com/getgrav/grav-plugin-taxonomylist/pull/27)
|
||||
* Fixed escape character issue in validate pattern
|
||||
|
||||
|
||||
# v1.3.3
|
||||
## 08/21/2018
|
||||
|
||||
|
||||
@@ -54,7 +54,7 @@ You can also include pass an optional parameter that will show taxonomy for chil
|
||||
{% include 'partials/taxonomylist.html.twig' with {base_url: my_url, taxonomy: 'tag', children_only: true} %}
|
||||
```
|
||||
|
||||
> NOTE: If you want to see this plugin in action, have a look at our [Blog Site Skeleton](http://github.com/grav/grav-skeleton-blog-site/archive/master.zip)
|
||||
> NOTE: If you want to see this plugin in action, have a look at our [Blog Site Skeleton](https://github.com/getgrav/grav-skeleton-blog-site/archive/master.zip)
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
name: Taxonomy List
|
||||
version: 1.3.3
|
||||
type: plugin
|
||||
slug: taxonomylist
|
||||
version: 1.3.4
|
||||
description: "With the **TaxonomyList plugin** you can easily create list of **taxonomy** items such as **tags**, **categories**, etc."
|
||||
icon: tag
|
||||
author:
|
||||
@@ -31,4 +33,4 @@ form:
|
||||
label: Route to blog
|
||||
placeholder: /blog
|
||||
validate:
|
||||
pattern: "/([a-z\-_]+/?)+"
|
||||
pattern: '/([a-z\-_]+/?)+'
|
||||
|
||||
@@ -33,7 +33,7 @@ class Taxonomylist
|
||||
{
|
||||
$current = Grav::instance()['page'];
|
||||
$taxonomies = [];
|
||||
foreach ($current->children() as $child) {
|
||||
foreach ($current->children()->published() as $child) {
|
||||
foreach($this->build($child->taxonomy()) as $taxonomyName => $taxonomyValue) {
|
||||
if (!isset($taxonomies[$taxonomyName])) {
|
||||
$taxonomies[$taxonomyName] = $taxonomyValue;
|
||||
|
||||
Reference in New Issue
Block a user