aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2020-10-11 10:39:56 -0300
committerEuAndreh <eu@euandre.org>2020-10-11 10:39:56 -0300
commit143e7c7d683a37eb21a7fdbeec031f95c3c695a6 (patch)
tree73ab6acf4b23cefeab19e3027c1d4e31d4d15a74
parentUpdate fake-symlinks.sh with placeholder templates and more projects (diff)
downloaddotfiles-143e7c7d683a37eb21a7fdbeec031f95c3c695a6.tar.gz
dotfiles-143e7c7d683a37eb21a7fdbeec031f95c3c695a6.tar.xz
Update pastebin.sh helper to new layout
-rwxr-xr-xscripts/ad-hoc/pastebin.sh7
1 files changed, 4 insertions, 3 deletions
diff --git a/scripts/ad-hoc/pastebin.sh b/scripts/ad-hoc/pastebin.sh
index d2b06cfe..5d7adb2e 100755
--- a/scripts/ad-hoc/pastebin.sh
+++ b/scripts/ad-hoc/pastebin.sh
@@ -34,7 +34,8 @@ slugify() {
}
SLUG_TITLE="$(slugify "${FULL_TITLE}")"
-OUT="_pastebins/${SLUG_TITLE}.md"
+PASTE_DATE="$(date -I)"
+OUT="_pastebins/${PASTE_DATE}-${SLUG_TITLE}.md"
pushd ~/dev/libre/website > /dev/null
@@ -46,8 +47,8 @@ pushd ~/dev/libre/website > /dev/null
cat <<EOF | vipe | sponge > "${OUT}"
---
title: ${FULL_TITLE}
-date: $(date -I)
-layout: pastebin
+date: ${PASTE_DATE}
+layout: post
lang: en
---