1
0
mirror of https://github.com/tiyn/amphora-wiki.git synced 2025-04-17 06:17:48 +02:00

more modern link style added

This commit is contained in:
tiyn 2024-04-14 02:02:47 +02:00
parent 6287111899
commit ff169d2795
3 changed files with 4 additions and 5 deletions

View File

@ -15,7 +15,7 @@ I however just want to put my markdown files in a directory and get a working wi
- [ ] Option to get plain text file
- [ ] Optimize CSS for code
- [x] Start page
- [ ] Overview of pages and namespaces
- [x] Overview of pages and namespaces
- [x] Search page
- [x] Full-text search
- [x] Show first few lines of each match (preview)

View File

@ -1,3 +1,3 @@
#!/bin/sh
docker-compose down
docker-compose up -d
docker-compose up -d --build

View File

@ -96,10 +96,9 @@ def gen_arch_string(path_ex):
if filename[0] != "." and filename.__contains__("."):
filename = filename.split(".", 1)[0]
content_string += "<li>"
content_string += title + " ["
content_string += "<a href=\"" + "/"+ entry_or_namespace +"/" + \
path_ex.rstrip("/") + "/" + pathlib.PurePath(file).name + "\">" + "standalone" + "</a>"
content_string += "] <br>"
path_ex.rstrip("/") + "/" + pathlib.PurePath(file).name + "\">" + title + "</a>"
content_string += "<br>"
content_string += "</li>\n"
content_string += "</ul>\n"
return content_string