mjestecko/tools/page_shares.py

60 lines
970 B
Python
Raw Normal View History

HEAD_EMBED = """
2023-05-26 09:00:48 +00:00
<div class="container">
<header>
<nav>
<strong>mjestečko</strong> /
<a href="/">main</a> /
<a href="https://git.poto.cafe/veclavtalica/mjestecko">source</a> /
<a href="/tracks.html">tracks</a> /
<a href="/feed.xml">rss</a> /
<a href="/articles/mjestečko.html">about</a>
</ul>
2023-05-26 09:00:48 +00:00
</nav>
</header>
2023-05-26 09:00:48 +00:00
"""
2023-05-26 09:00:48 +00:00
NOTICE = """
---
*Remember, - all you see here is free for use for any purpose whatsoever.*
"""
TAIL_EMBED = """
</div>
"""
2023-05-22 11:21:00 +00:00
ADJECTIVES = ["*wild*", "**wacky**", "very humble", "**most serious**"]
MONTHS = {
1: "January",
2: "February",
3: "March",
4: "April",
5: "May",
6: "June",
7: "July",
8: "August",
9: "September",
10: "October",
11: "November",
12: "December"
}
WEEKDAYS = {
0: "Monday",
1: "Tuesday",
2: "Wednesday",
3: "Thursday",
4: "Friday",
5: "Saturday",
6: "Sunday"
}
def wrap_page(page: str) -> str:
2023-05-26 09:00:48 +00:00
return HEAD_EMBED + page + NOTICE + TAIL_EMBED