Remove class=page div
This commit is contained in:
parent
3ff9b48373
commit
660f26443b
|
@ -16,11 +16,11 @@ a:hover {
|
||||||
color: #33bbdf;
|
color: #33bbdf;
|
||||||
}
|
}
|
||||||
|
|
||||||
div.page {
|
main {
|
||||||
padding: 0 20px 0;
|
padding: 0 20px 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
div.page ul {
|
ul {
|
||||||
padding-left: 3vw;
|
padding-left: 3vw;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,24 +1,22 @@
|
||||||
{% extends "layout.html" %}
|
{% extends "layout.html" %}
|
||||||
{% block title %}{{ this.title }}{% endblock %}
|
{% block title %}{{ this.title }}{% endblock %}
|
||||||
{% block body %}
|
{% block body %}
|
||||||
<div class="page">
|
|
||||||
{% if this.body %}
|
{% if this.body %}
|
||||||
<h2 class="page-title">{{ this.title }}</h2>
|
<h2 class="page-title">{{ this.title }}</h2>
|
||||||
{{ this.body }}
|
{{ this.body }}
|
||||||
{% else %}
|
{% else %}
|
||||||
<h2>{{ this.title }}</h2>
|
<h2>{{ this.title }}</h2>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<ul class="list-none">
|
<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>
|
||||||
{% if post.epub %}<span class="bib-orig">{% for item in post.epub %}[{% set urls = item.split(", ") %}{% for url in urls %}{% if "http" in url %}<a href="{{ url }}">{{ url.split('://')[1].split('/')[0] }}</a>{% else %}<a href="/lib/epub/{{ url }}">EPUB</a>{% endif %}{% if not loop.last %}, {% endif %}{% endfor %}] {% endfor %}</span>{% endif %}
|
{% if post.epub %}<span class="bib-orig">{% for item in post.epub %}[{% set urls = item.split(", ") %}{% for url in urls %}{% if "http" in url %}<a href="{{ url }}">{{ url.split('://')[1].split('/')[0] }}</a>{% else %}<a href="/lib/epub/{{ url }}">EPUB</a>{% endif %}{% if not loop.last %}, {% endif %}{% endfor %}] {% endfor %}</span>{% endif %}
|
||||||
{% if post.orig %}<span class="bib-orig">{% for item in post.orig %}({% set urls = item.split(", ") %}{% for url in urls %}{% if "http" in url %}<a href="{{ url }}">{{ url.split('://')[1].split('/')[0] }}</a>{% else %}<a href="/lib/cache/{{ url }}">cached</a>{% endif %}{% if not loop.last %}, {% endif %}{% endfor %}) {% endfor %}</span>{% endif %}<br>
|
{% if post.orig %}<span class="bib-orig">{% for item in post.orig %}({% set urls = item.split(", ") %}{% for url in urls %}{% if "http" in url %}<a href="{{ url }}">{{ url.split('://')[1].split('/')[0] }}</a>{% else %}<a href="/lib/cache/{{ url }}">cached</a>{% endif %}{% if not loop.last %}, {% endif %}{% endfor %}) {% endfor %}</span>{% endif %}<br>
|
||||||
{% if post.subtitle %}<span class="bib-small-txt">{{ post.subtitle }}</span><br>{% endif %}
|
{% if post.subtitle %}<span class="bib-small-txt">{{ post.subtitle }}</span><br>{% endif %}
|
||||||
{% if post.author %}<span class="bib-small-txt">by {{ post.author }}</span><br>{% endif %}
|
{% if post.author %}<span class="bib-small-txt">by {{ post.author }}</span><br>{% endif %}
|
||||||
{% if post.publisher %}<span class="bib-small-txt italics">{{ post.publisher}}, </span>{% endif %}<span class="bib-small-txt italics">{{ post.pub_date }}</span>
|
{% if post.publisher %}<span class="bib-small-txt italics">{{ post.publisher}}, </span>{% endif %}<span class="bib-small-txt italics">{{ post.pub_date }}</span>
|
||||||
</li>
|
</li>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
Loading…
Reference in a new issue