Update to theme 1.2.1 #6
15
CHANGELOG.md
15
CHANGELOG.md
|
@ -1,3 +1,18 @@
|
|||
# v1.2.1
|
||||
## 01/19/2021
|
||||
|
||||
1. [](#improved)
|
||||
* Fixed autoescaping in preparation for Grav 1.7
|
||||
|
||||
# v1.2.0
|
||||
## 03/21/2019
|
||||
|
||||
1. [](#new)
|
||||
* Set Dependency of Grav 1.5.10+ which has support for new **Deferred Block** Twig extension
|
||||
* Implement assets rendering using **Deferred Block** Twig extension
|
||||
1. [](#improved)
|
||||
* Added twig `t` filter for submit button translation in comments form
|
||||
|
||||
# v1.1.0
|
||||
## 07/14/2016
|
||||
|
||||
|
|
|
@ -1,5 +1,7 @@
|
|||
name: disrootblog
|
||||
version: 1.1.0
|
||||
slug: disrootblog
|
||||
type: theme
|
||||
version: 1.2.1
|
||||
description: "A clean and simple theme for bloggers, with responsive design and beautiful typography."
|
||||
icon: group
|
||||
author:
|
||||
|
@ -11,3 +13,5 @@ demo: http://demo.getgrav.org/lingonberry-skeleton
|
|||
keywords: lingonberry, theme, onepage, modern, fast, responsive, html5, css3
|
||||
bugs: https://github.com/getgrav/grav-theme-lingonberry/issues
|
||||
license: GPL
|
||||
dependencies:
|
||||
- { name: grav, version: '>=1.5.10' }
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
|
||||
{% block content %}
|
||||
|
||||
{{ page.content }}
|
||||
{{ page.content|raw }}
|
||||
{% for child in collection %}
|
||||
{% include 'partials/blog_item.html.twig' with {'page':child, 'truncate':true} %}
|
||||
{% endfor %}
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
<h2 class="post-title">{{ page.header.title }}</h2>
|
||||
</div>
|
||||
<div class="post-content">
|
||||
{{ page.content }}
|
||||
{{ page.content|raw }}
|
||||
</div>
|
||||
<div class="clear"></div>
|
||||
</div>
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
<h2 class="post-title">Error {{ page.header.http_response_code }}</h2>
|
||||
</div>
|
||||
<div class="post-content">
|
||||
{{ page.content }}
|
||||
{{ page.content|raw }}
|
||||
</div>
|
||||
<div class="clear"></div>
|
||||
</div>
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
<h2 class="post-title">{{ page.header.title }}</h2>
|
||||
</div>
|
||||
<div class="post-content">
|
||||
{{ content }}
|
||||
{{ content|raw }}
|
||||
</div>
|
||||
{% if config.plugins.form.enabled %}
|
||||
{% include "forms/form.html.twig" %}
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
<h2 class="post-title">{{ form.message }}</h2>
|
||||
</div>
|
||||
<div class="post-content">
|
||||
{{ content }}
|
||||
{{ content|raw }}
|
||||
</div>
|
||||
{% if config.plugins.form.enabled %}
|
||||
{% include "forms/data.html.twig" %}
|
||||
|
|
|
@ -23,12 +23,10 @@
|
|||
{% do assets.addCss('theme://css/ie.css') %}
|
||||
{% endif %}
|
||||
{% endblock %}
|
||||
{{ assets.css() }}
|
||||
|
||||
{% block javascripts %}
|
||||
{% do assets.add('jquery',101) %}
|
||||
{% endblock %}
|
||||
{{ assets.js() }}
|
||||
|
||||
{% if site.calendar %}
|
||||
<script src="//code.jquery.com/ui/1.11.4/jquery-ui.js"></script>
|
||||
|
@ -41,6 +39,11 @@
|
|||
</script>
|
||||
{% endif %}
|
||||
|
||||
{% block assets deferred %}
|
||||
{{ assets.css()|raw }}
|
||||
{{ assets.js()|raw }}
|
||||
{% endblock %}
|
||||
|
||||
{% endblock head %}
|
||||
</head>
|
||||
<body class="{{ page.header.body_classes }}">
|
||||
|
@ -65,5 +68,8 @@
|
|||
<script type='text/javascript' src='{{ theme_url }}/js/flexslider.min.js'></script>
|
||||
<script type='text/javascript' src='{{ theme_url }}/js/global.js'></script>
|
||||
|
||||
{% block bottom %}
|
||||
{{ assets.js('bottom')|raw }}
|
||||
{% endblock %}
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
@ -53,7 +53,7 @@
|
|||
<iframe width="100%" height="403" scrolling="no" frameborder="no" src="https://w.soundcloud.com/player/?url=https%3A//api.soundcloud.com/tracks/{{ page.header.soundcloud }}&auto_play=false&hide_related=true&show_comments=true&show_user=true&show_reposts=false&visual=true&buying=false"></iframe>
|
||||
{% endif %}
|
||||
{% if page.media.images|first and not page.header.slideshow %}
|
||||
{{ page.media.images|first.cropZoom(750,422).html('','', 'thumb') }}
|
||||
{{ page.media.images|first.cropZoom(750,422).html('','', 'thumb')|raw }}
|
||||
{% endif %}
|
||||
{% if page.header.description %}
|
||||
<div class="media-caption-container">
|
||||
|
@ -100,7 +100,7 @@
|
|||
<span class="date-sep"> / </span>
|
||||
{% if page.taxonomy.tag %}
|
||||
{% for tag in page.taxonomy.tag %}
|
||||
<a href="{{ base_url }}/tag:{{ tag }}" rel="tag">{{ tag }}{% if not loop.last %}, {% endif %}</a>
|
||||
<a href="{{ base_url }}/tag{{ config.system.param_sep }}{{ tag }}" rel="tag">{{ tag }}{% if not loop.last %}, {% endif %}</a>
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
</div>
|
||||
|
@ -111,16 +111,16 @@
|
|||
<div class="post-content">
|
||||
{% if page.header.type != 'quote' and page.header.type != 'video' and page.header.type != 'link' and page.header.type != 'chat' and page.header.type != 'aside' %}
|
||||
{% if page.header.continue_link is sameas(false) %}
|
||||
{{ page.content }}
|
||||
{{ page.content|raw }}
|
||||
{% if not truncate %}
|
||||
{% set show_prev_next = true %}
|
||||
{% endif %}
|
||||
{% elseif truncate and page.summary != page.content %}
|
||||
{{ page.summary }}
|
||||
{{ page.summary|raw }}
|
||||
{% elseif truncate %}
|
||||
{{ page.content|truncate(550) }}
|
||||
{{ page.content|truncate(550)|raw }}
|
||||
{% else %}
|
||||
{{ page.content }}
|
||||
{{ page.content|raw }}
|
||||
{% set show_prev_next = true %}
|
||||
{% endif %}
|
||||
<p>
|
||||
|
@ -131,7 +131,7 @@
|
|||
{% endif %}
|
||||
</p>
|
||||
{% else %}
|
||||
{{ page.content }}
|
||||
{{ page.content|raw }}
|
||||
{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -41,7 +41,7 @@
|
|||
|
||||
<p class="form-submit">
|
||||
{% for button in grav.config.plugins.comments.form.buttons %}
|
||||
<button class="submit" type="{{ button.type|default('submit') }}">{{ button.value|default('Post Comment') }}</button>
|
||||
<button class="submit" type="{{ button.type|default('submit') }}">{{ button.value|t|default('Post Comment') }}</button>
|
||||
{% endfor %}
|
||||
</p>
|
||||
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
{% if related %}
|
||||
<div class="item-img">
|
||||
{% if related.media.images|first %}
|
||||
{{ related.media.images|first.forceResize(230,160).html }}
|
||||
{{ related.media.images|first.forceResize(230,160).html|raw }}
|
||||
{% else %}
|
||||
<a href="{{ related.url }}" title="{{ related.title }}">
|
||||
<img src='' title="{{ related.title }}" alt="{{ related.title }}" style="width:222px;height:154px;">
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
{% elseif percent >= 50 and percent < 80 %}
|
||||
{% set class = 'large' %}
|
||||
{% endif %}
|
||||
<span class="{{ class }}" title="{{ value }} posts"><a href="{{ base_url }}/tag{{ config.system.param_sep }}{{ tax|e('url') }}">{{ tax }}</a></span>
|
||||
<span class="{{ class }}" title="{{ value }} posts"><a href="{{ base_url }}/blog/tag{{ config.system.param_sep }}{{ tax|e('url') }}">{{ tax }}</a></span>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
</div>
|
||||
|
|
Loading…
Reference in New Issue