diff options
| author | Danilo M. <danix@danix.xyz> | 2026-04-30 08:58:27 +0200 |
|---|---|---|
| committer | Danilo M. <danix@danix.xyz> | 2026-04-30 08:58:27 +0200 |
| commit | 26840ef7057e42bd4d7aa02201a121f9ac47515d (patch) | |
| tree | ebd63cc380670256eef62b8551ef8922dab0e8fb /layouts/partials/sidebar.html | |
| parent | 504b0cb102d87530cd1363cc00f5ca75e093e219 (diff) | |
| download | danixxyz-theme-26840ef7057e42bd4d7aa02201a121f9ac47515d.tar.gz danixxyz-theme-26840ef7057e42bd4d7aa02201a121f9ac47515d.zip | |
fix: read excerpt frontmatter param in article listings
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Diffstat (limited to 'layouts/partials/sidebar.html')
| -rw-r--r-- | layouts/partials/sidebar.html | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/layouts/partials/sidebar.html b/layouts/partials/sidebar.html index 5562215..2047c12 100644 --- a/layouts/partials/sidebar.html +++ b/layouts/partials/sidebar.html @@ -77,7 +77,7 @@ <ul class="space-y-3"> {{ range $related }} {{ $articleType := .Params.type | default "life" }} - {{ $excerpt := .Description | default .Summary }} + {{ $excerpt := .Params.excerpt | default .Description | default .Summary }} <li class="pl-3 border-l-2" style="border-color: var(--type-{{ $articleType }});" |
