move adjectives to page_shares.py

This commit is contained in:
veclav talica 2023-05-22 16:21:00 +05:00
parent 590f344c6d
commit fde6cfe644
2 changed files with 4 additions and 4 deletions

View File

@ -6,7 +6,7 @@ from random import choice, seed
import time, urllib.parse import time, urllib.parse
from article_utils import parse_metadata, MONTHS from article_utils import parse_metadata, MONTHS
from page_shares import wrap_page from page_shares import wrap_page, ADJECTIVES
if len(argv) <= 1: if len(argv) <= 1:
print("No directory was supplied") 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.
--- ---

View File

@ -26,5 +26,7 @@ TAIL_EMBED = """
""" """
ADJECTIVES = ["*wild*", "**wacky**", "very humble", "**most serious**"]
def wrap_page(page: str) -> str: def wrap_page(page: str) -> str:
return HEAD_EMBED + page + TAIL_EMBED return HEAD_EMBED + page + TAIL_EMBED