mjestecko/tools/page_shares.py
veclav talica 1098e6551d proper nav
2024-02-10 20:09:30 +05:00

60 lines
1.0 KiB
Python

HEAD_EMBED = """
<div class="container">
<header>
<nav>
<ul>
<li><a href="/"><strong>mjestečko</strong></a></li>
<li><a href="https://git.poto.cafe/veclavtalica/mjestecko">source</a></li>
<li><a href="/tracks.html">tracks</a></li>
<li><a href="/feed.xml">rss</a></li>
<li><a href="/articles/mjestečko.html">about</a></li>
</ul>
</nav>
</header>
"""
NOTICE = """
---
*Remember, - all you see here is free for use for any purpose benefiting the humanity as a whole.*
"""
TAIL_EMBED = """
</div>
"""
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:
return HEAD_EMBED + page + NOTICE + TAIL_EMBED