Generate card from banner if present. Use page/section description instead of config if available (fixes #51 and #50)

This commit is contained in:
daudix
2024-08-26 06:34:24 +03:00
parent cb58a187bd
commit 4392844fc6
6 changed files with 23 additions and 7 deletions

View File

@ -7,7 +7,7 @@ updated = "2024-06-21"
[taxonomies]
tags = ["Demo", "Test"]
[extra]
banner = "quill.png#pixels"
banner = "blog/the-quill-of-duck/quill.png"
toc = true
trigger = "This page contains blackjack and hookers, and bad jokes such as this one."
disclaimer = """
@ -27,6 +27,10 @@ Recommended banner dimensions are 2:1 aspect ratio and 1920x960 resolution.
Other sizes will also work, but will be cut off at the bottom/won't be high enough.
{% end %}
{% alert(note=true) %}
The path to the banner should be the same as the resulting path to the post, e.g. `blog/the-quill-of-duck/quill.png`. If the folder name has a timestamp, remove it. You can simply open the post in your browser and copy the path from the URL.
{% end %}
## The what?
This is a Duckquill post example, this post has nothing but a bunch of text and random formatting, acting like a demo.