|
|
@ -102,6 +102,11 @@ def linkgen(ficno,output="output.html",local=False):
|
|
|
|
filewrite.write("href=\"https://archiveofourown.org/works/" + str(fileread.ao3slug) + "\">AO3</a></li>\n")
|
|
|
|
filewrite.write("href=\"https://archiveofourown.org/works/" + str(fileread.ao3slug) + "\">AO3</a></li>\n")
|
|
|
|
except:
|
|
|
|
except:
|
|
|
|
pass
|
|
|
|
pass
|
|
|
|
|
|
|
|
# write fedi share link if there is one
|
|
|
|
|
|
|
|
try:
|
|
|
|
|
|
|
|
filewrite.write("<li><a href=\"https://ple.praze.net/notice/" + fileread.fedislug + "\">fedi</a></li>\n")
|
|
|
|
|
|
|
|
except:
|
|
|
|
|
|
|
|
pass
|
|
|
|
# determine if comments page
|
|
|
|
# determine if comments page
|
|
|
|
if any(item in fffandoms for item in fileread.fandom):
|
|
|
|
if any(item in fffandoms for item in fileread.fandom):
|
|
|
|
filewrite.write("<li class=\"prazelink\"><a href=\"")
|
|
|
|
filewrite.write("<li class=\"prazelink\"><a href=\"")
|
|
|
@ -283,10 +288,20 @@ def ficgen(ficno,unique=False,output="output.html",local=False):
|
|
|
|
# give the div an id if requested
|
|
|
|
# give the div an id if requested
|
|
|
|
if unique:
|
|
|
|
if unique:
|
|
|
|
filewrite.write(" id=\"fic" + ficnostring + "\"")
|
|
|
|
filewrite.write(" id=\"fic" + ficnostring + "\"")
|
|
|
|
filewrite.write(">\n<h1><span class=\"ficnoprelim\">no. </span><span class=\"ficno\">" + ficnostring)
|
|
|
|
filewrite.write(">\n<h1><span class=\"ficnoprelim\">no. </span><span class=\"ficno\"><a href=\"")
|
|
|
|
# write ficno including translation if there is one
|
|
|
|
if local:
|
|
|
|
|
|
|
|
filewrite.write("/home/mdd/Documents/drive/proj/fic-archive/build/single/" + ficnostring + "/index.html")
|
|
|
|
|
|
|
|
else:
|
|
|
|
|
|
|
|
filewrite.write("/fic/single/" + ficnostring)
|
|
|
|
|
|
|
|
filewrite.write("\">" + ficnostring + "</a>")
|
|
|
|
try:
|
|
|
|
try:
|
|
|
|
filewrite.write("/" + translationstring)
|
|
|
|
if translationstring:
|
|
|
|
|
|
|
|
filewrite.write("/<a href=\"")
|
|
|
|
|
|
|
|
if local:
|
|
|
|
|
|
|
|
filewrite.write("/home/mdd/Documents/drive/proj/fic-archive/build/single/" + translationstring + "/index.html")
|
|
|
|
|
|
|
|
else:
|
|
|
|
|
|
|
|
filewrite.write("/fic/single/" + translationstring)
|
|
|
|
|
|
|
|
filewrite.write("\">" + translationstring + "</a>")
|
|
|
|
except:
|
|
|
|
except:
|
|
|
|
pass
|
|
|
|
pass
|
|
|
|
filewrite.write("</span>")
|
|
|
|
filewrite.write("</span>")
|
|
|
|