Skip to content

Commit e0c6a5e

Browse files
committed
Add pinned post functionality and styling
1 parent fc3fc8b commit e0c6a5e

File tree

7 files changed

+89
-21
lines changed

7 files changed

+89
-21
lines changed

_pages/blog.md

Lines changed: 23 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,28 @@ permalink: /blog/
55
---
66

77
<div class="post-list">
8-
{% for post in site.posts %}
8+
<!-- Pinned posts first -->
9+
{% assign pinned_posts = site.posts | where: "pinned", true %}
10+
{% for post in pinned_posts %}
11+
<article class="pinned-post">
12+
<span class="pinned-label">📌 Pinned</span>
13+
<small>{{ post.date | date_to_string }}</small>
14+
<h2><a href="{{ post.url }}">{{ post.title | markdownify | remove: '<p>' | remove: '</p>' }}</a></h2>
15+
<p>{{ post.excerpt }}</p>
16+
{% if post.tags.size > 0 %}
17+
<div class="post-tags">
18+
{% for tag in post.tags %}
19+
<a href="{{site.baseurl}}/archive.html#{{tag | slugize}}" class="post-tag">#{{ tag }}</a>
20+
{% endfor %}
21+
</div>
22+
{% endif %}
23+
</article>
24+
{% endfor %}
25+
26+
27+
<!-- Regular posts (excluding pinned ones) -->
28+
{% assign regular_posts = site.posts | where: "pinned", nil %}
29+
{% for post in regular_posts %}
930
<article>
1031
<small>{{ post.date | date_to_string }}</small>
1132
<h2><a href="{{ post.url }}">{{ post.title | markdownify | remove: '<p>' | remove: '</p>' }}</a></h2>
@@ -19,4 +40,4 @@ permalink: /blog/
1940
{% endif %}
2041
</article>
2142
{% endfor %}
22-
</div>
43+
</div>

_posts/2025-02-09-jekyll.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ layout: post
33
title: "Using an LLM to revamp my site"
44
date: 2025-02-09
55
tags: ai tech
6+
pinned: true
67
---
78

89
Recently, I revamped this site to use Jekyll and Markdown instead of handwritten HTML. I used Claude to do it. Overall, I found that Claude is good for troubleshooting when you already have some domain experience.

_site/assets/main.css

Lines changed: 19 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

_site/assets/main.css.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

_site/blog/index.html

Lines changed: 25 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,31 @@
3838

3939
<div class="post-content">
4040
<div class="post-list">
41+
<!-- Pinned posts first -->
42+
43+
44+
<article class="pinned-post">
45+
<span class="pinned-label">📌 Pinned</span>
46+
<small>09 Feb 2025</small>
47+
<h2><a href="/2025/02/09/jekyll.html">Using an LLM to revamp my site
48+
</a></h2>
49+
<p><p>Recently, I revamped this site to use Jekyll and Markdown instead of handwritten HTML. I used Claude to do it. Overall, I found that Claude is good for troubleshooting when you already have some domain experience.</p>
50+
</p>
51+
52+
<div class="post-tags">
53+
54+
<a href="/archive.html#ai" class="post-tag">#ai</a>
55+
56+
<a href="/archive.html#tech" class="post-tag">#tech</a>
57+
58+
</div>
59+
60+
</article>
61+
62+
63+
64+
<!-- Regular posts (excluding pinned ones) -->
65+
4166

4267
<article>
4368
<small>23 May 2025</small>
@@ -103,23 +128,6 @@ <h2><a href="/2025/02/17/montecristo.html">Finally reading <em>The Count of Mont
103128

104129
</article>
105130

106-
<article>
107-
<small>09 Feb 2025</small>
108-
<h2><a href="/2025/02/09/jekyll.html">Using an LLM to revamp my site
109-
</a></h2>
110-
<p><p>Recently, I revamped this site to use Jekyll and Markdown instead of handwritten HTML. I used Claude to do it. Overall, I found that Claude is good for troubleshooting when you already have some domain experience.</p>
111-
</p>
112-
113-
<div class="post-tags">
114-
115-
<a href="/archive.html#ai" class="post-tag">#ai</a>
116-
117-
<a href="/archive.html#tech" class="post-tag">#tech</a>
118-
119-
</div>
120-
121-
</article>
122-
123131
<article>
124132
<small>27 Jan 2025</small>
125133
<h2><a href="/2025/01/27/trollope.html">Reading Trollope for the first time

