+finalizing new post about muh cola

This commit is contained in:
shockrah committed 2021-12-30 23:37:45 -08:00
1 parent 40648cfcbc
commit 531852d46c
12 files changed
+139

No files matched your search

+16
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
+1
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/