-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathblog.html
executable file
·40 lines (35 loc) · 1.45 KB
/
blog.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
{% extends "base.html" %}
{% import "macros/shared.html" as shared %}
{% import "macros/navbar.html" as nav %}
{% import "macros/footer.html" as foot %}
{% block body %}
<body>
{{ nav::navbar() }}
{% block content %}
<div class="container mb-4">
{{ shared::pagethump(title=section.title, pic="/img/blog-posts-overview-thump.png", subtitle="My Posts")}}
<section id="posts">
<div class="row row-cols-1 row-cols-md-2 g-5 mx-2 my-4">
{% for page in section.pages %}
<div class="col">
<div class="card h-100 blog-cards">
<a href="{{ page.permalink }}">
<img src='{{ get_url(path=page.extra.pic | default(value="/img/image-not-found-fallback-2.jpeg") | safe) }}'
class="card-img-top" alt="Thumpnal of a blog post showing an ai generated image">
</a>
<div class="card-body">
<a href="{{ page.permalink }}">
<h5 class="card-title">{{ page.title }}</h5>
</a>
<p class="card-text">{{ page.description }}.</p>
</div>
</div>
</div>
{% endfor %}
</div>
</section>
{% endblock content %}
</div>
{{ foot::footer() }}
</body>
{% endblock body %}