From dbcdea640abfc8031135f6e2939ccb233b360e2a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sergio=20=C3=81lvarez?= Date: Sun, 14 Apr 2024 00:43:47 +0200 Subject: [PATCH] standalone --- _posts/2021-10-02-hi.md | 4 ++-- build.sh | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/_posts/2021-10-02-hi.md b/_posts/2021-10-02-hi.md index b50cc65..9674f19 100644 --- a/_posts/2021-10-02-hi.md +++ b/_posts/2021-10-02-hi.md @@ -7,14 +7,14 @@ Primer post, sin mucho que contar para variar. Al menos habrá un bonito _commit La chuleta para hacer andar esto es la siguiente: -```shell +```bash docker run -it --rm --volume="$PWD:/srv/jekyll:Z" jekyll/jekyll jekyll build docker run -it --rm --volume="$PWD:/srv/jekyll:Z" -p 4000:4000 jekyll/jekyll jekyll serve ``` O bien, si ya está _buildeado_: -```shell +```bash cd _site python3 -m http.server 4000 ``` diff --git a/build.sh b/build.sh index f7189fb..ee28b85 100755 --- a/build.sh +++ b/build.sh @@ -16,10 +16,10 @@ convert_md_to_html() { if [ $2 -eq 1 ]; then bodyClass="post" - echo "- [$(pandoc --template=pandoc-metadata.json -s "$1" | jq -r .title)](/$fileName.html) _${postDate}_" >> _site/index.md + echo "- [$(pandoc --template=pandoc-metadata.json "$1" | jq -r .title)](/$fileName.html) _${postDate}_" >> _site/index.md fi - pandoc --template=tpl-layout.html --highlight-style=zenburn --metadata buildDate="$buildDate" --metadata postDate="$postDate" --metadata bodyClass="$bodyClass" -f markdown -t html5 -s "$1" > _site/"$fileName".html + pandoc --template=tpl-layout.html --highlight-style=zenburn --metadata buildDate="$buildDate" --metadata postDate="$postDate" --metadata bodyClass="$bodyClass" -f markdown -t html5 "$1" > _site/"$fileName".html } # posts