mirror of
https://github.com/pmoreno-rodriguez/grav-theme-future2021.git
synced 2025-07-26 20:08:57 +00:00
Compare commits
4 commits
85626433e9
...
a4ae56c25d
Author | SHA1 | Date | |
---|---|---|---|
|
a4ae56c25d | ||
|
2b75b91297 | ||
|
3f7ba39217 | ||
|
370eb2dcea |
5 changed files with 40 additions and 23 deletions
|
@ -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
|
||||
|
||||
|
|
10
README.md
10
README.md
|
@ -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.
|
||||
|
|
|
@ -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:
|
||||
|
|
|
@ -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">
|
||||
|
|
|
@ -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 %}
|
Loading…
Add table
Reference in a new issue