From fde6cfe64442f86b5fcc2c60bf006d625c1c6ba4 Mon Sep 17 00:00:00 2001 From: veclav talica Date: Mon, 22 May 2023 16:21:00 +0500 Subject: [PATCH] move adjectives to page_shares.py --- tools/main_page_generator.py | 6 ++---- tools/page_shares.py | 2 ++ 2 files changed, 4 insertions(+), 4 deletions(-) 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