site

scripts to generate personal blog and git repositories

git clone https://9o.is/git/site.git

commit ed6f4c0874ea018e96168448ac0190cdefa3768a
parent 3de5cfae342fb780aeb140552c7733f1fba23520
Author: Jul <jul@9o.is>
Date:   Wed,  6 May 2026 15:26:25 +0800

include article description in blog feed

Diffstat:
Massets/style.css | 14++++++++++++++
Mtemplates/index.html/header.html | 2+-
Mtemplates/index.html/item.html | 7+++++--
3 files changed, 20 insertions(+), 3 deletions(-)

diff --git a/assets/style.css b/assets/style.css @@ -286,6 +286,20 @@ main ul > li { margin: var(--spacing) 0; } +main.blog-posts { + article { + margin: calc(4 * var(--spacing)) 0; + + h2 { + display: inline; + } + + p { + margin-top: calc(4 * var(--spacing)); + } + } +} + main.git { table { font-size: var(--text-sm); diff --git a/templates/index.html/header.html b/templates/index.html/header.html @@ -7,7 +7,7 @@ </head> <body> %{partial_nav} - <main> + <main class="blog-posts"> <header class="main"> <h1>Blog Posts</h1> <p>${description}</p> diff --git a/templates/index.html/item.html b/templates/index.html/item.html @@ -1,4 +1,7 @@ <li> - <time>${created}</time> - <a href="${filename}">${title}</a> + <article> + <time>${created}</time> + <h2><a href="${filename}">${title}</a></h2> + <p>${description}</p> + </article> </li>