Skip to main content

A simple private blogging system

Project description

gresiblos

License: BSD PyPI version test Downloads Downloads Coverage Status Documentation Status Dependecies

Donate

Introduction

gresiblos is a simple blogging system written in Python. gresiblos generates static HTML pages from optionally annotated text, markdown, or HTML files. gresiblos is the acronym for greyrat's simple blog system.

gresiblos reads blog entries from files that may include some meta information and embeds the contents into a template. Optionally, in addition, it generates a json-file with meta information about the entries. gresiblos comes with a php-file that realises browsing, as well as with a php-file that generates rss and atom feeds.

Background

I wanted to have a blog and I wanted it to use static pages. That's why I wrote it. gresiblos has some additional features — like the inclusion of custom JavaScript and CSS files — I needed for my own blog.

Usage

Write your blog entries as text, markdown or HTML.

Then run gresiblos on it:

python src\gresiblos.py entry1.txt

… and it will convert it into a complete HTML page using the default template stored in ./data/.

You may as well add some meta data, storing the blog entry contents under the contents key:

state:release
title:My first blog entry
filename:my-first-blog-entry
author:Daniel Krajzewicz
date:26.12.2024 19:25
topics:blog,example
abstract:A very first introduction into blogging
content:
<b>Hello there!</b><br/>
This is my very first blog post!
===

All information starts with a key that is separated from the value by a ‘:’. Multi-line values start with a new line after the key and the ‘:’ and are closed with ‘===’. Please note that the content is kept as-is in the current version.

Again, when starting gresiblos, the meta information and the contents will be stored at marked places within the template.

gresiblos templates support placeholders that be filled by meta information, as well as optional fields.

You may find further information at the gresiblos documentation pages.

License

gresiblos is licensed under the BSD license.

Installing gresiblos

The current version is gresiblos-0.6.0.

You may install gresiblos using

python -m pip install gresiblos

You may download a copy or fork the code at gresiblos's github page.

Besides, you may download the current release here:

Further Documentation

Status

gresiblos works as intended for me, but lacks quite some features of enterprise systems.

The next steps to release 1.0 will involve some refactorings, including API changes.

Please let me know if you have any idea / feature request / question / whatever or contribute to gresiblos

Examples

gresiblos is used at the following pages:

ChangeLog

gresiblos-0.6.0 (to come)

  • improving the documentation
  • changed the license from GPLv3 to BSD
  • changes:
    • important: the replacement pattern for values within the template changed from %<FIELD_NAME>% to [[:<FIELD_NAME>:]]
    • topics are stored as list in the index file
    • the filenames in the index now include the extension
    • the state attribute was removed from the index file
    • replaced option --have-php-index by the option --topic-format <FORMAT> which directly defines how each of a blog entries topics shall be rendered when embedding it into the template
    • removed options --default-author <NAME>, --default-copyright-date <DATE>, --default-state <STATE> and introduced replacements with defaults instead
  • new
    • the indentation level of the index file can now be set using the option --index-indent <INT>
    • you may use a different format for the date in your entries than the ISO-format by defining it using --date-format <DATE_FORMAT>
    • added the possibility to skip document parts using the begin/end tags [[:?<FIELD_NAME>:]] and [[:<FIELD_NAME>?:]] if <FIELD_NAME> is not set

Older versions

You may find the complete change log at the gresiblos documentation pages.

Closing

Well, have fun. If you have any comments / ideas / issues, please submit them to gresiblos' issue tracker on github or drop me a mail.

Don't forget to spend a star!

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

gresiblos-0.6.0.tar.gz (26.5 kB view details)

Uploaded Source

Built Distribution

gresiblos-0.6.0-py3-none-any.whl (34.0 kB view details)

Uploaded Python 3

File details

Details for the file gresiblos-0.6.0.tar.gz.

File metadata

  • Download URL: gresiblos-0.6.0.tar.gz
  • Upload date:
  • Size: 26.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.4

File hashes

Hashes for gresiblos-0.6.0.tar.gz
Algorithm Hash digest
SHA256 722125d76d78ce7be09ace20977ce5b8195ab7bca13cf8a017273e9706d317b5
MD5 7c7b33e0bcefdb5d4fef80f6f056cb0b
BLAKE2b-256 e7ad54a1cc69477452a1137b0d5bccc5de64fc83b0eb2d67358f0ac085f83519

See more details on using hashes here.

File details

Details for the file gresiblos-0.6.0-py3-none-any.whl.

File metadata

  • Download URL: gresiblos-0.6.0-py3-none-any.whl
  • Upload date:
  • Size: 34.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.4

File hashes

Hashes for gresiblos-0.6.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2cf8f9e36468cffa027f1ac2e8628d0dbce2605fb8c0aeec3d4dec5f836314a8
MD5 ccf0412f5870f742cefcd036c9a7c547
BLAKE2b-256 050fce4e2b6d56a438e11ac447c57f47e02cfeeed15e208e5c5d5c9bf6b9db3b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page