-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
62 lines (60 loc) · 1.38 KB
/
index.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
---
layout: default
title: Home
---
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>{{ page.title }} | {{ site.title }}</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- Optional: Link to a CSS file for styling -->
<link rel="stylesheet" href="{{ '/assets/css/style.css' | relative_url }}">
<style>
/* Basic styling for clarity */
body {
font-family: Arial, sans-serif;
margin: 0;
padding: 20px;
background-color: #f9f9f9;
}
.post {
background-color: #fff;
padding: 20px;
margin-bottom: 20px;
border-radius: 5px;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.post h2 {
margin-top: 0;
}
.post .date {
color: #888;
font-size: 0.9em;
margin-bottom: 10px;
}
.post-content img {
max-width: 100%;
height: auto;
}
hr {
border: none;
border-top: 1px solid #e0e0e0;
margin: 40px 0;
}
</style>
</head>
<body>
<h1>{{ site.title }}</h1>
<h2>{{ site.description }}</h2>
{% for post in site.posts %}
<div class="post">
<h2><a href="{{ post.url | relative_url }}">{{ post.title }}</a></h2>
<p class="date">{{ post.date | date: "%B %d, %Y" }}</p>
<div class="post-content">
{{ post.content | markdownify }}
</div>
</div>
{% endfor %}
</body>
</html>