diff options
| author | EuAndreh <eu@euandre.org> | 2020-10-11 10:39:56 -0300 |
|---|---|---|
| committer | EuAndreh <eu@euandre.org> | 2020-10-11 10:39:56 -0300 |
| commit | 143e7c7d683a37eb21a7fdbeec031f95c3c695a6 (patch) | |
| tree | 73ab6acf4b23cefeab19e3027c1d4e31d4d15a74 | |
| parent | Update fake-symlinks.sh with placeholder templates and more projects (diff) | |
| download | dotfiles-143e7c7d683a37eb21a7fdbeec031f95c3c695a6.tar.gz dotfiles-143e7c7d683a37eb21a7fdbeec031f95c3c695a6.tar.xz | |
Update pastebin.sh helper to new layout
| -rwxr-xr-x | scripts/ad-hoc/pastebin.sh | 7 |
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 --- |
