Add body to bib.ini

Signed-off-by: HackerNCoder <hackerncoder@encryptionin.space>
This commit is contained in:
HackerNCoder 2023-06-11 17:04:36 +00:00
parent 236c783e6d
commit faed1190a0
4 changed files with 26 additions and 3 deletions

View file

@ -58,6 +58,19 @@ header nav ul li a:hover {
color: #ADD7F6;
}
.page h2 {
margin-bottom: 2rem;
}
h2.page-title {
margin-bottom: 0;
}
.page p {
margin-top: 0;
margin-bottom: 2rem;
}
.list-none {
list-style: none;
}

View file

@ -1,3 +1,7 @@
_model: bib
---
title: Korea
title: Korea
---
body:
See also [North Korean Archives and Library](https://sites.google.com/view/northnkaal).

View file

@ -6,6 +6,10 @@ label = {{ this.title }}
label = Title
type = string
[fields.body]
label = Body
type = markdown
[children]
model = book
order_by = title
order_by = title

View file

@ -1,7 +1,9 @@
{% extends "layout.html" %}
{% block title %}{{ this.title }}{% endblock %}
{% block body %}
<h2>{{ this.title }}</h2>
{% if this.body %}<h2 class="page-title">{{ this.title }}</h2>
{{ this.body }}
{% else %}<h2>{{ this.title }}</h2>{% endif %}
<ul class="list-none">
{% for post in this.children %}
<li class="bib">