Link to singles from stats pages
This commit is contained in:
parent
a5adb44c0d
commit
2531fb0750
2 changed files with 5 additions and 3 deletions
1
build.sh
1
build.sh
|
@ -5,5 +5,6 @@
|
||||||
python3 generate.py
|
python3 generate.py
|
||||||
|
|
||||||
touch build/comments/.gitkeep
|
touch build/comments/.gitkeep
|
||||||
|
touch build/single/.gitkeep
|
||||||
|
|
||||||
rclone copy build praze:/home/public/fic -P
|
rclone copy build praze:/home/public/fic -P
|
||||||
|
|
|
@ -165,14 +165,15 @@ def ficsum(ficcount,year,month=0,showfandom=True,local=False):
|
||||||
ficstring = ""
|
ficstring = ""
|
||||||
ficstring += "<a href=\""
|
ficstring += "<a href=\""
|
||||||
if local:
|
if local:
|
||||||
ficstring += "/home/mdd/Documents/drive/proj/fic-archive/build/masterlist/index.html"
|
ficstring += "/home/mdd/Documents/drive/proj/fic-archive/build/single/"
|
||||||
else:
|
else:
|
||||||
ficstring += "/fic/masterlist"
|
ficstring += "/fic/single/"
|
||||||
ficstring += "#fic"
|
|
||||||
try:
|
try:
|
||||||
ficstring += str(fileread.original)
|
ficstring += str(fileread.original)
|
||||||
except:
|
except:
|
||||||
ficstring += ficcountstring
|
ficstring += ficcountstring
|
||||||
|
if local:
|
||||||
|
ficstring += "/index.html"
|
||||||
ficstring +="\">"
|
ficstring +="\">"
|
||||||
if showfandom:
|
if showfandom:
|
||||||
ficstring += fandom
|
ficstring += fandom
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue