standalone
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Sergio Álvarez 2024-04-14 00:43:47 +02:00
parent 015e7b6ed2
commit dbcdea640a
Signed by: salvarez
GPG Key ID: E69AEEDDE0085854
2 changed files with 4 additions and 4 deletions

View File

@ -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
```

View File

@ -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