white site
This commit is contained in:
64
.github/workflows/neocities.yml
vendored
64
.github/workflows/neocities.yml
vendored
@@ -14,39 +14,39 @@ concurrency:
|
|||||||
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
setup:
|
# setup:
|
||||||
runs-on: ubuntu-latest
|
# runs-on: ubuntu-latest
|
||||||
outputs:
|
# outputs:
|
||||||
matrix: ${{ steps.matrix.outputs.matrix }}
|
# matrix: ${{ steps.matrix.outputs.matrix }}
|
||||||
steps:
|
# steps:
|
||||||
- uses: actions/checkout@v4
|
# - uses: actions/checkout@v4
|
||||||
- name: create matrix
|
# - name: create matrix
|
||||||
id: matrix
|
# id: matrix
|
||||||
run: |
|
# run: |
|
||||||
cd ${{ github.workspace }}
|
# cd ${{ github.workspace }}
|
||||||
test=$(./compile.sh)
|
# test=$(./compile.sh)
|
||||||
echo "matrix=$test" >> $GITHUB_OUTPUT
|
# echo "matrix=$test" >> $GITHUB_OUTPUT
|
||||||
|
#
|
||||||
build:
|
# build:
|
||||||
needs: [ setup ]
|
# needs: [ setup ]
|
||||||
runs-on: ubuntu-latest
|
# runs-on: ubuntu-latest
|
||||||
strategy:
|
# strategy:
|
||||||
matrix:
|
# matrix:
|
||||||
value: ${{fromJSON(needs.setup.outputs.matrix)}}
|
# value: ${{fromJSON(needs.setup.outputs.matrix)}}
|
||||||
steps:
|
# steps:
|
||||||
- uses: actions/checkout@v4
|
# - uses: actions/checkout@v4
|
||||||
#- run: |
|
# #- run: |
|
||||||
# cd ${{ github.workspace }}
|
# # cd ${{ github.workspace }}
|
||||||
# touch ${{ matrix.value.dest }}
|
# # touch ${{ matrix.value.dest }}
|
||||||
- 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: ${{ matrix.value.source }}
|
||||||
output: ${{ matrix.value.dest }}
|
# output: ${{ matrix.value.dest }}
|
||||||
github-corners: https://github.com/jaywcjlove/markdown-to-html-cliA
|
# github-corners: https://github.com/jaywcjlove/markdown-to-html-cliA
|
||||||
|
|
||||||
deploy:
|
deploy:
|
||||||
needs: [ setup, build ]
|
#needs: [ setup, build ]
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- run: npm i markdown-to-html-cli -g
|
- run: npm i markdown-to-html-cli -g
|
||||||
@@ -66,7 +66,7 @@ jobs:
|
|||||||
dest="public/posts/$timestamp"
|
dest="public/posts/$timestamp"
|
||||||
dest+="_$filename"
|
dest+="_$filename"
|
||||||
dest+=".html"
|
dest+=".html"
|
||||||
markdown-to-html --source $entry --output $dest
|
markdown-to-html --markdown-style-theme light --source $entry --output $dest
|
||||||
done
|
done
|
||||||
- name: Deploy to neocities
|
- name: Deploy to neocities
|
||||||
uses: bcomnes/deploy-to-neocities@v1
|
uses: bcomnes/deploy-to-neocities@v1
|
||||||
|
@@ -3,10 +3,10 @@
|
|||||||
|
|
||||||
body {
|
body {
|
||||||
font-family: "Fira Code", monospace;
|
font-family: "Fira Code", monospace;
|
||||||
color: white;
|
color: black;
|
||||||
/*text-shadow: -1px -1px 0 #000, 1px -1px #000, -1px 1px #000, 1px 1px #000;*/
|
/*text-shadow: -1px -1px 0 #000, 1px -1px #000, -1px 1px #000, 1px 1px #000;*/
|
||||||
/*display: grid;*/
|
/*display: grid;*/
|
||||||
background: #333;
|
/*background: #333;*/
|
||||||
}
|
}
|
||||||
|
|
||||||
a:link {
|
a:link {
|
||||||
|
Reference in New Issue
Block a user