standalone
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
015e7b6ed2
commit
dbcdea640a
|
@ -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
|
||||
```
|
||||
|
|
4
build.sh
4
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
|
||||
|
|
Loading…
Reference in New Issue