Change category overview
This commit is contained in:
parent
c028559650
commit
8fe644a993
@ -1,10 +1,16 @@
|
|||||||
.inner.cover {
|
.inner.cover {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
align-items: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
#categories {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: baseline;
|
align-items: baseline;
|
||||||
flex-wrap: wrap;
|
flex-wrap: wrap;
|
||||||
}
|
}
|
||||||
|
|
||||||
.inner.cover > span {
|
#categories span {
|
||||||
width: 33%;
|
width: 33%;
|
||||||
margin-bottom: 10px;
|
margin-bottom: 10px;
|
||||||
}
|
}
|
||||||
|
@ -6,20 +6,23 @@ vim: ts=2 noexpandtab
|
|||||||
{% set active_page = "categories" %}
|
{% set active_page = "categories" %}
|
||||||
{% block content %}
|
{% block content %}
|
||||||
<link href="{{ url_for("static", filename="css/categories.css") }}" rel="stylesheet">
|
<link href="{{ url_for("static", filename="css/categories.css") }}" rel="stylesheet">
|
||||||
{% for category in categories %}
|
<h2 class="headline">Categories</h2>
|
||||||
<span>
|
<div id="categories">
|
||||||
<ul>
|
{% for category in categories %}
|
||||||
<li>
|
<span>
|
||||||
<a href="search?c={{ category }}">{{ category }}</a>
|
<ul>
|
||||||
<ul>
|
<li>
|
||||||
{% for sub_category in categories[category] %}
|
<a href="search?c={{ category }}">{{ category }}</a>
|
||||||
<li>
|
<ul>
|
||||||
<a href="search?s={{ sub_category }}">{{ sub_category }}</a>
|
{% for sub_category in categories[category] %}
|
||||||
</li>
|
<li>
|
||||||
{% endfor %}
|
<a href="search?s={{ sub_category }}">{{ sub_category }}</a>
|
||||||
</ul>
|
</li>
|
||||||
</li>
|
{% endfor %}
|
||||||
</ul>
|
</ul>
|
||||||
</span>
|
</li>
|
||||||
{% endfor %}
|
</ul>
|
||||||
|
</span>
|
||||||
|
{% endfor %}
|
||||||
|
</div>
|
||||||
{% endblock content%}
|
{% endblock content%}
|
||||||
|
Loading…
Reference in New Issue
Block a user