diff --git a/makeheader.py b/makeheader.py
index 87b5693..65bddad 100644
--- a/makeheader.py
+++ b/makeheader.py
@@ -92,14 +92,14 @@ def linkgen(ficno,output="output.html",local=False):
# write ao3 link if there is one
try:
if fileread.ao3slug:
- filewrite.write("
AO3\n")
+ filewrite.write(" locked")
+ filewrite.write("\" href=\"https://archiveofourown.org/works/" + str(fileread.ao3slug) + "\">AO3\n")
except:
pass
# write fedi share link if there is one
@@ -246,11 +246,11 @@ def linkgen(ficno,output="output.html",local=False):
filewrite.write("\">comments\n")
except:
pass
- filewrite.write("\n")
+ filewrite.write("\n")
except:
pass
-def ficgen(ficno,unique=False,output="output.html",local=False):
+def ficgen(ficno,unique=False,output="output.html",local=False,single=False):
# convert to three-digit number
if ficno < 10:
ficnostring = "00" + str(ficno)
@@ -284,11 +284,14 @@ def ficgen(ficno,unique=False,output="output.html",local=False):
if revealed == True:
# write to output file
filewrite = open(output, "a")
- filewrite.write("\n
\n
\n")
+ if single:
+ filewrite.write("
\n")
+ filewrite.write("
\n")
filewrite.close()
diff --git a/single.py b/single.py
index fc952c8..1ad3ef9 100644
--- a/single.py
+++ b/single.py
@@ -37,11 +37,11 @@ def singlepage(ficno,directory,local=False):
headerfooter.headerwrite(output,"Fic no. " + ficnostring,"Fic no. " + ficnostring + "","",False,local)
try:
if fileread.original:
- makeheader.ficgen(fileread.original,False,output,local)
+ makeheader.ficgen(fileread.original,False,output,local,True)
else:
- makeheader.ficgen(ficno,False,output,local)
+ makeheader.ficgen(ficno,False,output,local,True)
except:
- makeheader.ficgen(ficno,False,output,local)
+ makeheader.ficgen(ficno,False,output,local,True)
if singlestatus:
filewrite = open(output, "a")
filewrite.write("