Compare commits

...

4 commits

Author SHA1 Message Date
pmoreno.rodriguez
a4ae56c25d Update taxonomylist partial template 2024-05-15 15:49:04 +02:00
pmoreno.rodriguez
2b75b91297 Prepare for relase 1.3.3 2024-05-15 15:47:24 +02:00
pmoreno.rodriguez
3f7ba39217 Update documentation in README 2024-05-15 15:45:19 +02:00
pmoreno.rodriguez
370eb2dcea Prepare for release 1.3.3 2024-05-15 15:44:37 +02:00
5 changed files with 40 additions and 23 deletions

View file

@ -1,3 +1,9 @@
# v1.3.3
## 05/15/2024
1. [](#improved)
* Updated `taxonomylist` partial template to latest changes of [taxonomylist plugin](https://github.com/getgrav/grav-plugin-taxonomylist/releases/tag/1.3.6)
# v1.3.2
## 03/19/2024

View file

@ -135,9 +135,19 @@ Alternatively, you can you use the drag-n-drop "Custom Logo" field in the Future
| dragToleranceY | number | `65` | Used with draggable. Number of pixels the user has to drag up or down to close the lightbox (Set 0 to disable vertical drag). |
| dragAutoSnap | boolean | `false` | If true the slide will automatically change to prev/next or close if dragToleranceX or dragToleranceY is reached, otherwise it will wait till the mouse is released. |
| preload | boolean | `true` | Enable or disable preloading. |
# Downloads template
Future2021 theme includes a simple template to manage downloads of files uploaded to a page. These files are automatically found and processed by Grav using `page.media.all` and displayed in a table with four columns: name, size, modification date and download button.
# Demo page
[https://future2021.pmdesign.dev](https://future2021.pmdesign.dev)
# Documentation
You can read extra documentation of Future2021 Theme at [https://pmoreno-rodriguez.github.io/#/./gravthemes/future2021/index](https://pmoreno-rodriguez.github.io/#/./gravthemes/future2021/index). This is [Spanish document site for Future2021 Theme](https://pmdesign.dev/temas/future2021)
# Future plans
- Create a Flex Directory for authors and avatars.

View file

@ -1,7 +1,7 @@
name: Future 2021
slug: future2021
type: theme
version: 1.3.2
version: 1.3.3
description: Grav Future Imperfect by HTML5 UP (Version 2021)
icon: microchip
author:

View file

@ -37,17 +37,8 @@
{% include 'partials/relatedpages.html.twig' %}
</div>
{% endif %}
{% if config.plugins.taxonomylist.enabled %}
{% set taxlist = children_only is defined ? taxonomylist.getChildPagesTags() : taxonomylist.get() %}
{% if taxlist %}
<!-- Taxonomy list -->
<div class="sidebar-content">
<header>
<h3>{{ 'FUTURE.SIDEBAR.TAGS.HEADLINE'|t }}</h3>
</header>
{% include 'partials/taxonomylist.html.twig' with {'base_url':new_base_url, 'taxonomy':'tag'} %}
</div>
{% endif %}
{% if config.plugins.taxonomylist.enabled and page.template == 'blog' %}
{% include 'partials/taxonomylist.html.twig' with {'base_url':new_base_url, 'taxonomy':'tag', children_only: true, of_page: page.blog} %}
{% endif %}
{% if config.plugins.feed.enabled %}
<!-- Syndicate -->
@ -73,7 +64,7 @@
</ul>
</div>
{% endif %}
{% if config.plugins.login.enabled and icon_login%}
{% if config.plugins.login.enabled and icon_login %}
<!-- Login button -->
<div>
<ul class="actions stacked">

View file

@ -1,10 +1,20 @@
<ul class="menulink">
<li>
{% for tax,value in taxlist[taxonomy] %}
{% if value is not empty %}
{% set active = uri.param(taxonomy) == tax? 'active' : '' %}
<a class="tags {{ active }}" rel="nofollow" href="{{ base_url }}/{{ taxonomy }}{{ config.system.param_sep }}{{ tax }}">{{ tax }}</a>
{% endif %}
{% endfor %}
</li>
</ul>
<!-- Taxonomy list -->
{% set taxlist = children_only is defined ? taxonomylist.getChildPagesTags(of_page) : taxonomylist.get() %}
{% if taxlist %}
<div class="sidebar-content">
<header>
<h3>{{ 'FUTURE.SIDEBAR.TAGS.HEADLINE'|t }}</h3>
</header>
<ul class="menulink">
<li>
{% for tax,value in taxlist[taxonomy] %}
{% if value is not empty %}
{% set active = uri.param(taxonomy) == tax? 'active' : '' %}
<a class="tags {{ active }}" rel="nofollow" href="{{ base_url }}/{{ taxonomy }}{{ config.system.param_sep }}{{ tax }}">{{ tax }}</a>
{% endif %}
{% endfor %}
</li>
</ul>
</div>
{% endif %}