2019-11-17 22:09:58 +00:00
|
|
|
{% extends "base" %}
|
2019-11-18 08:14:29 +00:00
|
|
|
{% block title %}CódigoComentado - {{post.title}}{% endblock title %}
|
2019-11-17 22:09:58 +00:00
|
|
|
|
2019-11-20 21:59:35 +00:00
|
|
|
{% block extracss %}
|
|
|
|
<link href="/static/css/post.css" rel="stylesheet"/>
|
2019-11-21 20:27:03 +00:00
|
|
|
{% if post.content is containing("<code>") %}
|
2019-11-21 20:19:37 +00:00
|
|
|
<link href="/static/css/highlightjs/agate.css" rel="stylesheet"/>
|
2019-11-21 20:27:03 +00:00
|
|
|
{% endif %}
|
2019-11-20 21:59:35 +00:00
|
|
|
{% endblock extracss %}
|
|
|
|
|
2019-11-17 22:09:58 +00:00
|
|
|
{% block content %}
|
2019-11-20 21:59:35 +00:00
|
|
|
<h1 class="title"><strong>Title: </strong>{{ post.title }}</h1>
|
|
|
|
<span class="date"><strong>Date: </strong>{{ post.created_at | date(format="%Y-%m-%d") }}</span>
|
2019-11-17 22:09:58 +00:00
|
|
|
<article>
|
2019-11-21 20:19:37 +00:00
|
|
|
<strong>Content:</strong>
|
|
|
|
{{ post.content | safe }}
|
2019-11-17 22:09:58 +00:00
|
|
|
</article>
|
2019-11-21 20:19:37 +00:00
|
|
|
|
|
|
|
<div class="comments">
|
|
|
|
<h1><strong></strong>Comentarios</h1>
|
|
|
|
</div>
|
2019-11-17 22:09:58 +00:00
|
|
|
{% endblock content %}
|
2019-11-21 20:19:37 +00:00
|
|
|
|
|
|
|
{% block extrajs %}
|
2019-11-21 20:27:03 +00:00
|
|
|
{% if post.content is containing("<code>") %}
|
|
|
|
<script src="/static/js/highlight.pack.js"></script>
|
|
|
|
<script>
|
|
|
|
hljs.initHighlightingOnLoad();
|
|
|
|
</script>
|
|
|
|
{% endif %}
|
2019-11-21 20:19:37 +00:00
|
|
|
{% endblock extrajs %}
|