Add body to bib.ini
Signed-off-by: HackerNCoder <hackerncoder@encryptionin.space>
This commit is contained in:
parent
236c783e6d
commit
faed1190a0
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -1,3 +1,7 @@
|
|||
_model: bib
|
||||
---
|
||||
title: Korea
|
||||
title: Korea
|
||||
---
|
||||
body:
|
||||
|
||||
See also [North Korean Archives and Library](https://sites.google.com/view/northnkaal).
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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">
|
||||
|
|
Loading…
Reference in a new issue