A blog system based on plain-files.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

79 lines
2.7 KiB

1 month ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
1 month ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
1 month ago
7 months ago
1 month ago
  1. # Beaker Blog
  2. ![beaker-blog-logo](beaker_blog.png)
  3. This is a simple blog based on Pythons Flask framework.
  4. The basic design is based on LukeSmithXYZs blog.
  5. However I dislike using a script for adding entries and just want to add entries via plain text files.
  6. ## Features/To-Dos
  7. - [x] Plain text support for blog entries
  8. - [x] HTML files (.html)
  9. - [x] Markdown Files (.md)
  10. - [x] Infinite-scroll blog page
  11. - [x] Archive page
  12. - [x] Months as headings
  13. - [x] Links to scrolling blog page
  14. - [x] Links to standalone article
  15. - [x] Standalone article page
  16. - [x] Links to scrolling blog page
  17. - [x] RSS feed
  18. - [x] Navigation
  19. - [x] Header
  20. - [x] Footer
  21. - [x] Switchable CSS
  22. - [x] CSS dark-theme
  23. - [x] CSS light-theme
  24. - [x] Config file
  25. - [x] Docker installation
  26. - [x] Logo
  27. ## Usage
  28. ### Create entries
  29. Blog entries are managed by plain html files in the `templates/entry/` directory.
  30. The first line of each document is reserved as the title of the document.
  31. You have to specify the filetype by extension.
  32. ## Deployment
  33. ### PIP/Python
  34. - `git clone https://github.com/tiyn/beaker-blog`
  35. - `cd tiyny-blog/src`
  36. - edit the `config.py` file according to your needs
  37. - `pip3install -r requirements.txt` - install depenencies
  38. - run `python app.py`
  39. - blog is available on port 5000
  40. ### Docker
  41. Make sure you copy an example `config.py` and edit it before running the container.
  42. The `config.py` can be found in the `src` folder.
  43. #### Volumes
  44. Set the following volumes with the -v tag.
  45. | Volume-Name | Container mount | Description |
  46. | ----------- | ------------------------- | ------------------------------------------------------------ |
  47. | config-file | /blog/src/config.py | Config file |
  48. | entries | /blog/src/templates/entry | Directory for blog entries |
  49. | css | /blog/src/static/css | (optional) Directory for css files |
  50. | html | /blog/src/templates | (optional) Directory for templates (entry-volume not needed) |
  51. #### Ports
  52. Set the following ports with the -p tag.
  53. | Container-Port | Recommended outside port | Protocol | Description |
  54. | -------------- | ------------------------ | -------- | ----------- |
  55. | 5000 | 80 | TCP | HTTP port |
  56. #### Example run-command
  57. Either use the docker image `tiynger/beaker-blog` or run `docker build . -t beaker-blog` in the top directory of this repository.
  58. If so you need to change the command below apropiately (`tiynger/beaker-blog` to `beaker-blog`).
  59. `docker run --name blog --restart unless-stopped -v ./config.py:/blog/src/config.py -v entries:/blog/src/templates/entry -p 80:5000 -d tiynger/beaker-blog`