-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathblog.html
More file actions
56 lines (51 loc) · 1.96 KB
/
blog.html
File metadata and controls
56 lines (51 loc) · 1.96 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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
---
title: Blog
layout: default
---
<head>
<link rel="stylesheet" href="../assets/css/blog.css">
<link rel="preconnect" href="https://rsms.me/">
<link rel="stylesheet" href="https://rsms.me/inter/inter.css">
</head>
<!--TODO: implement article tags & other fancy blog stuff-->
<div class="text-center pt-3">
<h1 class="top-text">NCX Blog</h1>
</div>
<div class="container">
<div class="row" style="margin-bottom:7rem">
{% for post in site.posts %}
<div class="col-xl-4">
<div class="card">
{% if post.icon == null %}
<img src="assets/img/blog/blog-placeholder.png" class="card-img-top blog-img">
{% else %}
<img src="{{ post.icon }}" class="card-img-top blog-img">
{% endif %}
<div class="card-body">
<h4 class="card-title text-start blog-title"><a href="{{ post.url }}">{{ post.title }}</a></h4>
<p class="author-date">{{ post.author }} - {{ post.date | date: "%Y-%m-%d" }}</p>
{% if post.desc == null %}
<p class="card-text">{{ post.excerpt }}</p>
{% else %}
<p class="card-text" style="margin-top: -4.5%"><br>{{ post.desc }}</p>
{% endif %}
<!-- <a href="/_posts/{{ post.title }}" class="btn btn-primary">Read More</a>-->
</div>
</div>
<div style="opacity: 0">.</div>
</div>
{% endfor %}
</div>
</div>
<!--<div class="text-center pt-3">-->
<!-- <h1>Blog</h1>-->
<!-- <p>Articles are listed with the newest on top.</p>-->
<!--</div>-->
<!--<div class="container">-->
<!-- <hr>-->
<!-- {% for post in site.posts %}-->
<!-- <p><a href="{{ post.url }}">{{ post.title }}</a></p>-->
<!-- <p>{{ post.date | date: "%Y-%m-%d" }} ({{ post.author }})</p>-->
<!-- <hr>-->
<!-- {% endfor %}-->
<!--</div>-->