-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
44 lines (37 loc) · 1.11 KB
/
index.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
41
42
43
44
---
layout: default
title: victorromeo
---
<style>
img.card-img-top {
width: 100%;
height: 5vw;
object-fit:cover;
}
</style>
<div class="card-columns">
{% assign sorted = site.posts | sort: 'title' %}
{% for post in sorted %}
{% assign tags = post.tags | split: ", " %}
{% if post.hidden != true %}
{% if post.thumb or post.image %}
<div class="card">
<img src="{{ post.thumb }}" alt="{{ post.image }}" class="card-img-top">
<div class="card-header">{% if post.type %}<span class="badge badge-warning">{{post.type}}</span> {% endif %}<a href="{{ post.url }}">{{ post.title }}</a></div>
<div class="card-body">
<p class="card-text">{{ post.excerpt }}</p>
<p class="card-text">tags: {{ post.tags | sort | join: ', ' | downcase }}</p>
</div>
</div>
{% else %}
<div class="card">
<div class="card-header"><a href="{{ post.url }}">{{ post.title }}</a></div>
<div class="card-body">
<p class="card-text">{{ post.excerpt }}</p>
<p class="card-text">tags: {{ post.tags | sort | join: ', ' | downcase }}</p>
</div>
</div>
{% endif %}
{% endif %}
{% endfor %}
</div>