2023-05-21 17:23:39 +00:00
|
|
|
|
|
|
|
HEAD_EMBED = """
|
|
|
|
|
2023-05-26 09:00:48 +00:00
|
|
|
<div class="container">
|
|
|
|
<header>
|
|
|
|
<nav>
|
2024-02-10 15:09:30 +00:00
|
|
|
<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="/feed.xml">rss</a></li>
|
|
|
|
<li><a href="/articles/mjestečko.html">about</a></li>
|
2023-05-21 17:23:39 +00:00
|
|
|
</ul>
|
2023-05-26 09:00:48 +00:00
|
|
|
</nav>
|
|
|
|
</header>
|
2023-05-21 17:23:39 +00:00
|
|
|
|
2023-05-26 09:00:48 +00:00
|
|
|
"""
|
2023-05-21 17:23:39 +00:00
|
|
|
|
2023-05-26 09:00:48 +00:00
|
|
|
NOTICE = """
|
|
|
|
---
|
2023-06-09 11:22:20 +00:00
|
|
|
*Remember, - all you see here is free for use for any purpose benefiting the humanity as a whole.*
|
2023-05-21 17:23:39 +00:00
|
|
|
|
|
|
|
"""
|
|
|
|
|
|
|
|
TAIL_EMBED = """
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
"""
|
|
|
|
|
2023-05-22 11:21:00 +00:00
|
|
|
ADJECTIVES = ["*wild*", "**wacky**", "very humble", "**most serious**"]
|
|
|
|
|
2023-05-22 13:29:58 +00:00
|
|
|
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"
|
|
|
|
}
|
|
|
|
|
2023-05-21 17:23:39 +00:00
|
|
|
def wrap_page(page: str) -> str:
|
2023-05-26 09:00:48 +00:00
|
|
|
return HEAD_EMBED + page + NOTICE + TAIL_EMBED
|