Update templates to match grav v1.7.5
This commit is contained in:
parent
f183ff4bd5
commit
3339558b06
|
@ -22,9 +22,13 @@ The Disroot theme was created for disroot.org website.
|
|||
|
||||
As for now the disroot theme is not released via GPM and only manual install is possible.
|
||||
|
||||
### Manual Installation
|
||||
# Manual Installation
|
||||
|
||||
To install this theme, just download the zip version of this repository and unzip it under /your/site/grav/user/themes. Then, rename the folder to disroot.
|
||||
|
||||
You should now have all the theme files under
|
||||
`/your/site/grav/user/themes/disroot`
|
||||
|
||||
### Tweaking the theme when using vagrant
|
||||
When you use the Website vagrant deployment and work on the Theme templates, you sometimes have to clear the cache in order to see your change on the website.
|
||||
The simplest way to do this is by going to the root Grav directory in Terminal and typing bin/grav clearcache.
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
<div class="row">
|
||||
<div class="col-md-8 col-md-offset-2 wp1">
|
||||
<h1 class="arrow">{{ page.header.title }}</h1>
|
||||
{{ page.content }}
|
||||
{{ page.content|raw }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
<div class="row">
|
||||
<div class="col-md-8 col-md-offset-2 wp1">
|
||||
<h1 class="arrow">Error {{ page.header.http_response_code }}</h1>
|
||||
{{ page.content }}
|
||||
{{ page.content|raw }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
<div class="row">
|
||||
<div class="nine columns main-col">
|
||||
<h2>{{ form.message }}</h2>
|
||||
{{ content }}
|
||||
{{ content|raw }}
|
||||
|
||||
{% include "forms/data.html.twig" %} <br />
|
||||
Back to <a href="{{ base_url_absolute }}">homepage</a>.
|
||||
|
|
|
@ -4,10 +4,10 @@
|
|||
{% macro pageLinkName(text) %}{{ text|lower|replace({' ':'_'}) }}{% endmacro %}
|
||||
|
||||
{% block content %}
|
||||
{{ page.content }}
|
||||
{{ page.content|raw }}
|
||||
<div id="content" style="background-color: {{ page.header.bgcolor }}">
|
||||
{% for module in page.collection() %}
|
||||
{{ module.content }}
|
||||
{{ module.content|raw }}
|
||||
{% endfor %}
|
||||
</div>
|
||||
{% endblock %}
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
<div class="row">
|
||||
{% for key, column in page.content|split('<hr />') %}
|
||||
<div class="{{ colsize[key] }} columns">
|
||||
{{ column }}
|
||||
{{ column|raw }}
|
||||
{% if page.header.cloudclients %}
|
||||
{% if colsize[key] == 'six' %}
|
||||
{% include 'modular/cloudclients.html.twig' %}
|
||||
|
|
|
@ -7,8 +7,8 @@
|
|||
<div class="row">
|
||||
{% for key, column in page.content|split('<hr />') %}
|
||||
<div class="{{ colsize[key] }} columns">
|
||||
{{ column }}
|
||||
</div>
|
||||
{{ column|raw }}
|
||||
</div>
|
||||
{% endfor %}
|
||||
</div>
|
||||
</section>
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
</div>
|
||||
{% endfor %}
|
||||
</div>
|
||||
{{ page.content }}
|
||||
{{ page.content|raw }}
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
|
|
@ -24,7 +24,7 @@
|
|||
</div>
|
||||
{% endfor %}
|
||||
</div>
|
||||
{{ page.content }}
|
||||
{{ page.content|raw }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -17,7 +17,7 @@
|
|||
<input type="radio" id="radio-{{ qa_number }}" name="radio-accordion" />
|
||||
<label for="radio-{{ qa_number }}"><h4>{{ item.question }}</h4></label>
|
||||
<div class="faq-content">
|
||||
{{ item.answer }}
|
||||
{{ item.answer|raw }}
|
||||
<hr>
|
||||
</div>
|
||||
</li>
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
</div>
|
||||
<div class="row">
|
||||
<div class="eight columns">
|
||||
{{ page.content }}
|
||||
{{ page.content|raw }}
|
||||
{% include "forms/form.html.twig" %}
|
||||
</div>
|
||||
<aside class="four columns footer-widgets">
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
|
||||
<div class="fullbar" style="background-color:{{ page.header.bgcolor }}; padding:{{ page.header.padding }};">
|
||||
<div class="fullbar-content" style="color:{{ page.header.fontcolor }}; text-align:{{ page.header.text_align }};">
|
||||
{{ page.content }}
|
||||
{{ page.content|raw }}
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
</div>
|
||||
{% endfor %}
|
||||
</div>
|
||||
{{ page.content }}
|
||||
{{ page.content|raw }}
|
||||
</div>
|
||||
<br>
|
||||
</div>
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
{% do assets.addCss('theme://css/media-queries.css') %}
|
||||
{% do assets.addCss('theme://css/magnific-popup.css') %}
|
||||
{% endblock %}
|
||||
{{ assets.css() }}
|
||||
{{ assets.css()|raw }}
|
||||
<script src="{{ url('theme://js/modernizr.js') }}"></script>
|
||||
{% endblock head%}
|
||||
</head>
|
||||
|
@ -33,8 +33,8 @@
|
|||
{% endblock %}
|
||||
{% block javascripts %}
|
||||
{% do assets.add('jquery',101) %}
|
||||
<script>window.jQuery || document.write('<script src="{{ url('theme://js/jquery-1.10.2.min.js') }}"><\/script>')</script>
|
||||
<script type="text/javascript" src="{{ url('theme://js/jquery-migrate-1.2.1.min.js') }}"></script>
|
||||
<!--<script>window.jQuery || document.write('<script src="{{ url('theme://js/jquery-1.10.2.min.js') }}"><\/script>')</script><!-->
|
||||
{% do assets.addJs('theme://js/jquery-migrate-1.2.1.min.js') %}
|
||||
{% do assets.addJs('theme://js/jquery.flexslider.js') %}
|
||||
{% do assets.addJs('theme://js/waypoints.js') %}
|
||||
{% do assets.addJs('theme://js/jquery.fittext.js') %}
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
{% do assets.addCss('theme://css/media-queries.css') %}
|
||||
{% do assets.addCss('theme://css/magnific-popup.css') %}
|
||||
{% endblock %}
|
||||
{{ assets.css() }}
|
||||
{{ assets.css()|raw }}
|
||||
<script src="{{ url('theme://js/modernizr.js') }}"></script>
|
||||
{% endblock head%}
|
||||
</head>
|
||||
|
@ -36,15 +36,15 @@
|
|||
{% include 'partials/footer.html.twig' %}
|
||||
{% endblock %}
|
||||
{% block javascripts %}
|
||||
{% do assets.add('jquery',101) %}
|
||||
<script>window.jQuery || document.write('<script src="{{ url('theme://js/jquery-1.10.2.min.js') }}"><\/script>')</script>
|
||||
<script type="text/javascript" src="{{ url('theme://js/jquery-migrate-1.2.1.min.js') }}"></script>
|
||||
{% do assets.add('jquery', 101) %}
|
||||
<!--<script>window.jQuery || document.write('<script src="{{ url('theme://js/jquery-1.10.2.min.js') }}"><\/script>')</script><!-->
|
||||
{% do assets.addJs('theme://js/jquery-migrate-1.2.1.min.js') %}
|
||||
{% do assets.addJs('theme://js/jquery.flexslider.js') %}
|
||||
{% do assets.addJs('theme://js/waypoints.js') %}
|
||||
{% do assets.addJs('theme://js/jquery.fittext.js') %}
|
||||
{% do assets.addJs('theme://js/magnific-popup.js') %}
|
||||
{% do assets.addJs('theme://js/init.js') %}
|
||||
{% endblock %}
|
||||
{{ assets.js() }}
|
||||
{{ assets.js()|raw }}
|
||||
</body>
|
||||
</html>
|
||||
|
|
Loading…
Reference in New Issue