From 15ea7ecf1580d08c7d50afe24ff5970bfe5589c1 Mon Sep 17 00:00:00 2001 From: shockrah Date: Mon, 8 Aug 2022 12:00:04 -0700 Subject: [PATCH] + filename fixing --- README.md | 2 +- scripts/new-post.sh | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 97f5da5..a6aa6ef 100644 --- a/README.md +++ b/README.md @@ -9,7 +9,7 @@ here: [shockrah.xyz/posts/hugo](https://shockrah.xyz/posts/hugo/). # Contact -Email: dev@shockrah.xyz +Email: `dev@shockrah.xyz` Mastodon: https://qoto.org/@shockrah diff --git a/scripts/new-post.sh b/scripts/new-post.sh index 290d410..be53d01 100644 --- a/scripts/new-post.sh +++ b/scripts/new-post.sh @@ -4,9 +4,9 @@ file="$1" -cat << EOF | tee "$file" +cat << EOF | tee content/posts/"$file" --- -title: $(basename "$file") +title: $(basename -s .md "$file") date: $(date '+%F') draft: false description: