Basic display the content of the post

pull/1/head
kirbylife 2019-11-17 16:09:58 -06:00
parent 1832a5bdd5
commit 1435bac8ab
4 changed files with 24 additions and 7 deletions

View File

@ -58,13 +58,19 @@ nav a:hover {
div.container { div.container {
margin: auto; margin: auto;
width: 80%; width: 80%;
min-height: calc(100vh - 9.2em);
}
strong {
font-family: monospace;
font-size: 10px;
} }
footer { footer {
bottom: 0; bottom: 0;
position: fixed;
display: grid; display: grid;
width: 100%; width: 100%;
margin-top: auto;
background-color: #444444; background-color: #444444;
color: #f0f0f0; color: #f0f0f0;
font-family: monospace; font-family: monospace;

View File

@ -45,14 +45,14 @@ article figure img {
grid-area: info; grid-area: info;
} }
strong {
font-family: monospace;
font-size: 10px;
}
div.pagination { div.pagination {
margin-top: 50px; margin-top: 50px;
width: auto; width: auto;
height: 3em; height: 3em;
text-align: center; text-align: center;
} }
div.pagination a {
color: black;
text-decoration: none;
}

View File

@ -26,7 +26,7 @@
<strong>Pages:</strong> <strong>Pages:</strong>
[ [
{% for n in range(start=1, end=total_pages+1) %} {% for n in range(start=1, end=total_pages+1) %}
<a {% if actual_page != n %} href="?page={{ n }}"{% endif %}>página {{ n }}</a>{% if total_pages != n %}, {% endif %} <a {% if actual_page != n %}href="?page={{ n }}"{% endif %}>página {{ n }}</a>{% if total_pages != n %}, {% endif %}
{% endfor %} {% endfor %}
] ]
</div> </div>

View File

@ -0,0 +1,11 @@
{% extends "base" %}
{% block title %}{% endblock title %}
{% block content %}
<h1><strong>Title: </strong>{{ post.title }}</h1>
<strong>Content:</strong>
<article>
{{ post.content | split(pat="\n") | join(sep="----------") }}
</article>
{% endblock content %}