Info blocks action optional, layout fixed
This commit is contained in:
parent
8862eaab2e
commit
5a2196abfc
3 changed files with 18 additions and 9 deletions
|
@ -43,12 +43,12 @@
|
|||
{% for block in subcategories %}
|
||||
<article class="col-md-4">
|
||||
<a href="{% pageurl block %}">
|
||||
<header>
|
||||
<h4>{{ block.trans_title }}</h4>
|
||||
</header>
|
||||
<div class="image">
|
||||
{% image block.feed_image fill-300x300 %}
|
||||
</div>
|
||||
<header>
|
||||
<h3>{{ block.trans_title }}</h3>
|
||||
</header>
|
||||
</a>
|
||||
</article>
|
||||
{% endfor %}
|
||||
|
|
|
@ -5,16 +5,20 @@
|
|||
<div class="row infoblocks">
|
||||
{% for block in page.trans_infos %}
|
||||
<article class="col-md-4">
|
||||
<a href="{{ block.value.url }}">
|
||||
<div class="image">
|
||||
{% image block.value.photo fill-300x300 %}
|
||||
</div>
|
||||
<header>
|
||||
<h3>{{ block.value.title }}</h3>
|
||||
</header>
|
||||
</a>
|
||||
{{ block.value.summary|richtext }}
|
||||
{% if block.value.action %}
|
||||
<footer>
|
||||
<a href="{{ block.value.url }}" class="btn btn-default">{{ block.value.action }}</a>
|
||||
</footer>
|
||||
{% endif %}
|
||||
</article>
|
||||
{% endfor %}
|
||||
</div>
|
||||
|
|
|
@ -41,6 +41,11 @@ section {
|
|||
}
|
||||
}
|
||||
|
||||
// Article index blocks
|
||||
.article-subcategories article {
|
||||
margin-bottom: 1.5em;
|
||||
}
|
||||
|
||||
// Special article layout
|
||||
.article-page .lead {
|
||||
h2,h3,h4,h5 { text-align: center; }
|
||||
|
|
Loading…
Reference in a new issue