-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathblog.html
More file actions
62 lines (58 loc) · 2.19 KB
/
blog.html
File metadata and controls
62 lines (58 loc) · 2.19 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
57
58
59
60
61
62
---
title: Blog
layout: main
---
{% assign years = site.posts | group_by_exp: "post", "post.date | date: '%Y'" %}
<section class="container">
{% for year in years %}
{% if year.name == "2024" %}
<div style="margin-bottom: 1em;">
<div class="window">
<div class="title-bar">
<div class="title-bar-text">Notice!</div>
</div>
<div class="window-body">
<p>All the posts below here were brought over from the NCX Blog, so just keep that in mind!</p>
</div>
</div>
</div>
{% else %}
{% endif %}
<div class="row" style="margin-bottom:2rem">
{% for post in year.items %}
{% if post.hidden == null %}
<div class="col">
<div class="window" style="margin-bottom: 1em;">
<div class="title-bar">
<div class="title-bar-text">{{ post.title }}</div>
<div class="title-bar-controls">
<button aria-label="Close"></button>
</div>
</div>
<div class="window-body">
<fieldset style="padding: 1em">
<legend>Description</legend>
{% if post.icon == null %}
{% else %}
<img src="{{ post.icon }}" class="align-self-center" style="float: right; max-height:100px; margin-left: 3%">
{% endif %}
{% if post.desc == null %}
<p>{{ post.excerpt }}</p>
{% else %}
<p>{{ post.desc }}</p>
{% endif %}
</fieldset>
<button onclick="window.location.pathname = '{{ post.url }}'">Read More</button>
</div>
<div class="status-bar">
<p class="status-bar-field">Author: {{ post.author}}</p>
<p class="status-bar-field">Posted: {{ post.date | date: "%B %d, %Y"}}</p>
</div>
</div>
</div>
{% else %}
{% endif %}
{% endfor %}
</div>
{% endfor %}
</section>