diff --git a/tools/main_page_generator.py b/tools/main_page_generator.py index 0a64d2c..dc6ec53 100755 --- a/tools/main_page_generator.py +++ b/tools/main_page_generator.py @@ -6,7 +6,7 @@ from random import choice, seed import time, urllib.parse from article_utils import parse_metadata, MONTHS -from page_shares import wrap_page +from page_shares import wrap_page, ADJECTIVES if len(argv) <= 1: print("No directory was supplied") @@ -19,9 +19,7 @@ CSS: /style.css """ -adjectives = ["*wild*", "**wacky**", "very humble", "**most serious**"] - -page = f"""Personal blog of one {choice(adjectives)} Veclav Talica. +page = f"""Personal blog of one {choice(ADJECTIVES)} Veclav Talica. --- diff --git a/tools/page_shares.py b/tools/page_shares.py index dbf5142..57a6259 100644 --- a/tools/page_shares.py +++ b/tools/page_shares.py @@ -26,5 +26,7 @@ TAIL_EMBED = """ """ +ADJECTIVES = ["*wild*", "**wacky**", "very humble", "**most serious**"] + def wrap_page(page: str) -> str: return HEAD_EMBED + page + TAIL_EMBED