+finalizing new post about muh cola

This commit is contained in:
shockrah
2021-12-30 23:37:45 -08:00
parent 40648cfcbc
commit 531852d46c
12 changed files with 139 additions and 0 deletions

16
scripts/new-post.sh Normal file
View File

@@ -0,0 +1,16 @@
#!/bin/bash
[[ "$1" = "" ]] && echo No filename given for new post\! && exit 1
file="$1"
cat << EOF > "$file"
---
title: $(basename "$file")
date: $(date '+%F')
draft: false
description:
category: article
image:
---
EOF

View File

@@ -1,4 +1,5 @@
#!/bin/sh
set -x
# Build to optimize images and not much else if im being honest
mkdir -p output/