This commit is contained in:
2025-04-25 23:02:39 +02:00
parent 14143a1de3
commit 5468a935c4
2 changed files with 3 additions and 3 deletions

View File

@@ -49,7 +49,7 @@ jobs:
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:
echo "<li class=\"post\"><a href=\"${{ matrix.value.time }}_${{ matrix.value.dest }}\">${{ matrix.value.dest }}</a></li>" >> public/posts.html echo "<li class=\"post\"><a href=\"${{ matrix.value.dest }}\">${{ matrix.value.name }}</a></li>" >> public/posts.html
deploy: deploy:
needs: [ build ] needs: [ build ]
@@ -59,7 +59,7 @@ jobs:
- name: finish posts.html - name: finish posts.html
run: | run: |
echo "</ul>" >> ${{ github.workspace }}/public/posts.html echo "</ul>" >> ${{ github.workspace }}/public/posts.html
#TODO this turns up empty right now. gotta figure that shit out i think
- name: Deploy to neocities - name: Deploy to neocities
uses: bcomnes/deploy-to-neocities@v1 uses: bcomnes/deploy-to-neocities@v1
with: with:

View File

@@ -7,7 +7,7 @@ do
dest="public/posts/$timestamp" dest="public/posts/$timestamp"
dest+="_$filename" dest+="_$filename"
dest+=".html" dest+=".html"
t+="{\"source\":\"$entry\",\"dest\":\"$dest\",\"time\":\"$timestamp\"}," t+="{\"source\":\"$entry\",\"name\":\"$filename\",\"dest\":\"$dest\",\"time\":\"$timestamp\"},"
done done
echo "${t%?}]" echo "${t%?}]"