+finalizing new post about muh cola
This commit is contained in:
16
scripts/new-post.sh
Normal file
16
scripts/new-post.sh
Normal 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,4 +1,5 @@
|
||||
#!/bin/sh
|
||||
set -x
|
||||
|
||||
# Build to optimize images and not much else if im being honest
|
||||
mkdir -p output/
|
||||
|
||||
Reference in New Issue
Block a user