Skip to content

Commit

Permalink
Blog 1.7.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Awilum committed Dec 20, 2020
1 parent fe34654 commit 506065c
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 9 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
<a name="1.7.0"></a>
# [1.7.0](https://github.com/flextype-themes/bootstrap-blog) (2020-12-20)

### Features

* **core** update code base for new Flextype 0.9.13

<a name="1.6.0"></a>
# [1.6.0](https://github.com/flextype-themes/bootstrap-blog) (2020-12-07)

Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
![preview](preview.png)

<p align="center">
<a href="https://github.com/flextype-themes/bootstrap-blog/releases"><img alt="Version" src="https://img.shields.io/github/release/flextype-themes/bootstrap-blog.svg?label=version&color=black"></a> <a href="https://github.com/flextype-themes/bootstrap-blog"><img src="https://img.shields.io/badge/license-MIT-blue.svg?color=black" alt="License"></a> <a href="https://github.com/flextype-themes/bootstrap-blog"><img src="https://img.shields.io/github/downloads/flextype-themes/bootstrap-blog/total.svg?color=black" alt="Total downloads"></a> <a href="https://github.com/flextype-themes/bootstrap-blog"><img src="https://img.shields.io/badge/Flextype-0.9.12-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-themes/bootstrap-blog/releases"><img alt="Version" src="https://img.shields.io/github/release/flextype-themes/bootstrap-blog.svg?label=version&color=black"></a> <a href="https://github.com/flextype-themes/bootstrap-blog"><img src="https://img.shields.io/badge/license-MIT-blue.svg?color=black" alt="License"></a> <a href="https://github.com/flextype-themes/bootstrap-blog"><img src="https://img.shields.io/github/downloads/flextype-themes/bootstrap-blog/total.svg?color=black" alt="Total downloads"></a> <a href="https://github.com/flextype-themes/bootstrap-blog"><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>
</p>

## Features
Expand All @@ -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) |

Expand Down
4 changes: 2 additions & 2 deletions templates/blog-post.html
Original file line number Diff line number Diff line change
@@ -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 %}
Expand Down
4 changes: 2 additions & 2 deletions templates/blog.html
Original file line number Diff line number Diff line change
Expand Up @@ -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 %}
Expand Down
2 changes: 1 addition & 1 deletion templates/partials/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@

<div class="collapse navbar-collapse" id="navbarsExampleDefault">
<ul class="navbar-nav mr-auto">
{% for item in arrays(entries.fetchCollection('')).sortBy('menu_item_order', 'ASC').all() %}
{% for item in entries.fetch('', {'collection': true}).sortBy('menu_item_order', 'ASC').all() %}
{% if item.menu_item_title %}
<li class="nav-item {% if item.menu_item_url in entry.id %}active{% endif %}">
<a class="nav-link" href="{{ url() }}/{{ item.menu_item_url }}">{{ item.menu_item_title }}</a>
Expand Down
4 changes: 2 additions & 2 deletions theme.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: Bootstrap Blog
version: 1.6.0
version: 1.7.0
description: Twitter Bootstrap Blog theme for Flextype.
author:
name: Sergey Romanenko
Expand All @@ -10,6 +10,6 @@ bugs: https://github.com/flextype-themes/bootstrap-blog/issues
license: MIT

dependencies:
flextype: 0.9.12
flextype: 0.9.13
site: '>=1.0.0'
twig: '>=1.0.0'

0 comments on commit 506065c

Please sign in to comment.