Add subtitle. Allow for multiple origs per ()
Signed-off-by: HackerNCoder <hackerncoder@encryptionin.space>
This commit is contained in:
parent
f803b68bc5
commit
e551166175
|
@ -88,6 +88,10 @@ h2.page-title {
|
|||
font-weight: bold;
|
||||
}
|
||||
|
||||
.bib-subtitle {
|
||||
font-size: 0.9em;
|
||||
}
|
||||
|
||||
.bib-author {
|
||||
font-size: 0.9em;
|
||||
}
|
||||
|
|
|
@ -6,6 +6,10 @@ label = {{ this.title }}
|
|||
label = Title
|
||||
type = string
|
||||
|
||||
[fields.subtitle]
|
||||
label = Subtitle
|
||||
type = string
|
||||
|
||||
[fields.author]
|
||||
label = Author
|
||||
type = string
|
||||
|
@ -29,7 +33,3 @@ type = string
|
|||
[fields.orig]
|
||||
label = Origin URL
|
||||
type = strings
|
||||
|
||||
[fields.cache]
|
||||
label = Cached file name
|
||||
type = string
|
|
@ -11,7 +11,8 @@
|
|||
{% for post in this.children %}
|
||||
<li class="bib">
|
||||
<span class="bib-title">{{ post.title }}</span>
|
||||
<span class="bib-orig">{% if post.orig %}{% for item in post.orig %}({% set urls = item.split(", ") %}<a href="{{ urls[0] }}">{{ urls[0].split('https://')[1].split('/')[0] }}</a>{% if urls[1] %}, <a href="/lib/cache{{ post.parent.path }}/{{ urls[1] }}">cached</a>{% endif %}) {% endfor %}{% endif %}</span><br>
|
||||
{% if post.orig %}<span class="bib-orig">{% for item in post.orig %}({% set urls = item.split(", ") %}{% for url in urls %}{% if "https://" in url %}<a href="{{ url }}">{{ url.split('https://')[1].split('/')[0] }}</a>{% else %}<a href="/lib/cache{{ post.parent.path }}/{{ url }}">cached</a>{% endif %}{% if not loop.last %}, {% endif %}{% endfor %}) {% endfor %}</span><br>{% endif %}
|
||||
{% if post.subtitle %}<span class="bib-subtitle">"{{ post.subtitle }}"</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>
|
||||
</li>
|
||||
|
|
Loading…
Reference in a new issue