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 += "