cleanup
This commit is contained in:
6
.github/workflows/neocities.yml
vendored
6
.github/workflows/neocities.yml
vendored
@@ -43,12 +43,12 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- run: |
|
- run: |
|
||||||
touch ${{ github.workspace}}/public/posts/${{ matrix.value.time }}_${ matrix.value.dest }}
|
touch ${{ github.workspace.source }}
|
||||||
- name: markdown to html
|
- name: markdown to html
|
||||||
uses: jaywcjlove/markdown-to-html-cli@main
|
uses: jaywcjlove/markdown-to-html-cli@main
|
||||||
with:
|
with:
|
||||||
source: "notes/${{ matrix.value.dest }}.md"
|
source: ${{ matrix.value.source }}
|
||||||
output: public/posts/${{ matrix.value.time }}_${{ matrix.value.dest }}.html
|
output: ${{ matrix.value.dest }}
|
||||||
github-corners: https://github.com/jaywcjlove/markdown-to-html-cliA
|
github-corners: https://github.com/jaywcjlove/markdown-to-html-cliA
|
||||||
- name: generate posts.html entries
|
- name: generate posts.html entries
|
||||||
run:
|
run:
|
||||||
|
@@ -4,7 +4,7 @@ for entry in notes/*
|
|||||||
do
|
do
|
||||||
filename=$(basename "$entry" .md)
|
filename=$(basename "$entry" .md)
|
||||||
timestamp=`git log --format=%ad --date=format:'%Y-%m-%d' -- $entry`
|
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
|
done
|
||||||
echo "${t%?}]"
|
echo "${t%?}]"
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user