Commit d6fa2485fa

d6fa2485fa7fa9c74f8882f1f66ddd7584645d40

parent: 2dc229207a

Unsigned

cmc <hello@cleberg.net> · 2025-10-15 04:20 UTC

update theme

Layout: unified · split

build.py +2 −3
@@ -162,7 +162,7 @@ def get_recent_posts_html(content_dir="./content/blog", num_posts=3):
162162 if title and date_str and slug:
163163 try:
164164 date_obj = datetime.strptime(date_str, "%Y-%m-%d")
165 date_full = date_obj.strftime("%B %d, %Y")
165 date_full = date_obj.strftime("%Y-%m-%d")
166166 except ValueError:
167167 # Skip files with invalid date format
168168 continue
@@ -186,7 +186,7 @@ def get_recent_posts_html(content_dir="./content/blog", num_posts=3):
186186 # Build HTML lines
187187 lines = []
188188 for post in recent:
189 lines.append('\t<div>')
189 lines.append('\t<div class="post">')
190190 lines.append(
191191 f'\t\t<time datetime="{post["date_str"]}">{post["date_full"]}</time>'
192192 )
@@ -194,7 +194,6 @@ def get_recent_posts_html(content_dir="./content/blog", num_posts=3):
194194 f'\t\t\t<a href="/blog/{post["slug"]}.html">{post["title"]}</a>'
195195 )
196196 lines.append("\t</div>")
197 lines.append("\t<br>")
198197
199198 return "\n".join(lines)
200199
content/about/index.org +1 −1
@@ -1,7 +1,7 @@
11#+title: About
22#+slug: index
33
4Hey, I'm */~cmc/*.
4Hey, I'm Christian.
55
66I'm a technology audit manager, working on financial statement audits (SOX/MAR),
77SOC 1-3 reports, and other attestations for KPMG.
theme/static/styles.css +93 −22
@@ -1,16 +1,73 @@
1:root {
2 --bg: #fafafa;
3 --bg-light: #f0f0f0;
4 --fg: #1b2229;
5 --fg-light: #383a42;
6 --link: #014980;
7 --code: #e45649;
8}
9
110body {
2 max-width: 50em;
3 margin: 1.5rem;
11 background-color: var(--bg);
12 color: var(--fg-light);
13 font-family: Menlo, Consolas, Monaco, Adwaita Mono, Liberation Mono, Lucida Console, monospace;
14 font-size: 0.9rem;
15 line-height: 1.4rem;
16 margin: 1.5rem;
17 max-width: 45em;
18}
19
20a {
21 padding: 0 0.15rem;
22 text-decoration: none;
23}
24
25a,a:active {
26 color: var(--link);
27}
28
29a:hover {
30 background-color: var(--link);
31 color: var(--bg);
32}
33
34h1,h2,h3,h4,h5,h6 {
35 color: var(--fg);
36 font-size: 1rem;
37 text-transform: uppercase;
38}
39
40nav {
41 align-items: center;
42 display: flex;
43 justify-content: space-around;
44 width: 100%;
445}
546
647nav ul {
7 list-style-type: none;
8 display: flex;
9 padding: 0;
48 display: flex;
49 list-style-type: none;
50 margin: 0;
51 padding: 0;
52 width: 100%;
1053}
1154
1255nav ul li {
13 margin-right: 0.5rem;
56 height: 100%;
57 margin-bottom: 0.5rem;
58 margin-right: 0.5rem;
59 text-align: center;
60}
61
62blockquote {
63 background-color: var(--bg-light);
64 border-left: 8px solid var(--link);
65 margin: 1rem 0;
66 padding: 0.5rem 1rem;
67}
68
69blockquote p {
70 margin: 0;
1471}
1572
1673img {
@@ -19,11 +76,15 @@ img {
1976}
2077
2178table {
22 border: 1px solid #111;
79 border: 1px dotted var(--fg);
2380 border-collapse: collapse;
2481 width: 100%;
2582}
2683
84colgroup, thead, tbody {
85 border: 1px dotted var(--fg);
86}
87
2788pre,
2889pre>code,
2990code {
@@ -31,31 +92,41 @@ code {
3192}
3293
3394pre {
34 border: 1px solid #111;
95 border: 1px dotted var(--fg);
3596 margin: 0.5rem 0;
36 padding: 0.5rem;
3797 overflow-x: auto;
98 padding: 0.5rem;
3899}
39100
40101time {
41 display: block;
102 margin-right: 0.5rem;
42103}
43104
44105:not(pre)>code {
45 color: #f00;
106 color: var(--code);
46107}
47108
48@media (prefers-color-scheme: dark) {
49 body {
50 background-color: #222;
51 color: #eee;
52 }
53
54 a {
55 color: #add8e6;
56 }
109.post {
110 align-items: flex-start;
111 display: flex;
112 margin: 0.5rem 0;
113}
114
115.post time {
116 margin-right: 1rem;
117}
118
119footer {
120 margin: 1rem 0;
121}
57122
58 pre {
59 border-color: #eee;
123@media (prefers-color-scheme: dark) {
124 :root {
125 --bg: #000000;
126 --bg-light: #1B2229;
127 --fg: #DFDFDF;
128 --fg-light: #BBC2CF;
129 --link: #047ACE;
130 --code: #FF6C6B;
60131 }
61132}
\ No newline at end of file
theme/templates/base.html +7 −7
@@ -19,18 +19,18 @@
1919<body>
2020 <nav aria-label="site-nav" role="navigation">
2121 <ul>
22 <li><a href="/">Home</a></li>
23 <li><a href="/about/">About</a></li>
24 <li><a href="/blog/">Blog</a></li>
25 <li><a href="/services/">Services</a></li>
22 <li><a href="/">/home</a></li>
23 <li><a href="/about/">/about</a></li>
24 <li><a href="/blog/">/blog</a></li>
25 <li><a href="/services/">/services</a></li>
2626 </ul>
2727 </nav>
2828 <main>{% block main %}{% endblock %}</main>
2929 <footer>
30 <a href="https://stats.uptimerobot.com/OwOWs7HU0z">Status</a> &middot;
30 <a href="https://stats.uptimerobot.com/OwOWs7HU0z">status</a> &middot;
3131 <a href="https://git.cleberg.net/cleberg.net.git" target="_blank"
32 rel="noopener">Source</a> &middot;
33 <a href="/feed.xml">RSS</a>
32 rel="noopener">source</a> &middot;
33 <a href="/feed.xml">rss</a>
3434 </footer>
3535</body>
3636</html>
theme/templates/blog.html +2 −3
@@ -10,11 +10,10 @@ main %}
1010</p>
1111<br>
1212{% for post in posts %}
13<div>
13<div class="post">
1414 <time datetime='{{ post.date | strftime("%Y-%m-%d") }}'
15 >{{ post.date|strftime("%B %d, %Y") }}</time
15 >{{ post.date|strftime("%Y-%m-%d") }}</time
1616 >
1717 <a href='{{ url_for("blog", slug=post.slug) }}'>{{ post.title }}</a>
1818</div>
19<br>
2019{% endfor %} {% endblock %}
theme/templates/index.html +2 −1
@@ -1,6 +1,6 @@
11{% extends "base.html" %} {% block main %}
22<section>
3 <h1><i>Hi, I'm Christian.</i></h1>
3 <h1><i>christian cleberg</i></h1>
44 <blockquote>
55 <b>shouganai</b>
66 <br>[sho-ga-n-eye] | しょうがない
@@ -12,5 +12,6 @@
1212 <h2>Recent Posts</h2>
1313 <!-- BEGIN_POSTS -->
1414 <!-- END_POSTS -->
15 <p><a href="/blog/">All Posts &rarr;</a></p>
1516</section>
1617{% endblock %}
theme/templates/post.html +1 −1
@@ -12,7 +12,7 @@
1212 <h1>{{ post.title }}</h1>
1313 {% if post.date is defined %}
1414 <time datetime='{{ post.date|strftime("%Y-%m-%d") }}'
15 >{{ post.date|strftime("%A, %B %d, %Y %H:%M:%S") }}</time
15 >{{ post.date|strftime("%Y-%m-%d %H:%M:%S") }}</time
1616 >
1717 {% endif %}
1818 </section>