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