9 apr 2023
the pankat static blog generator is my improvement over the tools i used before: ikiwiki and wordpress. i love writing offline, tool assisted and articles are versioned using git.
from the documents source (mdwn) a call to
./pankat-static
will create the documents (html):
./pankat-server
is a webserver with traditional REST API
but also a websocket API which allows live preview of the article.
this is pankat-server
with ‘goland’ text editor on the
left and firefox on the right. but you can use any text editor and it
works best if it has auto-save, which is supported by kate for instance.
note: this is not WYSIWYG as you can’t edit the preview but it’s a great way to see the result of your changes.
another important improvement was designing the blog to be
responsive and mobile friendly. the timeline
is a way to summarize everything that has been written in contrast to
most blogs which render several posts per page and use pagination and
hide the comments. pankat focuses on a single article per page style and
features an easy to use left
/right
keyboard
navigation system.
concise markdown syntax which rendered by pandoc seemed a natural fit.
pankat has integrated
where markdown is not enough one can use inline HTML/CSS/JS. this way one can integrate emscripten libraries or other interactive content.
<script>
window.addEventListener('load', (event) => {
console.log("hello world from pankat article");
;
})</script>
if you view the code of this article (link at the end), you can see
it also executes the javascript code in the article and using
F12
in the console you can read the string output.
https://replicate.com/stability-ai/stable-diffusion
prompt: cat and book logo, by mcbess, full colour print, vintage colours, 1960s
negative_prompt: ugly, tiling, poorly drawn hands, poorly drawn feet, poorly drawn face, out of frame, extra limbs, disfigured, deformed, body out of frame, bad anatomy, watermark, signature, cut off, low contrast, underexposed, overexposed, bad art, beginner, amateur, distorted face.
there are still entries in the roadmap i want to work out before i merge the future branch into master.
lately i got mobile html working again thanks to help from symisint from fiverr.
that said, i’m already using it for my blog and i’m happy with it.