move adjectives to page_shares.py
This commit is contained in:
		| @@ -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. | ||||
|  | ||||
| --- | ||||
|  | ||||
|   | ||||
| @@ -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 | ||||
|   | ||||
		Reference in New Issue
	
	Block a user