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.

64 lines
1.9 KiB

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
7 months ago
7 months ago
  1. # Python Flask Blog
  2. This is a simple blog based on Pythons Flask framework.
  3. ## Features/To-Dos
  4. - [x] Plain text support for blog entries
  5. - [x] HTML files (.html)
  6. - [x] Markdown Files (.md)
  7. - [x] Infinite-scroll blog page
  8. - [x] Archive page
  9. - [x] Months as headings
  10. - [x] Links to scrolling blog page
  11. - [ ] Links to standalone article
  12. - [ ] Standalone article page
  13. - [x] RSS feed
  14. - [ ] Better navigation
  15. - [ ] Header
  16. - [ ] Footer
  17. - [ ] Switchable CSS
  18. - [ ] CSS dark-theme
  19. - [ ] CSS light-theme
  20. - [x] Docker installation
  21. ## Usage
  22. ### Create entries
  23. Blog entries are managed by plain html files in the `templates/entry/` directory.
  24. The first line of each document is reserved as the title of the document.
  25. You have to specify the filetype by extension.
  26. ## Deployment
  27. ### PIP/Python
  28. - `git clone https://github.com/tiyn/flaskblog`
  29. - `cd flaskblog/src`
  30. - `pip3install -r requirements.txt` - install depenencies
  31. - run `python app.py`
  32. - blog is available on port 5000
  33. ### Docker
  34. #### Volumes
  35. Set the following volumes with the -v tag.
  36. | Volume-Name | Container mount | Description |
  37. |-------------|----------------------|-----------------------------------------------------------------------|
  38. | css | /blog/src/static/css | Directory for css files |
  39. | html | /blog/src/templates | Directory for templates and html documents (contains entry directory) |
  40. #### Ports
  41. Set the following ports with the -p tag.
  42. | Container-Port | Recommended outside port | Protocol | Description |
  43. |----------------|--------------------------|----------|-------------|
  44. | 5000 | 80 | TCP | HTTP port |
  45. #### Example run-command
  46. `docker run --name blog --restart unless-stopped -v css:/blog/src/static/css -v html:/blog/src/templates -p 80:5000 -d tiynger/flaskblog`