sbs

A Simple Blogging System.
git clone https://git.sr.ht/~jbauer/sbs
Log | Files | Refs | README | LICENSE

commit e302daf80f1c2e6f0d9b4342d64d82ed96ae5663
parent 3adaa4ebb247cc53bc9eea2d12352fda8fb3aa9a
Author: Jake Bauer <jbauer@paritybit.ca>
Date:   Mon, 14 Feb 2022 02:45:09 -0500

Decide against author, date, and css insertion

This is a simple blog so all CSS will come from style.css. Therefore no
special handling of a CSS metadata tag is needed.

Author and date are not applicable to every page of a blog, only posts.
Therefore, those metadata tags will only be used inside of blog posts as
variables.

Diffstat:
Msbs | 5-----
1 file changed, 0 insertions(+), 5 deletions(-)

diff --git a/sbs b/sbs @@ -55,15 +55,10 @@ for file in "$@"; do mkdir -p "static/$subDir" # Extract metadata from the markdown document - author=$(lowdown -X author "$file") title=$(lowdown -X title "$file") - date=$(lowdown -X date "$file") - css=$(lowdown -X css "$file") meta=$(lowdown -X summary "$file") # Build and process the output document - # TODO: author and date insertion - # TODO: css file addition lowdown $buildOptions "$file" \ | cat "templates/header.html" - "templates/footer.html" \ | sed "s/<title>.*<\/title>/<title>$title - $siteName<\/title>/" \