40 lines
1.7 KiB
HTML
40 lines
1.7 KiB
HTML
|
|
{% extends "default.html" %}
|
|
|
|
{% block head_includes %}
|
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
{% block content %}
|
|
|
|
<div class="container-fluid content-row mx-auto">
|
|
<div class="row justify-content-start mx-auto">
|
|
{% for content_item in content_items %}
|
|
<div class="d-flex justify-content-center mb-4">
|
|
<div class="card h-100 rounded mx-1 my-3" style="width: 400px;">
|
|
<div class="card-header">
|
|
{% if content_item.image_file %}
|
|
<img src="{{ parent_path }}content/{{ content_item.image_file }}" alt="{{ content_item.title }}" class="card-img-top img-fluid mx-auto d-block object-fit-scale rounded" style="max-height: 200px; width: auto;">
|
|
{% else %}
|
|
<img src="static/images/1x1.png" alt="{{ content_item.title }}" class="card-img-top img-fluid mx-auto d-block object-fit-scale rounded" style="height: 200px; width: auto;">
|
|
{% endif %}
|
|
</div>
|
|
<div class="card-body d-flex flex-column">
|
|
<h5 class="card-title"><a class="text-decoration-none text-body" href="{{ parent_path }}content/{{ content_item.slug}}.html">{{ content_item.title }}</a></h5>
|
|
<p class="card-text mb-3">{{ content_item.preview | safe}}<a href="{{ parent_path }}content/{{ content_item.slug}}.html">... read more</a> </p>
|
|
</div>
|
|
<div class="card-footer">
|
|
{% for item_category in content_item.categories %}
|
|
<small><a href="{{ parent_path }}categories/{{ item_category }}.html" class="text-muted mx-1">{{ item_category }}</a></small>
|
|
{% endfor %}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
{% endfor %}
|
|
</div>
|
|
</div>
|
|
|
|
|
|
{% endblock %} |