From e2f89e979327dae85f1d89a7ae69036fcd684cec Mon Sep 17 00:00:00 2001 From: mez Date: Sun, 4 May 2025 20:54:47 +0100 Subject: [PATCH] Add option for player banner --- .gitignore | 1 + README.org | 1 + colors.py | 5 +++++ variables-template.py | 1 + 4 files changed, 8 insertions(+) diff --git a/.gitignore b/.gitignore index 02d6c19..89bef5c 100644 --- a/.gitignore +++ b/.gitignore @@ -3,6 +3,7 @@ build/*/index.html build/index.html build/decks/*/*.gif build/decks/*/type +build/assets/banner.png build/assets/header.png build/assets/levels/*.gif build/assets/sketch/*.gif diff --git a/README.org b/README.org index 67789fb..6710f16 100644 --- a/README.org +++ b/README.org @@ -22,6 +22,7 @@ Python scripts to generate a mobile-friendly static site for tracking tcg cards - =url=: URL of your site index page including =https://= - =name=: the name you use in the game - =sig=: set to =True= when you have a signature card + - =banner=: set to =True= when you have a player banner, and save this in =build/assets/= as =banner.png= - =highpriority=: a list of high priority decks you’re collecting - =trademedium=: whether to allow trading medium-priority cards away in exchange for high-priority cards - =tradepost=: URL of your trade post on Dreamwidth diff --git a/colors.py b/colors.py index 1b5a7b4..1983a45 100644 --- a/colors.py +++ b/colors.py @@ -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(" 0: + content.write("/" + variables.subfolder) + content.write("/assets/banner.png\" loading=\"lazy\">") content.write("\n