_includes/customblog/pageRelatedPosts.html in appscms-tools-theme-4.7.7 vs _includes/customblog/pageRelatedPosts.html in appscms-tools-theme-4.7.8

- old
+ new

@@ -1,88 +1,88 @@ -<section class="related-posts-section"> - <div class="container"> - - <div class="relatedPosts"> - {%- if site.monumetricId and page.url != '/' and page.lang == "en" -%} - - <div class="row"> - <div class="col-md-9 mx-auto"> - {%- endif -%} - <p class="pt-5 pb-0 related_post_heading mb-3">You might also like</p> - {%- if site.monumetricId and page.url != '/' and page.lang == "en" -%} - - </div> - </div> - {%- endif -%} - {% assign file = page.fileName %} - {% assign lang = page.lang %} - {% assign folder = page.folderName %} - {% assign homeData = site.data[folder][lang][file] %} - {% assign blogData= homeData.posts %} - - - - - <div class="row"> - {%- if site.monumetricId and page.url != '/' and page.lang == "en" -%} - - - <div class="col-md-9 mx-auto"> - <div class="row"> - {%- endif -%} - - {% for post in blogData %} - {%- include authors/authors.html-%} - - <div class=" - {%- if site.monumetricId and page.url != '/' and page.lang == " en" -%} 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="/blog/{{ post.url }}"> - <img src="{{ post.image }}" loading="lazy" class="card-img-top" height="auto" - width="100%" alt="{{post.title}}" {%- if site.crossorigin -%} crossorigin {%- endif - -%}> - </a> - <div class="card-body"> - <a class="text-decoration-none text-dark" href="/blog/{{ post.url }}" class="anchor_link"> - <h4 class="card-title mb-4 text-left">{{ post.title }}</h4> - </a> - </div> - <div class="card-footer"> - <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="/blog/{{ post.url }}" - title="Read Story">Read - More</a></span> - </div> - </div> - </div> - </div> - - - - - {% endfor %} - - {%- if site.monumetricId and page.url != '/' and page.lang == "en" -%} - - - </div> - </div> - {%- endif -%} - </div> - </div> - </div> +<section class="related-posts-section"> + <div class="container"> + + <div class="relatedPosts"> + {%- if site.monumetricId and page.url != '/' and page.lang == "en" -%} + + <div class="row"> + <div class="col-md-9 mx-auto"> + {%- endif -%} + <p class="pt-5 pb-0 related_post_heading mb-3">You might also like</p> + {%- if site.monumetricId and page.url != '/' and page.lang == "en" -%} + + </div> + </div> + {%- endif -%} + {% assign file = page.fileName %} + {% assign lang = page.lang %} + {% assign folder = page.folderName %} + {% assign homeData = site.data[folder][lang][file] %} + {% assign blogData= homeData.posts %} + + + + + <div class="row"> + {%- if site.monumetricId and page.url != '/' and page.lang == "en" -%} + + + <div class="col-md-9 mx-auto"> + <div class="row"> + {%- endif -%} + + {% for post in blogData %} + {%- include authors/authors.html-%} + + <div class=" + {%- if site.monumetricId and page.url != '/' and page.lang == " en" -%} 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="/blog/{{ post.url }}"> + <img src="{{ post.image }}" loading="lazy" class="card-img-top" height="auto" + width="100%" alt="{{post.title}}" {%- if site.crossorigin -%} crossorigin {%- endif + -%}> + </a> + <div class="card-body"> + <a class="text-decoration-none text-dark" href="/blog/{{ post.url }}" class="anchor_link"> + <h4 class="card-title mb-4 text-left">{{ post.title }}</h4> + </a> + </div> + <div class="card-footer"> + <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="/blog/{{ post.url }}" + title="Read Story">Read + More</a></span> + </div> + </div> + </div> + </div> + + + + + {% endfor %} + + {%- if site.monumetricId and page.url != '/' and page.lang == "en" -%} + + + </div> + </div> + {%- endif -%} + </div> + </div> + </div> </section> \ No newline at end of file