blogx

command module
v0.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 7, 2024 License: MIT Imports: 40 Imported by: 0

README

blogx is a simple blogging webapp

It has one "interesting" feature: responses always include all data for that
page in the response.  This means all javascript and css is in the html
response, but also images and videos (as a base64 datauri).  This should make
pages fast to render.

MIT-licensed

# Using

To use, create a empty config file:

	blogx config-describe >blogx.conf

Now edit the file, test the config:

	blogx config-test blogx.conf

Launch:

	blogx serve blogx.conf

And connect with your browser.
The bottom right of the page links to the admin pages.


# todo

- make it clear this isn't great code
- add filters to convert image to png or jpg. (make sure we keep white bg in jpg). also make filter to output an image including its alt text.
- make it possible to request external images. i should link inline images to it, so people can link to them.
- make the admin images page faster. converting images to inline all the time is too slow. need a local (on disk) cache probably.
- add a method to cleanup all static files, or regen pages.  in case the templates change.
- split code into more files
- write test code
- make it easier to specify times in the backend
- make sure minification works properly

Documentation

Overview

Package blogx is a simple blog system with completely standalone pages

It has a special feature: all pages include all the content of a page. To render a page, the browser does not have to fetch images, stylesheets or javascript to render the page.

Blogx was created as a Go learning exercise.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL