diff --git a/Makefile b/Makefile index fdf6ffc..34897a7 100644 --- a/Makefile +++ b/Makefile @@ -1,9 +1,15 @@ +ASCIINEMA_VERSION=3.5.0 .PHONY: update-bootstrap update-bootstrap: curl -L "https://cdn.jsdelivr.net/npm/bootstrap@5/dist/css/bootstrap.min.css" -o static/assets/bootstrap.min.css curl -L "https://cdn.jsdelivr.net/npm/bootstrap@5/dist/js/bootstrap.min.js" -o static/assets/bootstrap.min.js +.PHONY: update-asciinema +update-asciinema: + curl -L "https://github.com/asciinema/asciinema-player/releases/download/v$(ASCIINEMA_VERSION)/asciinema-player.css" -o static/assets/asciinema-player.css + curl -L "https://github.com/asciinema/asciinema-player/releases/download/v$(ASCIINEMA_VERSION)/asciinema-player.min.js" -o static/assets/asciinema-player.min.js + .PHONY: deploy deploy: rsync -av public desk:/var/www/balki.me diff --git a/README.md b/README.md new file mode 100644 index 0000000..b2fa2d4 --- /dev/null +++ b/README.md @@ -0,0 +1,7 @@ +## Source of balki.me + +## Asciinema + +Followed instructions from here: https://jenciso.github.io/blog/embedding-asciinema-cast-in-your-hugo-site/ + +Asciinema uses wasm which needs CSP unsafe-eval. Ref: https://www.aaron-powell.com/posts/2019-11-27-using-webassembly-with-csp-headers/ diff --git a/content/pages/playground.md b/content/pages/playground.md new file mode 100644 index 0000000..593bdf7 --- /dev/null +++ b/content/pages/playground.md @@ -0,0 +1,12 @@ +--- +title: "Playground" +date: 2023-07-22T19:56:37-04:00 +draft: true +asciinema: true +--- + +# Playground for hugo + +{{< asciinema key="demo" >}} + +There should be a asciinema cast above! diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index 753e544..2821af4 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -3,7 +3,7 @@
- +