core: simplify code
This commit is contained in:
@ -25,11 +25,11 @@ body * {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.image-container {
|
||||
.picture-container {
|
||||
margin-top: 10px;
|
||||
}
|
||||
|
||||
.image-container-element {
|
||||
.picture-container-element {
|
||||
margin-top: 0px;
|
||||
}
|
||||
|
||||
@ -57,7 +57,7 @@ body * {
|
||||
}
|
||||
|
||||
.navigation,
|
||||
.meta-image {
|
||||
.meta-picture {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
justify-content: space-between;
|
||||
|
@ -7,28 +7,28 @@
|
||||
|
||||
<body>
|
||||
<div class="navigation">
|
||||
{% if prev %}
|
||||
<a href={{ prev }}>Prev</a>
|
||||
{% if page.prev %}
|
||||
<a href="../{{ page.prev.name }}/page.html">Prev</a>
|
||||
{% endif %}
|
||||
{% if next %}
|
||||
<a class="next" href={{ next }}>Next</a>
|
||||
{% if page.next %}
|
||||
<a class="next" href="../{{ page.next.name }}/page.html">Next</a>
|
||||
{% endif %}
|
||||
</div>
|
||||
{% if readme %}
|
||||
{% if page._readme.exist() %}
|
||||
<div class="readme">
|
||||
<div class="readme-content">
|
||||
{{readme}}
|
||||
{{page._render_readme()}}
|
||||
</div>
|
||||
</div>
|
||||
{% endif %}
|
||||
{% for image in images %}
|
||||
<div class="image-container">
|
||||
<div class="image-container-element">
|
||||
<img src='{{ image[1] }}'>
|
||||
<div class="meta-image">
|
||||
<a href="{{ image[0] }}">Large</a>
|
||||
{% if image|length > 2 %}
|
||||
<a class="export" href="{{ image[2] }}">export file</a>
|
||||
{% for picture in page._pictures %}
|
||||
<div class="picture-container">
|
||||
<div class="picture-container-element">
|
||||
<img src='{{ picture.get_small().get_name() }}'>
|
||||
<div class="meta-picture">
|
||||
<a href="{{ picture._large }}">Large</a>
|
||||
{% if picture._export_file.exist() %}
|
||||
<a class="export" href="{{ picture._export_file }}">export file</a>
|
||||
{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
|
Reference in New Issue
Block a user