Fix bib.html indentation
Signed-off-by: HackerNCoder <hackerncoder@encryptionin.space>
This commit is contained in:
parent
cfee06aaa5
commit
54c93d8dd7
|
@ -1,17 +1,20 @@
|
||||||
{% extends "layout.html" %}
|
{% extends "layout.html" %}
|
||||||
{% block title %}{{ this.title }}{% endblock %}
|
{% block title %}{{ this.title }}{% endblock %}
|
||||||
{% block body %}
|
{% block body %}
|
||||||
{% if this.body %}<h2 class="page-title">{{ this.title }}</h2>
|
{% if this.body %}
|
||||||
{{ this.body }}
|
<h2 class="page-title">{{ this.title }}</h2>
|
||||||
{% else %}<h2>{{ this.title }}</h2>{% endif %}
|
{{ this.body }}
|
||||||
<ul class="list-none">
|
{% else %}
|
||||||
|
<h2>{{ this.title }}</h2>
|
||||||
|
{% endif %}
|
||||||
|
<ul class="list-none">
|
||||||
{% for post in this.children %}
|
{% for post in this.children %}
|
||||||
<li class="bib">
|
<li class="bib">
|
||||||
<span class="bib-title">{{ post.title }}</span>
|
<span class="bib-title">{{ post.title }}</span>
|
||||||
<span class="bib-orig">(<a href="{{ post.orig }}">{{ post.orig.host }}</a>{% if post.cache %}, <a href="/lib/cache{{ post.parent.path }}/{{ post.cache }}">cached</a>{% endif %})</span><br>
|
<span class="bib-orig">({% if post.orig %}<a href="{{ post.orig }}">{{ post.orig.host }}</a>{% if post.cache %}, {% endif %}{% endif %}{% if post.cache %}<a href="/lib/cache{{ post.parent.path }}/{{ post.cache }}">cached</a>{% endif %})</span><br>
|
||||||
{% if post.author %}<span class="bib-author">by {{ post.author }}</span><br>{% endif %}
|
{% if post.author %}<span class="bib-author">by {{ post.author }}</span><br>{% endif %}
|
||||||
{% if post.publisher %}<span class="bib-publisher">{{ post.publisher}}, </span>{% endif %}<span class="bib-pubdate">{{ post.pub_date }}</span>
|
{% if post.publisher %}<span class="bib-publisher">{{ post.publisher}}, </span>{% endif %}<span class="bib-pubdate">{{ post.pub_date }}</span>
|
||||||
</li>
|
</li>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</ul>
|
</ul>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
{% include 'nav.html' %}
|
{% include 'nav.html' %}
|
||||||
</header>
|
</header>
|
||||||
<div class="page">
|
<div class="page">
|
||||||
{% block body %}{% endblock %}
|
{% block body %}{% endblock %}
|
||||||
</div>
|
</div>
|
||||||
<footer>
|
<footer>
|
||||||
</footer>
|
</footer>
|
||||||
|
|
Loading…
Reference in a new issue