From f0c8e169ecd26743d0b7d5bde2ff81271db6136f Mon Sep 17 00:00:00 2001 From: cst Date: Fri, 3 Jun 2022 19:01:25 +0300 Subject: [PATCH] link htmx_examples to projects --- content/blog/site_generator.md | 3 +++ content/projects/index.md | 5 +++++ scripts/md_to_html.py | 3 ++- scripts/run | 2 +- 4 files changed, 11 insertions(+), 2 deletions(-) diff --git a/content/blog/site_generator.md b/content/blog/site_generator.md index 630ea9f..faa00f5 100644 --- a/content/blog/site_generator.md +++ b/content/blog/site_generator.md @@ -1,5 +1,8 @@ ### A Simple Static Site Generator +- [Source code](https://tildegit.org/cst/creativespirit.tech) of the simple static site generator is hosted at the awsome [tildegit](https://tildegit.org/cst/creativespirit.tech) of the [tildeverse](https://tildeverse.org/) + + ### Why yet another site generator? - [creativespirit.tech](https://creativespirit.tech) is about a concept. The software supporting the site implements that concept. diff --git a/content/projects/index.md b/content/projects/index.md index 1441e7a..b43cbf3 100644 --- a/content/projects/index.md +++ b/content/projects/index.md @@ -5,3 +5,8 @@ - Description: In [this blog article](https://creativespirit.tech/blog/site_generator.html). - [Source code](https://tildegit.org/cst/creativespirit.tech) is hosted at the awsome [tildegit](https://tildegit.org/cst/creativespirit.tech) of the [tildeverse](https://tildeverse.org/) + +### Htmx examples rendered with python/flask + - The excellent [htmx examples](https://htmx.org/examples/) rendered with python/flask! + - Shortly about htmx in my gemini capsule: gemini://gemini.ctrl-c.club/~cst/htmx.gmi (To browse it, you'd need a [gemini client](https://gemini.circumlunar.space/software/). I use [Lagrange](https://github.com/skyjake/lagrange)) + - [Source code](https://tildegit.org/cst/htmx_examples) is hosted at the awsome [tildegit](https://tildegit.org/cst/creativespirit.tech) of the [tildeverse](https://tildeverse.org/) diff --git a/scripts/md_to_html.py b/scripts/md_to_html.py index 4d01263..1df11e3 100644 --- a/scripts/md_to_html.py +++ b/scripts/md_to_html.py @@ -16,9 +16,10 @@ DESTINATION_ROOT = '/var/www/creativespirit.tech/html' TEMPLATE_FILE = '../templates/page_template.mustache' -if len(sys.argv) == 3: +if len(sys.argv) == 4: SOURCE_ROOT = sys.argv[1] DESTINATION_ROOT = sys.argv[2] + TEMPLATE_FILE = sys.argv[3] def process_content_dir(root, nodes): diff --git a/scripts/run b/scripts/run index ef55c92..189e854 100755 --- a/scripts/run +++ b/scripts/run @@ -12,4 +12,4 @@ # So we add it here export PATH=$PATH:/home/${USER}/.local/bin -pipenv run python ./md_to_html.py $1 $2 +pipenv run python ./md_to_html.py $1 $2 $3