all imgs (parts) of document to document.html template
parent
9133512ec1
commit
239bd2cb08
@ -1,31 +0,0 @@
|
||||
<div class="part">
|
||||
|
||||
<div class="img">
|
||||
<img src="{{ imgsrc }}" />
|
||||
<a href="https:{{ fullurl }}">{{ fullurl }}</a>
|
||||
</div>
|
||||
|
||||
<div class="text">
|
||||
{{ text | safe }}
|
||||
</div>
|
||||
|
||||
<div class="metadata">
|
||||
<h3>Metadata</h3>
|
||||
{% for key, valuelist in printout_dict.items() %}
|
||||
<div class="metadata_{{key}}">
|
||||
{% if key == 'Date' %}
|
||||
<span class="key">{{key}}</span>
|
||||
<span class="value">{{valuelist.year}} {{valuelist.month}} {{valuelist.day}}</span>
|
||||
{% elif key == 'page' %}
|
||||
<span class="key">{{key|upper}}</span>
|
||||
<span class="value">{{valuelist}}</span>
|
||||
{% else %}
|
||||
{% if valuelist|length > 0 %}
|
||||
<span class="key">{{key|upper}}</span>
|
||||
<span class="value">{{valuelist | join(", ")}}</span>
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
</div>
|
||||
{% endfor %}
|
||||
</div>
|
||||
</div>
|
Loading…
Reference in New Issue