_site/feed.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<?xml version="1.0" encoding="utf-8"?><feed xmlns="http://www.w3.org/2005/Atom" ><generator uri="https://jekyllrb.com/" version="4.4.1">Jekyll</generator><link href="http://localhost:4000/feed.xml" rel="self" type="application/atom+xml" /><link href="http://localhost:4000/" rel="alternate" type="text/html" /><updated>2025-06-06T11:03:07-04:00</updated><id>http://localhost:4000/feed.xml</id><title type="html">Devin Logan, Technical Writer and Editor</title><subtitle></subtitle><author><name> </name></author><entry><title type="html">Getting into technical writing: a primer</title><link href="http://localhost:4000/2025/05/23/primer.html" rel="alternate" type="text/html" title="Getting into technical writing: a primer" /><published>2025-05-23T00:00:00-04:00</published><updated>2025-05-23T00:00:00-04:00</updated><id>http://localhost:4000/2025/05/23/primer</id><content type="html" xml:base="http://localhost:4000/2025/05/23/primer.html"><![CDATA[<p>Over the past few years I’ve talked to a number of people who are interested in getting into the technical writing field. After years of meaning to do this, I finally took some time to write up the thoughts and resources I typically share with people looking to get into the field. This is far from a comprehensive guide and notably doesn’t include much specific resume or cover letter advice.</p>
1+
<?xml version="1.0" encoding="utf-8"?><feed xmlns="http://www.w3.org/2005/Atom" ><generator uri="https://jekyllrb.com/" version="4.4.1">Jekyll</generator><link href="http://localhost:4000/feed.xml" rel="self" type="application/atom+xml" /><link href="http://localhost:4000/" rel="alternate" type="text/html" /><updated>2025-06-06T15:15:03-04:00</updated><id>http://localhost:4000/feed.xml</id><title type="html">Devin Logan, Technical Writer and Editor</title><subtitle></subtitle><author><name> </name></author><entry><title type="html">Getting into technical writing: a primer</title><link href="http://localhost:4000/2025/05/23/primer.html" rel="alternate" type="text/html" title="Getting into technical writing: a primer" /><published>2025-05-23T00:00:00-04:00</published><updated>2025-05-23T00:00:00-04:00</updated><id>http://localhost:4000/2025/05/23/primer</id><content type="html" xml:base="http://localhost:4000/2025/05/23/primer.html"><![CDATA[<p>Over the past few years I’ve talked to a number of people who are interested in getting into the technical writing field. After years of meaning to do this, I finally took some time to write up the thoughts and resources I typically share with people looking to get into the field. This is far from a comprehensive guide and notably doesn’t include much specific resume or cover letter advice.</p>
22

33
<p>I worked as a technical writer at Google for almost 7 years. (And wrote <a href="https://blog.google/inside-google/life-at-google/sowhat-does-technical-writer-actually-do/">this blog post</a> for Google’s The Keyword back in 2021, which captured my own journey into technical writing.) During that time, I interviewed a lot of candidates, including some people who were switching careers. Now, I’m a freelance technical writer and have spent a lot of time refining my resume and applying to jobs.</p>
44

assets/main.scss

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ img {
4646
margin-bottom: 2em;
4747
}
4848

49+
/* TOC styling */
4950
.table-of-contents {
5051
background: #f8f9fa;
5152
border: 1px solid #e9ecef;
@@ -83,3 +84,21 @@ img {
8384
.toc-level-6 {
8485
margin-left: 6rem;
8586
}
87+
88+
/* Pinned post styling */
89+
.pinned-post {
90+
border: 2px dashed #ff8c00;
91+
padding: 1.5rem;
92+
margin-bottom: 2rem;
93+
background-color: #fef9f3;
94+
border-radius: 4px;
95+
}
96+
97+
.pinned-label {
98+
font-size: 0.9em;
99+
color: #ff8c00;
100+
font-weight: bold;
101+
font-style: italic;
102+
display: block;
103+
margin-bottom: 0.5rem;
104+
}

0 commit comments

Comments
 (0)