pyratelog

personal blog
git clone git://git.pyratebeard.net/pyratelog.git
Log | Files | Refs | README

commit e053d28b32d5ad9bf8630da1418604140173b168
parent 0f934801ffb0040be629e2eb5d9b5eb4c7c37a59
Author: pyratebeard <root@pyratebeard.net>
Date:   Thu, 17 Nov 2022 21:29:35 +0000

as_a_matter_of_course

Diffstat:
Mentry/as_a_matter_of_course.md | 7+++++--
1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/entry/as_a_matter_of_course.md b/entry/as_a_matter_of_course.md @@ -55,9 +55,10 @@ git add "${POST}" git commit -S -m "${TITLE}" ``` -``` -#!/bin/bash +The `preview` script was written as sometimes I like to see what the post looks like in the browser, especially when I put pictures in. It is useful to read through in the browser as well, I have caught a number of spelling mistakes and poorly worded sentences that way. +To do this the script creates a temporary directory and copies in the post in question, the template file for `pandoc`, and my custom css +``` # use arg as title and set post file path TITLE=$1 POST="entry/${TITLE}.md" @@ -72,7 +73,9 @@ cp post_template.html style.css demo/ # small change to post_template for stylesheet sed -i 's%\.\./%%' demo/post_template.html +``` +``` # generate html file pandoc -s \ --template=demo/post_template.html \