Commit 8ca67823 authored by Alexandr Musikhin's avatar Alexandr Musikhin

fix page for posts

parent 71e0ffa5
Pipeline #22709874 passed with stage
in 1 minute and 41 seconds
......@@ -4,23 +4,23 @@ layout: default
<div class="row justify-content-center">
<div class="col-md-8">
{% if page.category %}
<div class="text-center">
<h2 class="text-muted">Incident report for {{ page.category }}</h2>
</div>
<br>
{% endif %}
<h6>{{ page.date | date: '%B %d, %Y' }}</h6>
{% assign date = page.date | date: '%Y-%m-%d' %}
{% for post in site.posts %}
{% assign ndate = post.date | date: '%Y-%m-%d' %}
{% if date == ndate and page.category == post.category %}
<div class="row small">
<time class="col-md-2 text-muted" datetime="{{ post.date | date_to_xmlschema }}">{{ post.date | date: "%H:%M" }} {{ site.zone }}</time>
<strong class="col-md-10{% if post.status %} text-{{ post.status }}{% endif %}">{{ post.content }}</strong>
</div>
{% endif %}
{% endfor %}
<table class="table">
<tr>
<td style="border-top: 0px;">
<h6>{{ page.date | date: '%B %d, %Y' }}</h6>
{% assign date = page.date | date: '%Y-%m-%d' %}
{% for post in site.posts %}
{% assign ndate = post.date | date: '%Y-%m-%d' %}
{% if date == ndate %}
<div class="row small">
<time class="col-md-2 text-monospace text-muted" datetime="{{ post.date | date_to_xmlschema }}">{{ post.date | date: '%R %z' | slice: 0, 9 }}</time>
<strong class="col-md-10{% if post.status %} text-{{ post.status }}{% endif %}">{{ post.content | remove: '<p>' | remove: '</p>' }}</strong>
</div>
{% endif %}
{% endfor %}
</td>
</tr>
</table>
</div>
</div>
{% include card_footer.html %}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment