digitalglarus: blog_item, added style.
Signed-off-by: rscnt <rascnt@gmail.com>
This commit is contained in:
parent
434d614d8f
commit
6bc4d5a6a2
1 changed files with 30 additions and 20 deletions
|
@ -1,22 +1,32 @@
|
||||||
{% load i18n thumbnail %}
|
{% load i18n thumbnail %}
|
||||||
|
|
||||||
<article id="post-{{ post.slug }}" class="post-item">
|
<article id="post-{{ post.slug }}" class="post-item col-lg-12 text-center">
|
||||||
<header>
|
{% if image and post.main_image %}
|
||||||
<h3><a href="{% url 'digitalglarus:blog-detail' post.slug %}">{{ post.title }}</a></h3>
|
<div class="blog-visual">
|
||||||
{% block blog_meta %}
|
{% thumbnail post.main_image post.full_image_options.size crop=post.full_image_options.crop upscale=post.full_image_options.upscale subject_location=post.main_image.subject_location as thumb %}
|
||||||
{% include "glarus_blog/includes/blog_meta.html" %}
|
<img src="{{ post.main_image.url }}" alt="{{ post.main_image.default_alt_text }}" class="img-responsive img-border img-full" />
|
||||||
{% endblock %}
|
</div>
|
||||||
</header>
|
{% endif %}
|
||||||
{% if image and post.main_image %}
|
<header>
|
||||||
<div class="blog-visual">
|
{% block blog_meta %}
|
||||||
{% thumbnail post.main_image post.thumbnail_options.size crop=post.thumbnail_options.crop upscale=post.thumbnail_options.upscale subject_location=post.main_image.subject_location as thumb %}
|
{# include "glarus_blog/includes/blog_meta.html" #}
|
||||||
<img src="{{ thumb.url }}" alt="{{ post.main_image.default_alt_text }}" width="{{ thumb.width }}" height="{{ thumb.height }}" />
|
{% endblock %}
|
||||||
</div>
|
<h2>
|
||||||
{% endif %}
|
<a href="{% url 'digitalglarus:blog-detail' post.slug %}">
|
||||||
<div class="blog-lead">
|
{{ post.title }}
|
||||||
{{ post.abstract| safe }}
|
</a>
|
||||||
</div>
|
<br>
|
||||||
<footer class="read-more">
|
<small>
|
||||||
<a href="{% url 'digitalglarus:blog-detail' post.slug %}">{% trans "read more" %} »</a>
|
{{ post.date_created }}
|
||||||
</footer>
|
</small>
|
||||||
|
</h2>
|
||||||
|
</header>
|
||||||
|
<div class="blog-lead text-center">
|
||||||
|
<p>
|
||||||
|
{{ post.abstract| safe }}
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
<footer class="read-more">
|
||||||
|
<a class="lead" href="{% url 'digitalglarus:blog-detail' post.slug %}">{% trans "read more" %} »</a>
|
||||||
|
</footer>
|
||||||
</article>
|
</article>
|
Loading…
Reference in a new issue