WIP

2018. 12. 28. 23:30 | \English \WIP \Ztext \blog \bts \programming \random

'Tis my very first blog post where I talk about the making and history of this site (or rather about it's current iteration).

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.


< Why did I redo the original design (which was pretty nice)? | Work has been paused for a while now... >

Related


Made a map for Johto and Kanto (mostly based on Pokémon HeartGold/SoulSilver)

2024. 05. 02. 00:00 | \drawings \map \random

I think it looks nice.

More >

[short story] Closed due to renovations

2023. 09. 22. 16:30 | \English \moli \novella

We are terribly sorry to inform you that the Executioner's Office is temporarily closed due to renovations, as on the 10th of May, the grieving widow of a former customer drove their car through our display of antique torture devices...

More >

[poem] Untitled Pseudo-Rhyming Mumbling That I Shall Henceforth Call A Poem

2023. 09. 22. 10:30 | \English \poem \random

A kind of silly poem that I've begun writing on 23 March 2022.

More >