post page already

pull/1/head
kirbylife 2019-11-20 15:59:35 -06:00
parent 615ca6c300
commit 2652f1b894
3 changed files with 44 additions and 4 deletions

View File

@ -0,0 +1,36 @@
div.container {
display: grid;
grid-template-columns: 7fr 1fr;
gird-template-rows: 1fr 1fr 1fr;
grid-template-areas:
"title title"
". date"
"content content";
}
.title {
grid-area: title;
margin: 0;
margin-top: 10px;
}
article {
grid-area: content;
}
.date {
grid-area: date;
margin: 2px;
}
pre {
font-family: monospace;
background-color: #444444;
color: white;
padding-top: 0.7em;
padding-right: 0.7em;
padding-bottom: 0.7em;
padding-left: 0.5em;
width: auto;
}

View File

@ -1,11 +1,15 @@
{% extends "base" %} {% extends "base" %}
{% block title %}CódigoComentado - {{post.title}}{% endblock title %} {% block title %}CódigoComentado - {{post.title}}{% endblock title %}
{% block extracss %}
<link href="/static/css/post.css" rel="stylesheet"/>
{% endblock extracss %}
{% block content %} {% block content %}
<h1><strong>Title: </strong>{{ post.title }}</h1> <h1 class="title"><strong>Title: </strong>{{ post.title }}</h1>
<strong>Content:</strong> <span class="date"><strong>Date: </strong>{{ post.created_at | date(format="%Y-%m-%d") }}</span>
<article> <article>
<strong>Content:</strong>
{{ post.content | safe }} {{ post.content | safe }}
</article> </article>
{% endblock content %} {% endblock content %}