This repository has been archived by the owner on Feb 17, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
news.html
88 lines (80 loc) · 2.23 KB
/
news.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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
---
layout: page
---
<style>
a.news-item-wrapper {
display: block;
margin-bottom: 25px;
box-shadow: 0 1px 1px 0 rgba(60,64,67,.08),0 1px 3px 1px rgba(60,64,67,.16);
color: #373151;
text-decoration: none;
font-family: "nta", Arial, sans-serif;
font-size: 16px;
line-height: 1.25;
}
a.news-item-wrapper:hover {
background: #ebe9e8;
}
a.news-item-wrapper:active {
outline: 3px solid #20c997;
}
div.news-item-internal {
position: relative;
min-height: 130px;
display: flex;
padding: 10px 15px 10px 130px;
border-left: 10px solid #1D70B8;
justify-content: space-between;
flex-direction: column;
}
div.news-item-icon-wrapper {
position: absolute;
top: 15px;
left: 15px;
}
div.news-item-content {
flex-grow: 1;
}
div.news-item-title {
font-size: 20px;
font-weight: 500;
}
div.news-item-excerpt {
font-size: 16px;
font-weight: 400;
padding: 10px 0;
}
div.news-item-date {
padding-right: 15px;
padding-top: 7px;
padding-bottom: 7px;
border-top: 1px dotted rgb(203, 201, 205);
margin-right: -15px;
margin-bottom: -10px;
color: #717171;
font-size: 18px;
font-weight: 400;
}
@media (max-width: 768px) {
div.news-item-internal {
padding: 10px 15px;
}
div.news-item-icon-wrapper {
display: none;
}
}
</style>
{% for post in site.posts %}
<a class="news-item-wrapper" href="{{ post.url | prepend: site.baseurl }}">
<div class="news-item-internal">
<div class="news-item-icon-wrapper">
<img src="{{ post.icon | default: "/assets/images/news_stock.png" }}" width="100px" height="100px"/>
</div>
<div class="news-item-content">
<div class="news-item-title">{{ post.headline }}</div>
<div class="news-item-excerpt">{{ post.excerpt | strip_html | normalize_whitespace | escape }}</div>
</div>
<div class="news-item-date">{{ post.date | date_to_long_string: "ordinal" }}</div>
</div>
</a>
{% endfor %}