60 lines
994 B
Python
60 lines
994 B
Python
|
|
HEAD_EMBED = """
|
|
|
|
<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>
|
|
</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
|