escape char bs
This commit is contained in:
2
.github/workflows/neocities.yml
vendored
2
.github/workflows/neocities.yml
vendored
@@ -44,7 +44,7 @@ jobs:
|
|||||||
- 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: ${{ matrix.value.source }}
|
source: notes/${{ matrix.value.dest }}.md
|
||||||
output: public/posts/${{ matrix.value.time }}_${{ matrix.value.dest }}.html
|
output: public/posts/${{ matrix.value.time }}_${{ matrix.value.dest }}.html
|
||||||
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
|
||||||
|
@@ -2,9 +2,13 @@
|
|||||||
t='['
|
t='['
|
||||||
for entry in notes/*
|
for entry in notes/*
|
||||||
do
|
do
|
||||||
|
echo $entry
|
||||||
filename=$(basename "$entry" .md)
|
filename=$(basename "$entry" .md)
|
||||||
timestamp=`git log --follow --format=%ad --date=format:'%Y-%m-%d' -- $entry`
|
echo $filename
|
||||||
t+="{\"source\"=\"$entry\",\"dest\"=\"$filename\",\"time\"=\"$timestamp\"},"
|
timestamp=`git log --format=%ad --date=format:'%Y-%m-%d' -- $entry`
|
||||||
|
echo $timestamp
|
||||||
|
t+="{\"dest\"=\"$filename\",\"time\"=\"$timestamp\"},"
|
||||||
|
echo $t
|
||||||
done
|
done
|
||||||
echo "value=${t%?} ]"
|
echo "value=${t%?} ]"
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user