me4logo.png
  • Youtube
  • English
  • Magyar
  • toki pona
  • Hello
  • vi.log
  • Blog
    • Home
    • English
    • Magyar
    • toki pona
    • Misc.
    • Hello
    • vi.log
    • Blog
      • Amidst the darkness
      • Character sheet (for what?)
      • Concepts for Writing
      • drawing attempt
      • First post from phone
      • I'm about to write About (in the 2 other languages that aren't English)
      • Influence
      • It's live!
      • I've done it
      • Just a random thought
      • Long absence... again
      • Long time no see... also MAJOR UPDATE!!!1!1!
      • Minor Hello update
      • More uploading 2 hours before 2019
      • Multilingual content support
      • Plans and bit of BTS update
      • Quick update
      • sitelen lili
      • Szerettem őt átiratok és átdolgozások
      • The hallowed waste
      • The sh*t continues (or, actually, this one was first)
      • Unpopular post
      • vi.log, nano and general updates
      • Why did I redo the original design (which was pretty nice)?
      • WIP
      • Work has been paused for a while now...
    • About
  • WIP

    2018. 12. 28. 23:30
    • English
    • , 
    • WIP
    • , 
    • Ztext
    • , 
    • blog
    • , 
    • bts
    • , 
    • programming
    • , 
    • random

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:

Legacy header

PS3 This is the header I originally inteded to use here:

Original header

Damn, I like this design.

PS4 Sadly my friend sold his and I never had one. But this is my current header:

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

  • [poem] Lost in the Light

    2022. 06. 05. 20:35
    • English
    • , 
    • moli
    • , 
    • poem
  • I'm lost in the light
    I'm lusting the void
    People around me
    Are nothing, but noise

    I am surrounded
    There's nowhere to go
    The lack of the bright
    Is where I feel home


    Written at 17 August 2021

  • [short story] Mark Time

    2022. 02. 19. 01:30
    • English
    • , 
    • dedicated
    • , 
    • français
    • , 
    • pun intended
    • , 
    • random
  • "No!" The angry student exclaimed, "I told you already! This is it! I refuse to change any of it!" He threw his papers in the air and stormed out of the lecture hall.

    "What was that about?" asked the curious bystander, who helped Mark to pick up the angry student's essay.

    "Just another art student refusing criticism," he said as he looked at his empty wrist, "do you know what time is it?"

    "It's 11:05," she revealed with morbid casualty.

  • [short story] Tamers of Men

    2021. 10. 24. 21:30
    • English
    • , 
    • competition
    • , 
    • pun intended
  • Written for 24 hour flash story writing competition, given theme was Ruthless Ambition.

  • [short story] In the Court of Justice

    2021. 10. 21. 15:30
    • English
    • , 
    • dedicated
    • , 
    • pun intended
    • , 
    • random
  • This was a writing practice in preparation for a 300 word flash story writing competition. 2/2 people who read it seemed to like it, so now it's here.

    Randomly chosen theme was Justice.

  • [short story] Horror story using 10 words

    2021. 09. 03. 13:30
    • English
    • , 
    • Story
  • It's found me. Ran inside and closed the door. Tell--

  • Home
    Youtube
    Hello
    vi.log
    Blog
    About
  • Copyright 2022 B. Zoltán Gorza
    Powered by Automad