diff --git a/.github/workflows/neocities.yml b/.github/workflows/neocities.yml index e85b2ae..d61d183 100644 --- a/.github/workflows/neocities.yml +++ b/.github/workflows/neocities.yml @@ -43,12 +43,12 @@ jobs: steps: - uses: actions/checkout@v4 - run: | - touch ${{ github.workspace}}/public/posts/${{ matrix.value.time }}_${ matrix.value.dest }} + touch ${{ github.workspace.source }} - name: markdown to html uses: jaywcjlove/markdown-to-html-cli@main with: - source: "notes/${{ matrix.value.dest }}.md" - output: public/posts/${{ matrix.value.time }}_${{ matrix.value.dest }}.html + source: ${{ matrix.value.source }} + output: ${{ matrix.value.dest }} github-corners: https://github.com/jaywcjlove/markdown-to-html-cliA - name: generate posts.html entries run: diff --git a/compile.sh b/compile.sh index 535fb0e..14ec813 100755 --- a/compile.sh +++ b/compile.sh @@ -4,7 +4,7 @@ for entry in notes/* do filename=$(basename "$entry" .md) timestamp=`git log --format=%ad --date=format:'%Y-%m-%d' -- $entry` - t+="{\"dest\":\"$filename\",\"time\":\"$timestamp\"}," + t+="{\"source\":\"$entry\"\"dest\":\"public/posts/$filename_$timestamp\",\"time\":\"$timestamp\"}," done echo "${t%?}]"