Compare commits
No commits in common. "247afd377a4c7f5225fff889665ea21b3a3b09ba" and "f2309ea7c4df691dc62269f12d5d5b7a77d28bc3" have entirely different histories.
247afd377a
...
f2309ea7c4
6 changed files with 88 additions and 12 deletions
|
@ -31,18 +31,6 @@ header {
|
||||||
text-transform: lowercase;
|
text-transform: lowercase;
|
||||||
}
|
}
|
||||||
|
|
||||||
.post-nav {
|
|
||||||
font-family: monospace;
|
|
||||||
}
|
|
||||||
|
|
||||||
.post-nav .symbol {
|
|
||||||
color: var(--main-bullet-color);
|
|
||||||
}
|
|
||||||
|
|
||||||
.post-nav a {
|
|
||||||
margin: 0 2px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.site-logo {
|
.site-logo {
|
||||||
color: inherit;
|
color: inherit;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
|
|
42
templates/base.html
Normal file
42
templates/base.html
Normal file
|
@ -0,0 +1,42 @@
|
||||||
|
<!doctype html>
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<title>{{ metadata.title }}</title>
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||||
|
<meta charset="UTF-8" />
|
||||||
|
<link
|
||||||
|
href="{{ metadata.style }}"
|
||||||
|
rel="stylesheet"
|
||||||
|
type="text/css"
|
||||||
|
media="all"
|
||||||
|
/>
|
||||||
|
<link
|
||||||
|
href="/static/pygments.css"
|
||||||
|
rel="stylesheet"
|
||||||
|
type="text/css"
|
||||||
|
media="all"
|
||||||
|
/>
|
||||||
|
<link rel="icon" type="image/png" sizes="16x16" href="/static/favicon/favicon-16x16.png">
|
||||||
|
<link rel="icon" type="image/png" sizes="32x32" href="/static/favicon/favicon-32x32.png">
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<div id="container">
|
||||||
|
{% if header %}
|
||||||
|
<header id="header">
|
||||||
|
<center>
|
||||||
|
{{ header | safe }}
|
||||||
|
</center>
|
||||||
|
<hr>
|
||||||
|
</header>
|
||||||
|
{% endif %}
|
||||||
|
{% block content %}{% endblock %}
|
||||||
|
{% if footer %}
|
||||||
|
<footer id="footer">
|
||||||
|
<hr>
|
||||||
|
{{ footer | safe }}
|
||||||
|
</footer>
|
||||||
|
{% endif %}
|
||||||
|
</div>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
|
|
9
templates/basic.html
Normal file
9
templates/basic.html
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
{% extends "base.html" %}
|
||||||
|
|
||||||
|
{% block content %}
|
||||||
|
{% if metadata.show_title %}
|
||||||
|
{% include "title.html" %}
|
||||||
|
{% endif %}
|
||||||
|
{{ content | safe }}
|
||||||
|
{% endblock %}
|
||||||
|
|
17
templates/page.html
Normal file
17
templates/page.html
Normal file
|
@ -0,0 +1,17 @@
|
||||||
|
{% extends "base.html" %} {% block content %}
|
||||||
|
|
||||||
|
{% if metadata.show_title %}
|
||||||
|
{% include "title.html" %}
|
||||||
|
{% if metadata.date %}
|
||||||
|
<center>
|
||||||
|
<time class="post-date" datetime="{{ metadata.date | safe }}"
|
||||||
|
>{{ metadata.date | safe}}</time>
|
||||||
|
</center>
|
||||||
|
{% endif %}
|
||||||
|
<hr>
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
|
<article>{{ content | safe }}</article>
|
||||||
|
{% endblock %}
|
||||||
|
|
||||||
|
|
19
templates/post_list.html
Normal file
19
templates/post_list.html
Normal file
|
@ -0,0 +1,19 @@
|
||||||
|
{% extends "base.html" %} {% block content %}
|
||||||
|
|
||||||
|
{% if metadata.show_title %}
|
||||||
|
{% include "title.html" %}
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
|
<article>{{ content | safe }}</article>
|
||||||
|
|
||||||
|
{% if post_list %}
|
||||||
|
<ul>
|
||||||
|
{% for item in post_list %}
|
||||||
|
<li>
|
||||||
|
<time class="post-list-date" datetime="{{ item.metadata.date | safe }}"
|
||||||
|
>{{ item.metadata.date | safe}}</time>: <a href="/{{ item.url }}"
|
||||||
|
>{{ item.metadata.title }}</a>
|
||||||
|
</li>
|
||||||
|
{% endfor %}
|
||||||
|
</ul>
|
||||||
|
{% endif %} {% endblock %}
|
1
templates/title.html
Normal file
1
templates/title.html
Normal file
|
@ -0,0 +1 @@
|
||||||
|
<center><h1 class="title">{{ metadata.title }}</h1></center>
|
Loading…
Add table
Add a link
Reference in a new issue