diff --git a/CHANGELOG.md b/CHANGELOG.md index f6e5ef8..68ee9c1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,10 @@ + +# [1.7.0](https://github.com/flextype-themes/bootstrap-blog) (2020-12-20) + +### Features + +* **core** update code base for new Flextype 0.9.13 + # [1.6.0](https://github.com/flextype-themes/bootstrap-blog) (2020-12-07) diff --git a/README.md b/README.md index a635c4d..c6fc9cf 100755 --- a/README.md +++ b/README.md @@ -3,7 +3,7 @@ ![preview](preview.png)

-Version License Total downloads Flextype Discord +Version License Total downloads Flextype Discord

## Features @@ -18,7 +18,7 @@ The following dependencies need to be downloaded and installed for Bootstrap Blo | Item | Version | Download | |---|---|---| -| [flextype](https://github.com/flextype/flextype) | 0.9.12 | [download](https://github.com/flextype/flextype/) | +| [flextype](https://github.com/flextype/flextype) | 0.9.13 | [download](https://github.com/flextype/flextype/) | | [site](https://github.com/flextype-plugins/site) | >=1.0.0 | [download](https://github.com/flextype-plugins/site/releases) | | [twig](https://github.com/flextype-plugins/twig) | >=1.0.0 | [download](https://github.com/flextype-plugins/twig/releases) | diff --git a/templates/blog-post.html b/templates/blog-post.html index 8a339e0..fc8257a 100644 --- a/templates/blog-post.html +++ b/templates/blog-post.html @@ -1,8 +1,8 @@ {% extends 'themes/' ~ registry.get('plugins.site.settings.theme') ~ '/templates/partials/base.html' %} {% block content %} - {% set blog = entries.fetchCollection('blog') %} - {% set blog_posts_limit = entries.fetchSingle('blog').entries_limit %} + {% set blog = entries.fetch('blog') %} + {% set blog_posts_limit = entries.fetch('blog').entries_limit %} {% if blog_posts_limit == 0 %} {% set blog_posts_limit = 5 %} {% endif %} diff --git a/templates/blog.html b/templates/blog.html index db31e98..013b2f0 100644 --- a/templates/blog.html +++ b/templates/blog.html @@ -6,9 +6,9 @@ {% set page = query.page %} {% set tag = query.tag %} - {% set blog = entries.fetchCollection('blog') %} + {% set blog = entries.fetch('blog', {'collection': true}) %} - {% set blog_posts_limit = entries.fetchSingle('blog').entries_limit %} + {% set blog_posts_limit = entries.fetch('blog').entries_limit %} {% if blog_posts_limit == 0 %} {% set blog_posts_limit = 5 %} diff --git a/templates/partials/base.html b/templates/partials/base.html index 99b3eaa..ffbbb65 100644 --- a/templates/partials/base.html +++ b/templates/partials/base.html @@ -46,7 +46,7 @@