Today I started to look for a usable CMS (since I didn't want to rewrite my website, i.e. write one on my own) and I came across Automad. Flat-file, nicely designed, easily customizable, and holy f*cking sh*te, I've spent the past 5-6 hours to work on this site. But now I like (a bit) more how it looks. Not that it wasn't pretty nice in its initial state...
My old site wasn't that bad, it was kind of like a flat-file CMS, besides the CMS part -- it has some CMS capabilities, but there was no admin page or anything like that. It was PHP only though, without JS (except for that 10-ish line for Ztext).
With this CMS I'm kind of "forced" to use Markdown. Not that I didn't like Markdown... But I liked that my old site would work with different file format, like this:
// File formats ------------------- const TXT = 0; const ZXT = 1; const ZXTO = 4; const HTML = 2; const PHP = 3; const MD = 5; $types = array( TXT => 'txt', ZXT => 'zxt', ZXTO => 'zxto', HTML => 'html', PHP => 'php', MD => 'md' ); const DEFAULT_TYPE = 'zxt';
I had different functions to display these formats, and besides Markdown (for which I used Parsedown), I wrote everything. You might wonder (jk, I know you don't) with what I parsed plain text files; that was Ztext, just like for Ztext files (ZXT and ZXTO) -- for txts, I used Ztext's pre- and post-process functions, so I could get a nice HTML version of them. And for Ztext... it was a miracle. My own (lightweight) markup language that would procude nice, valid HTMLs, and was/is more than twice as long as my website's code (~2500 vs ~1000). I miss it, but had to move on and use more "conventional" (i.e. more comfortable by not needing to write the whole thing) formats.
And it also showed random quotes on some subpages... Best. Feature. Ever.
Alright, I think I wasted enough time (20-25 minutes) writing this, I'm gonna continue working on this site and start uploading.
PS These were the names of the formats (in English, in Hungarian and in toki pona):
// English [ 'txt' => 'plain text', 'zxt' => 'Zoli\'s text', 'zxto' => 'Zoli\'s text (original)', 'html' => 'HyperText Markup Language', 'php' => 'PHP: Hypertext Preprocessor', 'md' => 'Markdown' ] // Hungarian (magyar) [ 'txt' => 'formázatlan szöveg', 'zxt' => 'Ztext', 'zxto' => 'Ztext (eredeti)', 'html' => 'Hiperszöveg Leíró Nyelv', // 'HyperText Markup Language', 'php' => 'PHP: Hiperszöveg Előfeldolgozó', 'md' => 'Markdown' ] // toki pona [ 'txt' => 'sitelen walo', 'zxt' => 'sitelen pi jan Sotan', 'zxto' => 'sitelen pi jan Sotan (majuna)', 'html' => 'toki lili pi sitelen wawa', 'php' => 'PHP: ilo nanpa pi sitelen wawa', 'md' => 'Markanpa' ]
PS2 This is my old website's header:
PS3 This is the header I originally inteded to use here:
Damn, I like this design.
PS4 Sadly my friend sold his and I never had one. But this is my current header:
PS5 Not yet available.