SCSS -> SASS
This commit is contained in:
parent
6d58962e08
commit
abd9c07ac8
13 changed files with 134 additions and 140 deletions
|
@ -1,11 +1,18 @@
|
|||
{% macro render_blog_post(post, from_index=false) %}
|
||||
<article class="center">
|
||||
{% set summary = post.body.html.split('<!-- readmore -->') %}
|
||||
<article class="blog-post center">
|
||||
<h1><a href="{{ post|url }}">{{ post.title }}</a></h1>
|
||||
<div class="info">
|
||||
Published on {{ post.pub_date }} with <a href="#">no comments.</a>
|
||||
</div>
|
||||
<div class="content">
|
||||
{{ post.body }}
|
||||
{% if from_index and summary|length > 1 %}
|
||||
{{ summary[0] }}
|
||||
<p class="text-right"><a href="{{ post|url }}">Read more</a></p>
|
||||
{% else %}
|
||||
{{ post.body }}
|
||||
{% endif %}
|
||||
</div>
|
||||
<hr class="light">
|
||||
</article>
|
||||
{% endmacro %}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue