forked from barryclark/jekyll-now
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpost_template.html
More file actions
91 lines (89 loc) · 2.42 KB
/
post_template.html
File metadata and controls
91 lines (89 loc) · 2.42 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
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>{title} - Advait Raykar</title>
<link rel="stylesheet" href="/new-style.css">
<style>
.post-content {{
margin: var(--spacing) 0;
}}
.post-content img {{
max-width: 100%;
height: auto;
margin: 1rem 0;
}}
.post-content h1,
.post-content h2,
.post-content h3 {{
margin: 2rem 0 1rem;
}}
.post-content p {{
margin-bottom: 1rem;
}}
.post-content ul,
.post-content ol {{
margin: 1rem 0;
padding-left: 2rem;
}}
.post-content blockquote {{
margin: 1rem 0;
padding-left: 1rem;
border-left: 3px solid var(--accent-color);
color: var(--secondary-color);
}}
.post-content code {{
background: #f5f5f5;
padding: 0.2rem 0.4rem;
border-radius: 3px;
font-size: 0.9em;
}}
.post-content pre code {{
display: block;
padding: 1rem;
overflow-x: auto;
}}
.post-header {{
text-align: center;
margin: var(--spacing) 0;
}}
.post-date {{
color: var(--secondary-color);
margin-top: 0.5rem;
}}
</style>
</head>
<body>
<nav>
<div class="container">
<a href="/" class="nav-brand">Advait Raykar</a>
<div class="nav-links">
<a href="/blog">Blog</a>
<a href="/books">Reviews</a>
<a href="/about">About</a>
</div>
</div>
</nav>
<main class="container">
<article>
<header class="post-header">
<h1>{title}</h1>
<div class="post-date">{date}</div>
</header>
<div class="post-content">
{content}
</div>
</article>
</main>
<footer>
<div class="container">
<p> 2024 Advait Raykar</p>
<div class="social-links">
<a href="mailto:advait.raykar@gmail.com">Email</a>
<a href="https://github.com/hallicopter" target="_blank">GitHub</a>
</div>
</div>
</footer>
</body>
</html>