-
Notifications
You must be signed in to change notification settings - Fork 44
Expand file tree
/
Copy pathindex.html
More file actions
44 lines (38 loc) · 1.29 KB
/
index.html
File metadata and controls
44 lines (38 loc) · 1.29 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
---
layout: default
nav-class: dark
title: Latest News | The C++ Alliance
---
<!-- News -->
<section class="section news-index">
<div class="news-container">
<div class='section-title'>
<h2 class='header text-xl'>News</h2>
<h2 class='header-shadow'>News</h2>
</div>
<a class="rss" href="{{ site.baseurl }}/feed.xml">
<img alt="RSS feed" class="icon-size" src="{{ site.baseurl }}/images/icons/rss.svg" >
</a>
{% if paginator %}
{% assign posts = paginator.posts %}
{% else %}
{% assign posts = site.posts %}
{% endif %}
{% for post in posts %}
<div class='news-wrapper'>
<span class='news-date text-xs'>{{ post.date | date: "%m/%d/%Y"}}</span>
<div class='flex-row'>
<div class='news-text-wrapper'>
<a class='news-title text-m' href="{{ site.baseurl }}{{ post.url }}">{{ post.title }}</a>
<p class='text-xxs'>{{ post.content | strip_html | truncate: 500 }}</p>
</div>
{% if post.hero-image %}
<img class='news-image' src="{{site.baseurl}}/images/posts/{{ post.hero-image}}">
{% endif %}
<a class='text-xxs news-link' href="{{ site.baseurl }}{{ post.url }}">Continue Reading</a>
</div>
</div>
{% endfor %}
{% include paginator.html %}
</div>
</section>