personal blog
git clone git://
Log | Files | Refs | README

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


Mentry/ | 7+++++--
1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/entry/ b/entry/ @@ -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 \