Storin t'Kel 2024-02-19 Taking my sweet ass time version 0.51 Informative Blog Table of contents 1. Changes to this site 2. BASH behind the scenes 2.1 Why BASH? 2.2 Document creation 2.3 Adding to this site 3. Why not just write a CMS in PHP and SQL? 4. References 1. Changes to this site As you may have noticed I have made a few changes to this site, mainly separating the three subjects and adding lyrics to the website as well. I added the lyrics section because I wanted to store all my favorite lyrics of songs on my page for easy reach without having to dig within my drives. Originally it was my plan to have lyrics on my site but my other goal took the overhand for a while, this being my rants about how we should clean the internet. I separated the other three sections; Home, Blog and Scripts. I have a mild case of OCD and I want to perfect things for myself. By separating the, now total of, four subjects I felt I could basically be more free in adding content whenever I liked it. For now I am taking my sweet ass time when it comes to adding content because of me doing a LOT of BASH scripting these days as well as having taken up an old hobby of mine; playing Minetest[1]. Having said this, there are still at least fifty documents, of which the majority being lyrics, to add to this website. Right now I am too lazy to convert these files and add them. :P 2. BASH behind the scenes 2.1. Why BASH? So before anything else, let me say that I just love BASH scripting and knowing how versatile it truly is. I just love being able to do whatever I want and, after a lot of cursing during testing, I get the best results with relative ease. It is also the reason why I didn't script anything with Python. BASH is something I don't really need to install anymore, this language is available within any Linux system there is. Python is something I always need to install, I don't want to install too much on my systems so for me that really isn't much of an option. So yeah, that's why I do BASH. 2.2. Document creation Prior to this page I would manually add the HTML codes to the HTML versions of any of the documents after writing the text version of the documents. In other words, that was a LOT of work and I wanted to do something that made my life easier. BASH offered me that chance and sed in particular. I created a bunch of sed lines that could take away a lot of the work by creating simple markdown addons, using the term markdown loosely as I made my own version of it. So basically what I do now is creating a template text file that I will write, using my markdown, and then run the script and it converts to HTML and TXT files in order to be uploaded to my website using SCP using this same script and placing the files in the right directories. I will share this script in the future. 2.3. Adding to this site Then there's another script I created, also leaning on sed a lot. This was based on my RSS Generator script[2] and I expanded on it by adding the cells to any of the four index pages of my site with the relevant links. From there it also adds to the RSS feed and basically automate it from there. This script will be added in the future as well. 3. Why not just write a CMS in PHP and SQL? Good question and I asked myself this question as well. I mean, using an SQL database and write my own CMS capable of outputting the strictness of XHTML 1.0 Strict and CSS Level 1 should be fairly easy to make in PHP. In addition, this would be a proper reason to use javascript without enforcing it onto other people. A javascript could help insert HTML tags and stuff and then output the data and NOT use javascript on the page itself. I mean, let's face it that none of the current CMS products actually focus on XHTML 1.0, Strict or Transitional and CSS Level 1. The best would just focus on creating HTML and CSS that gets validated and that's it. If I were to do this, I would definitely place the focus on proper usage where the first selector would be which HTML version and which CSS version one would use. The thing is that I want a different approach to creating pages and maintaining my website. I guess for now my goal is to get as close to a CMS as possible using BASH only. But who knows in time I will forego sticking to the commandline and focus on the realistic stuff instead? ------------------------------------------------------------------------ 4. References [1] https://www.minetest.net [2] https://www.storin.nl/scripts.php?id=rssgen