Add option for player banner
This commit is contained in:
parent
3ab735911f
commit
e2f89e9793
4 changed files with 8 additions and 0 deletions
|
@ -1133,6 +1133,11 @@ def indexgen():
|
|||
if len(variables.subfolder) > 0:
|
||||
content.write("/" + variables.subfolder)
|
||||
content.write("/decks/sigs/" + variables.name.lower() + ".gif\" loading=\"lazy\">")
|
||||
if variables.sig:
|
||||
content.write("<img src=\"")
|
||||
if len(variables.subfolder) > 0:
|
||||
content.write("/" + variables.subfolder)
|
||||
content.write("/assets/banner.png\" loading=\"lazy\">")
|
||||
content.write("\n<ul>\n<li>player name: <span class=\"name\">" + variables.name + "</span></li>\n<li>" + str(len(cardlist)) + " cards held <span class=\"rank " + rank + "\">(" + rank + ")</span></li>\n<li>started <code>" + firstdate.strftime("%Y-%m-%d") + "</code></li>\n<li>last updated <code>" + datetime.datetime.now().strftime("%Y-%m-%d") + "</code></li>\n<li><a href=\"https://git.praze.net/tre/tcg\" target=\"_blank\">code</a> ")
|
||||
if variables.name == "Mez":
|
||||
content.write("under construction")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue