Fix blog-post template

This commit is contained in:
PCoder 2019-10-02 19:08:52 +05:30
parent 4af8530948
commit 3740799f86

View file

@ -2,5 +2,34 @@
{% from "macros/blog.html" import render_blog_post %} {% from "macros/blog.html" import render_blog_post %}
{% block title %}{{ this.title }}{% endblock %} {% block title %}{{ this.title }}{% endblock %}
{% block body %} {% block body %}
{{ render_blog_post(this) }} <header class="intro-header" style="{% if this.background_image_url %}background-image: url('{{ this.background_image_url}}');{% else %} background-color: #333; {% endif %}">
<div class="container">
<div class="row">
<div class="col-lg-8 col-lg-offset-2 col-md-10 col-md-offset-1">
<div class="post-heading">
<h1>{{ this.title }}</h1>
<h2 class="subheading">
<p>{{ this.subtitle }}</p>
</h2>
<span class="meta">
Posted on {{ this.pub_date }} by {% if this.twitter_handle %}<a href="https://twitter.com/{{ this.twitter_handle }}">{{ this.author or this.twitter_handle }}</a>{% else %}{{ this.author }} {% endif %}
</span>
</div>
</div>
</div>
</div>
</header>
<div class="container">
<div class="row">
<div class="col-lg-8 col-lg-offset-2 col-md-10 col-md-offset-1">
<div class="app app-blog span8">
<article>
<div class="blog-content">
{{ render_blog_post(this) }}
</div>
</article>
</div>
</div>
</div>
</div>
{% endblock %} {% endblock %}