-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathblog.html
More file actions
39 lines (37 loc) · 1.11 KB
/
blog.html
File metadata and controls
39 lines (37 loc) · 1.11 KB
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
---
layout: blog
title: Blog
permalink: /blog
---
<section class="ml-3 mr-3 mt-4 mb-4">
<div class="container is-fullhd">
<ul class="tile is-ancestor">
{% assign does_have = 'nop' %}
{% for post in site.posts %}
{% if post.category == 'blog-post' %}
{% assign does_have = 'has' %}
{% endif %}
{% endfor %}
{% if does_have == 'nop' %}
<li class="tile is-parent has-large-top-gap">
<h1 class="tile is-child is-size-1 has-text-centered">
Nothing to see, move on...<br>
</h1>
</li>
{% else %}
{% for post in site.posts %}
{% if post.category == 'blog-post' %}
<li class="tile is-parent has-small-top-gap">
<a class="tile is-child notification is-primary" href="{{ post.url }}">
<div clas="content">
<p class="title">{{ post.title }}</p>
<p class="content">{{ post.snippet }}</p>
</div>
</a>
</li>
{% endif %}
{% endfor %}
{% endif %}
</ul>
</div>
</section>