Browse Source

Fix compatibility with Grav 1.7.5

grav1.7.5
meaz 12 months ago
parent
commit
908e475ae5
  1. 2
      themes/grav-theme-howto/templates/default.html.twig
  2. 4
      themes/grav-theme-howto/templates/docsparent.html.twig
  3. 2
      themes/grav-theme-howto/templates/error.html.twig
  4. 2
      themes/grav-theme-howto/templates/home.html.twig
  5. 4
      themes/grav-theme-howto/templates/modular.html.twig
  6. 6
      themes/grav-theme-howto/templates/partials/base.html.twig

2
themes/grav-theme-howto/templates/default.html.twig

@ -1,5 +1,5 @@
{% extends 'partials/base.html.twig' %}
{% block content %}
{{ page.content }}
{{ page.content|raw }}
{% endblock %}

4
themes/grav-theme-howto/templates/docsparent.html.twig

@ -35,14 +35,14 @@
{% include 'partials/docmeta.html.twig' %}
<section class="index content narrow">
{{ page.content }}
{{ page.content|raw }}
<div class="row">
{% for p in page.children %}
<div class="three columns">
{%if p.header.indexed %}
<a href="{{ p.link }}">
{%if p.media %}
{{ p.media.images|first.html }}
{{ p.media.images|first.html|raw }}
{% endif %}
<h6>{{ p.title }}</h6>
</a>

2
themes/grav-theme-howto/templates/error.html.twig

@ -3,6 +3,6 @@
{% block content %}
<div class="lead text-center">
<h1>Error!</h1>
{{ page.content }}
{{ page.content|raw }}
</div>
{% endblock %}

2
themes/grav-theme-howto/templates/home.html.twig

@ -10,7 +10,7 @@
{% set colsize = ['seven', 'five'] %}
<section id="{{ page.header.section_id }}" class="row columns">
<div class="{{ colsize[0] }} columns">
{{ page.content }}
{{ page.content|raw }}
</div>
<div class="{{ colsize[1] }} columns topic-list">
{% for p in page.collection %}

4
themes/grav-theme-howto/templates/modular.html.twig

@ -4,10 +4,10 @@
{% macro pageLinkName(text) %}{{ text|lower|replace({' ':'_'}) }}{% endmacro %}
{% block content %}
{{ page.content }}
{{ page.content|raw }}
<div id="content">
{% for module in page.collection() %}
{{ module.content }}
{{ module.content|raw }}
{% endfor %}
</div>
{% endblock %}

6
themes/grav-theme-howto/templates/partials/base.html.twig

@ -17,13 +17,13 @@
{% do assets.addCss('theme://css/style.css') %}
{% do assets.addCss('theme://css/media-queries.css') %}
{% endblock %}
{{ assets.css() }}
{{ assets.css()|raw }}
{% block javascripts %}
{% block javascripts %}
{% do assets.addJs('jquery', 100) %}
{% do assets.addJs('theme://js/howto.js', { group:'bottom' }) %}
{% endblock %}
{{ assets.js() }}
{{ assets.js()|raw }}
{% endblock head%}
</head>

Loading…
Cancel
Save