From 4679305c51e727113fc3aa91ae3a1803903046dc Mon Sep 17 00:00:00 2001 From: tiyn Date: Sun, 14 Apr 2024 00:31:07 +0200 Subject: [PATCH] added more style and fixed a link bug --- README.md | 4 ++-- src/content.py | 1 + src/static/css/style.css | 8 ++++++++ 3 files changed, 11 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index ae416da..3ebadd2 100644 --- a/README.md +++ b/README.md @@ -58,8 +58,8 @@ The `config.py` can be found in the `src` folder. Set the following volumes with the -v tag. -| Volume-Name | Container mount | Description | -| ------------- | --------------------------- | -------------------------------------------------------- | +| Volume-Name | Container mount | Description | +| ------------- | ----------------------- | ------------------------------------------------------------ | | `config-file` | `/blog/config.py` | Config file | | `entries` | `/blog/templates/entry` | Directory for blog entries | | `graphics` | `/blog/static/graphics` | Directory for images needed for entries | diff --git a/src/content.py b/src/content.py index 3024b4e..90c64fd 100644 --- a/src/content.py +++ b/src/content.py @@ -108,6 +108,7 @@ def gen_stand_string(path_ex): title = open(filename).readline().rstrip("\n") text = open(filename).readlines()[1:] filename_no_end = filename.split(".", 1)[0] + filename_no_end = filename_no_end.split("/")[-1] content_string += "

" + title + "

\n" content_string += "[" content_string += "