From ac319db35938ed9b0232186caa3486b9f8caf655 Mon Sep 17 00:00:00 2001 From: David Luevano Alvarado Date: Sat, 6 May 2023 06:57:14 -0600 Subject: update css and templates, add new entry --- live/blog/a/updated_pyssg_pymdvar_and_website.html | 146 +++++++++++++++++++++ 1 file changed, 146 insertions(+) create mode 100644 live/blog/a/updated_pyssg_pymdvar_and_website.html (limited to 'live/blog/a/updated_pyssg_pymdvar_and_website.html') diff --git a/live/blog/a/updated_pyssg_pymdvar_and_website.html b/live/blog/a/updated_pyssg_pymdvar_and_website.html new file mode 100644 index 0000000..07431a7 --- /dev/null +++ b/live/blog/a/updated_pyssg_pymdvar_and_website.html @@ -0,0 +1,146 @@ + + + + + + +Updated pyssg to include pymdvar and the website -- Luévano's Blog + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + +
+ +
+
+ +
+

Updated pyssg to include pymdvar and the website

+ +

Again, I’ve updated pyssg to add a bit of unit-testing as well as to include my extension pymdvar which is used to convert ${some_variables} into their respective values based on a config file and/or environment variables. With this I also updated a bit of the CSS of the site as well as basically all the entries and base templates, a much needed update (for me, because externally doesn’t look like much). Along with this I also added a “return to top” button, once you scroll enough on the site, a new button appears on the bottom right to get back to the top, also added table of contents to entries taht could use them (as well as a bit of CSS to them).

+

This update took a long time because I had a fundamental issue with how I was managing the “static” website, where I host all assets such as CSS, JS, images, etc.. Because I was using the <base> HTML tag. The issue is that this tag affects everything and there is no “opt-out” on some body tags, meaning that I would have to write the whole URL for all static assets. So I tried looking into changing how the image extension for python-markdown works, so that it includes this “base” URL I needed. But it was too much hassle, so I ended up developing my own extension mentioned earlier. Just as a side note, I noticed that my extension doesn’t cover all my needs, so probably it wont cover yours, if you end up using it just test it out a bit yourself and then go ahead, PRs are welcomed.

+

One thing led to another so I ended up changing a lot of stuff, and with changes comes tireness and eded up leaving the project for a while (again). This also led to not wanting to write or add anything else to the site until I sorted things out. But I’m again reviving it I guess, and up to the next cycle.

+

The next things I’ll be doing are continuing with my @gamedev journey and probably upload some drawings if I feel like doing some.

+ + + + +
+ +
+ + + + \ No newline at end of file -- cgit v1.2.3-54-g00ecf