From e5af6b4ca969691a8e830580c281fbf24544d279 Mon Sep 17 00:00:00 2001 From: bvanroll Date: Fri, 25 Apr 2025 22:25:35 +0200 Subject: [PATCH] escape char bs --- .github/workflows/neocities.yml | 2 +- compile.sh | 10 +++++++--- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/.github/workflows/neocities.yml b/.github/workflows/neocities.yml index 32272b4..e05f250 100644 --- a/.github/workflows/neocities.yml +++ b/.github/workflows/neocities.yml @@ -44,7 +44,7 @@ jobs: - name: markdown to html uses: jaywcjlove/markdown-to-html-cli@main with: - source: ${{ matrix.value.source }} + source: notes/${{ matrix.value.dest }}.md output: public/posts/${{ matrix.value.time }}_${{ matrix.value.dest }}.html github-corners: https://github.com/jaywcjlove/markdown-to-html-cliA - name: generate posts.html entries diff --git a/compile.sh b/compile.sh index 73df06e..81a0420 100755 --- a/compile.sh +++ b/compile.sh @@ -2,9 +2,13 @@ t='[' for entry in notes/* do + echo $entry filename=$(basename "$entry" .md) - timestamp=`git log --follow --format=%ad --date=format:'%Y-%m-%d' -- $entry` - t+="{\"source\"=\"$entry\",\"dest\"=\"$filename\",\"time\"=\"$timestamp\"}," + echo $filename + timestamp=`git log --format=%ad --date=format:'%Y-%m-%d' -- $entry` + echo $timestamp + t+="{\"dest\"=\"$filename\",\"time\"=\"$timestamp\"}," + echo $t done -echo "value=${t%?}]" +echo "value=${t%?} ]"