-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathblog.html
121 lines (107 loc) · 3.52 KB
/
blog.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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
---
layout: kkblog
title: Blog
---
<style>
@import url('https://fonts.googleapis.com/css2?family=Atkinson+Hyperlegible:ital,wght@0,400;0,700;1,400;1,700&display=swap');
.blackground {
background-color: rgba(0, 0, 0, 0.6);
color: #fff;
padding: 20px;
max-width: 800px;
margin: 20px auto 0;
box-sizing: border-box; /* Ensure padding is included in the total width and height */
}
.blog-post ul {
list-style: none;
padding: 0;
}
.blog-post li {
margin-bottom: 20px;
}
.post-title h1, .post-title h2, .post-title h3, .post-title h4, .post-title h5, .post-title h6 {
margin: 0;
font-size: 1.5em;
word-wrap: break-word; /* Ensure long words break to the next line */
}
.post-date {
font-size: 0.9em;
color: #ccc;
}
.line {
height: 2px;
background: #ffffff;
margin: 10px 0;
}
.blog-post p {
word-wrap: break-word; /* Ensure text wraps within the container */
}
.post-title a {
color: #fff; /* Link color */
text-decoration: none;
transition: color 0.3s ease;
}
.post-title a:hover {
color: #8fbbf3; /* Change this to your desired hover color */
text-decoration: none; /* Optional: add underline on hover */
}
.see-att a {
color: #fff; /* Link color */
text-decoration: none;
transition: color 0.3s ease;
font-family: "Atkinson Hyperlegible", sans-serif;
}
.see-att a:hover {
color: #8fbbf3; /* Change this to your desired hover color */
text-decoration: none; /* Optional: add underline on hover */
font-family: "Atkinson Hyperlegible", sans-serif;
}
.post-date {
font-family: "Atkinson Hyperlegible", sans-serif;
font-weight: 800;
color: #fff;
font-style: normal;
font-size: 20px;
}
.preview-content {
font-family: "Atkinson Hyperlegible", sans-serif;
color: #fff;
font-style: normal;
font-size: 16px;
}
</style>
<div class="blackground">
<h1>Blog</h1>
<div class="blog-post">
<ul>
{% for post in site.posts %}
<li>
<div class="post-header">
<div class="post-title">
<h0><a href="{{ post.url }}">{{ post.title }}</a></h0>
</div>
<div class="post-date">
{{ post.date | date: "%B %d, %Y" }}
</div>
</div>
<div class="line"></div>
<div class="preview-content">
{% capture post_content %}
{{ post.content | strip_html }}
{% endcapture %}
{{ post_content | truncate: 350 }}
{% if post.content contains "<img" %}
<br>
<div class="see-att">
<a href="{{ post.url }}"><strong>See attachments...</strong></a>
</div>
<div class="banner-image">
<img src="{{ post.banner_image_url }}" alt="{{ post.title }}">
</div>
{% endif %}
</div>
</li>
{% endfor %}
</ul>
</div>
</div>