More experimenting with post list format
All checks were successful
/ weblog.lol (push) Successful in 12s

This commit is contained in:
Gordon Pedersen 2024-05-13 15:48:10 +10:00
parent d73d49a3f0
commit 516ff669d6
2 changed files with 10 additions and 25 deletions

View file

@ -63,7 +63,7 @@ tags: Blog,
]>> ]>>
Titleless title length: 15 words Titleless title length: 10 words
// Truncation appendix: […] // Truncation appendix: […]
// Title format: <h1><a href="$permalink">$title</a></h1> // Title format: <h1><a href="$permalink">$title</a></h1>
@ -96,21 +96,9 @@ Recent posts format: <<[
;; --------------------- ;; ---------------------
Post list format: <<[ Post list format: <<[
[post:begin]<article> <div id="post-list">
<aside class="post-info"> [post:begin]<article><a href="$location">$title</a></article>[post:end]
<a href="$location"><i class="fa-solid fa-clock"></i> <time class="dt-published" datetime="$date">$date</time></a> </div>]>>
</aside>
<i data-emoji="$emoji"></i>
$body
<aside class="post-info">
<a class="status_url" href="$status_url" target="_blank"><i class="omg-icon omg-prami"></i> via status.lol</a>
<a class="external_url" href="$external_url" target="_blank"><i class="omg-icon omg-fediverse"></i> Interact on the Fediverse</a>
</aside>
<aside class="post-tags">
$tags
</aside>
</article>[post:end]]
>>
;; Page list {page-list} ;; Page list {page-list}
@ -142,24 +130,20 @@ Search results format: <<[
;; ----------- ;; -----------
Tag path: /tag/ Tag path: /tag/
// Tag page template: Tag Template Tag page template: Home
Tags format: <<[ Tags format: <<[
[tag:begin]<a class="tag" href="$tag_location">$tag</a>[tag:end] [tag:begin]<a class="tag" href="$tag_location">$tag</a>[tag:end]
]>> ]>>
Tag page format: <<[ Tag page format: <<[
<h2>Posts tagged with “$tag”</h2> <h2>Posts tagged with <span class="tag">$tag</tag></h2>
<ul> [tag:begin]<article><a href="$location">$title</a></article>[tag:end]
[tag:begin]<li><a href="$location">$title</a></li>[tag:end]
</ul>
]>> ]>>
Tag listing path: /tags Tag listing path: /tags
// Tag listing template: Tag Listing Template // Tag listing template: Tag Listing Template
// Note: tag listing order can be "alphabetical", "ascending", or "descending" where alphabetical sorts by the tag name and ascending/descending sorts by the count of entries with that tag // Note: tag listing order can be "alphabetical", "ascending", or "descending" where alphabetical sorts by the tag name and ascending/descending sorts by the count of entries with that tag
Tag listing order: alphabetical Tag listing order: descending
Tag listing format: <<[ Tag listing format: <<[
<h2>Tags</h2> <h2>Tags</h2>
<ul> [tag:begin]<a class="tag" href="$location">$tag ($count)</a>[tag:end]
[tag:begin]<li><a href="$location">$tag</a> ($count)</li>[tag:end]
</ul>
]>> ]>>

View file

@ -2,6 +2,7 @@
type: page type: page
location: /blog location: /blog
title: Post List title: Post List
template: Home
--- ---
{post-list} {post-list}