Skip to content

Commit 8d379f4

Browse files
committed
style: remove forced italics, refine metadata format, and increase spacing
1 parent b45622a commit 8d379f4

File tree

2 files changed

+12
-5
lines changed

2 files changed

+12
-5
lines changed

docs/stylesheets/extra.css

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,11 @@
22

33
body {
44
font-family: "Courier Prime", monospace !important;
5-
font-style: italic !important;
65
font-weight: 400 !important;
76
}
87

98
.md-typeset {
109
font-family: "Courier Prime", monospace !important;
11-
font-style: italic !important;
1210
font-weight: 400 !important;
1311
}
1412

@@ -20,4 +18,13 @@ code {
2018
.md-typeset hr {
2119
border-bottom: 2px solid #666;
2220
opacity: 1;
21+
margin: 3em 0;
22+
}
23+
24+
.post-meta {
25+
font-size: 0.85em;
26+
color: #666;
27+
margin-top: -1em;
28+
margin-bottom: 1.5em;
29+
font-style: italic;
2330
}

generate_index.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -130,13 +130,13 @@ def generate_index():
130130
post_url = generate_post_url(post['date'], post['slug'])
131131

132132
# Post title (linked)
133-
index_content += f"### [{post['title']}]({post_url})\n"
133+
index_content += f"### [{post['title']}]({post_url})\n\n"
134134

135135
# Date and tags
136-
index_content += f"**{date_str}**"
136+
index_content += f'<p class="post-meta">{date_str}'
137137
if tags_str:
138138
index_content += f" • {tags_str}"
139-
index_content += "\n\n"
139+
index_content += "</p>\n\n"
140140

141141
# Excerpt
142142
if post['excerpt']:

0 commit comments

Comments
 (0)