add rows cat

This commit is contained in:
2018-08-27 14:35:10 +02:00
parent 6fb89c5eb1
commit ee476d4c59
10 changed files with 35 additions and 23 deletions
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
-1
View File
@@ -46,7 +46,6 @@ function catprojets() {
$txt.css({
"height" : $Htxt + "px"
});
});
}
+10 -8
View File
@@ -55,28 +55,30 @@
right: 0;
width: calc(100% / 3);
height: calc(100% - 90px);
padding: 0 30px 0 30px;
padding: 20px 30px 0px 30px;
overflow-x: auto;
h3{
margin: 20px 0 10px 0;
margin: 0px 0 10px 0;
}
}
.taxonomy{
width: auto;
width: calc(100% / 3);
height: auto;
background: white;
position:fixed;
bottom: 0;
border-top: 2px solid black;
span{
display: flex;
flex-wrap: wrap;
margin: auto 0;
.row{
border-top: 2px solid black;
display: flex;
flex-wrap: wrap;
justify-content: space-between;
a{
padding: 10px 30px;
border-bottom: 2px solid black;
margin: 10px 30px;
}
}
}
}
}
}
@@ -6,6 +6,7 @@
{% set hero_image_name = page.header.hero_image %}
{% block hero %}
{% if hero_image_name %}
{% set hero_image = page.media[hero_image_name] %}
{% set content %}
@@ -1,7 +1,15 @@
{% if page.taxonomy.tag %}
<span class="tags">
{% for tag in page.taxonomy.tag %}
<a class="label label-rounded {{ label_style ?: 'label-secondary' }} p-category" href="{{ blog.url|rtrim('/') }}/tag{{ config.system.param_sep }}{{ tag }}#body-wrapper">{{ tag }}</a>
{% endfor %}
{% for tag in page.taxonomy.tag|batch(4) %}
<div class="row">
{% for tag in tag %}
<a href="{{ blog.url|rtrim('/') }}/tag{{ config.system.param_sep }}{{ tag }}">{{ tag }}</a>
{% endfor %}
</div>
{% endfor %}
</span>
{% endif %}