image templates
This commit is contained in:
26
templates/post_detail_test.html
Normal file
26
templates/post_detail_test.html
Normal file
@@ -0,0 +1,26 @@
|
||||
{% extends "base.html" %} {% block title %}{{ post.title }} - Simple Blog
|
||||
Template{% endblock %} {% block content %} {% from
|
||||
"components/post_renderer.html" import render_test %} {% from
|
||||
"components/comment_renderer.html" import render_comment %}
|
||||
<div class="row">
|
||||
<div class="col-lg-12">
|
||||
<h1 class="text-3xl font-bold mb-8">{{ post.title }}</h1>
|
||||
<p class="lead">{{ post.subtitle }}</p>
|
||||
<p>
|
||||
<span class="glyphicon glyphicon-time"></span> Posted on {{ post.date }}
|
||||
</p>
|
||||
{{ render_test(post) }}
|
||||
<div class="post-actions">
|
||||
<a href="{{ url_for('home') }}" class="btn btn-default btn-custom"
|
||||
>← Back to Posts</a
|
||||
>
|
||||
</div>
|
||||
|
||||
<hr style="margin-top: 25px; margin-bottom: 10px" />
|
||||
{% include 'leave_comment.html' %}
|
||||
|
||||
<hr />
|
||||
{{render_comment(comments)}}
|
||||
</div>
|
||||
</div>
|
||||
{% endblock %}
|
||||
5
templates/posts/post_2.html
Normal file
5
templates/posts/post_2.html
Normal file
@@ -0,0 +1,5 @@
|
||||
{% for block in post.content %} {% if block.type == "image" %} {% include
|
||||
"components/image.html" with src=url_for('content_image_files',
|
||||
filename=block.src) %} {% elif block.type == "text" %}
|
||||
<p>{{ block.value }}</p>
|
||||
{% endif %} {% endfor %}
|
||||
Reference in New Issue
Block a user