_layouts/blog.html in appscms-tools-theme-1.9.1 vs _layouts/blog.html in appscms-tools-theme-1.9.2
- old
+ new
@@ -18,44 +18,61 @@
</div>
<div class="main-content">
{{content}}
</div>
<div class="row">
- {% for post in paginator.posts %}
- <div class="col-lg-4 col-md-6 mb-4 card-group">
- <div class="card h-100">
- <a href="{{ post.url }}">
- <img src="{{ post.image }}" loading="lazy" height="215px" width="100%" class="card-img-top"
- alt="{{post.title}}" {%- if site.crossorigin -%} crossorigin {%- endif -%}>
- </a>
- <div class="card-body">
- <a href="{{ post.url }}" class="anchor_link">
- <h4 class="card-title mb-4">{{ post.title }}</h4>
- </a>
- </div>
- {%- include authors/authors.html -%}
- <div class="card-footer bg-white">
- <div class="wrapfooter">
- {% if post.author %}
- <span class="meta-footer-thumb">
- <img class="author-thumb" loading="lazy" src="{{ image }}" alt="{{ authorName }}"
- {%- if site.crossorigin -%} crossorigin {%- endif -%}>
- </span>
- {% endif %}
+ {%- if site.monumetricId -%}
+ <div class="col-md-9 mx-auto">
+ <div class="row">
+ {%- endif -%}
+ {% for post in paginator.posts %}
+ <div class="
+ {%- if site.monumetricId -%}
+ col-md-6 mb-4 card-group
+ {%- else -%}
+ col-lg-4 col-md-6 mb-4 card-group
+ {%- endif -%}
+
+ ">
+ <div class="card h-100">
+ <a href="{{ post.url }}">
+ <img src="{{ post.image }}" loading="lazy" height="215px" width="100%"
+ class="card-img-top" alt="{{post.title}}" {%- if site.crossorigin -%}
+ crossorigin {%- endif -%}>
+ </a>
+ <div class="card-body">
+ <a href="{{ post.url }}" class="anchor_link">
+ <h4 class="card-title mb-4">{{ post.title }}</h4>
+ </a>
+ </div>
+ {%- include authors/authors.html -%}
+ <div class="card-footer bg-white">
+ <div class="wrapfooter">
+ {% if post.author %}
+ <span class="meta-footer-thumb">
+ <img class="author-thumb" loading="lazy" src="{{ image }}"
+ alt="{{ authorName }}" {%- if site.crossorigin -%} crossorigin {%- endif
+ -%}>
+ </span>
+ {% endif %}
- <span class="author-meta">
- <span class="post-name">
- <a target="_blank" href="/blog">{{authorName}}</a>
- </span><br>
- <span class="post-date">{{post.date | date_to_string }}</span>
- </span>
- <span class="post-read-more "><a class="text-dark" href="{{ post.url }}"
- title="Read Story">Read More</a></span>
+ <span class="author-meta">
+ <span class="post-name">
+ <a target="_blank" href="/blog">{{authorName}}</a>
+ </span><br>
+ <span class="post-date">{{post.date | date_to_string }}</span>
+ </span>
+ <span class="post-read-more "><a class="text-dark" href="{{ post.url }}"
+ title="Read Story">Read More</a></span>
+ </div>
+ </div>
</div>
</div>
+ {% endfor %}
+ {%- if site.monumetricId -%}
</div>
</div>
- {% endfor %}
+ {%- endif -%}
</div>
{%- include paginationBlogPage.html -%}
</div>
{% include section/count.html %}
\ No newline at end of file