Skip to content

Commit cdc5615

Browse files
solrevdevclaude
andcommitted
Add cover image support to blog posts
- Add cover_image front matter field to latest blog post - Create sample SVG cover image for SeedFolder evolution post - Update post.html layout to display cover images when present - Add responsive CSS styles for cover images with mobile optimization - Include hover effects and proper styling for desktop and mobile views 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 55ee944 commit cdc5615

File tree

4 files changed

+105
-0
lines changed

4 files changed

+105
-0
lines changed

_layouts/post.html

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@
44
---
55

66
<div class="post">
7+
{% if page.cover_image %}
8+
<div class="post-cover-image">
9+
<img src="{{ site.baseurl }}{{ page.cover_image }}" alt="{{ page.title }}" class="cover-image">
10+
</div>
11+
{% endif %}
712
<h1 class="post-title">{{ page.title }}</h1>
813
<span class="post-date">{{ page.date | date_to_string }}</span>
914
{{ content }}

_posts/2025-08-20-evolving-seedfolder-with-github-copilot.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ layout: post
33
title: Evolving SeedFolder with GitHub Copilot - From Personal Tool to Multi-Template System
44
description: How GitHub Copilot helped transform a simple dotfile copier into a comprehensive project scaffolding tool with multiple templates and cross-platform support
55
summary: How I used GitHub Copilot to evolve SeedFolder from a dotfile copier into a flexible, multi-template scaffolding tool with cross-platform support, better UX, and CI improvements.
6+
cover_image: /images/seedfolder-evolution-cover.svg
67
tags:
78
- dotnet-global-tools
89
- github-copilot
Lines changed: 58 additions & 0 deletions
Loading

public/css/custom.scss

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,44 @@ kbd {
2222
word-break: inherit;
2323
word-wrap: inherit;
2424
}
25+
26+
/* Cover image styles for blog posts */
27+
.post-cover-image {
28+
margin-bottom: 2rem;
29+
margin-top: -1rem; /* Pull up to reduce spacing */
30+
}
31+
32+
.cover-image {
33+
width: 100%;
34+
height: auto;
35+
max-height: 400px;
36+
object-fit: cover;
37+
border-radius: 8px;
38+
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
39+
transition: transform 0.3s ease;
40+
}
41+
42+
.cover-image:hover {
43+
transform: scale(1.02);
44+
}
45+
46+
/* Responsive adjustments for mobile */
47+
@media (max-width: 768px) {
48+
.post-cover-image {
49+
margin-bottom: 1.5rem;
50+
margin-left: -1rem;
51+
margin-right: -1rem;
52+
}
53+
54+
.cover-image {
55+
border-radius: 0;
56+
max-height: 250px;
57+
}
58+
}
59+
60+
/* Small mobile adjustments */
61+
@media (max-width: 480px) {
62+
.cover-image {
63+
max-height: 200px;
64+
}
65+
}

0 commit comments

Comments
 (0)