Merge branch 'feature/add-meta-tags' into 'main'

add meta tags

See merge request ezgg/ezgg-website!14
This commit is contained in:
David Rodenkirchen 2024-06-03 05:22:13 +00:00
commit ff2afb4a2d

View File

@ -105,7 +105,6 @@ themes = [
async def on_session_start(s: rio.Session) -> None:
print(from_root("ezgg_website/assets/icons/favicon.png"))
await s.set_title("EZ GG e.V.")
# Create the Rio app
@ -158,5 +157,24 @@ app = rio.App(
icon=from_root("ezgg_website/assets/icons/favicon.png"),
assets_dir=Path(__file__).parent / "assets",
on_session_start=on_session_start,
default_attachments=[database_service]
default_attachments=[database_service],
meta_tags={
# "content-Type": "text/html; utf-8", # Temporarily disabled until "http-equiv" is supported by Rio
# "Pragma": "cache", # Temporarily disabled until "http-equiv" is supported by Rio
"robots": "INDEX,FOLLOW",
# "content-Language": "de", # Temporarily disabled until "http-equiv" is supported by Rio
"description": "Homepage der Einfach Zocken Genussgesellschaft. Ein eingetragener Verein der sich mit "
"Videospielen und themenverwandten Aktivitäten befasst.",
"keywords": "Gaming, Clan, Guild, Verein, Club, Einfach, Zocken, Genuss, Gesellschaft, Videospiele, "
"Videogames, LAN, Party",
"author": "David Rodenkirchen",
"publisher": "EZ GG e.V.",
"copyright": "EZ GG e.V.",
"audience": "Alle",
"page-type": "Private Homepage",
"page-topic": "Gesellschaft",
# "Reply-to": "vorstand@ezgg-ev.de", # Temporarily disabled until "http-equiv" is supported by Rio
"expires": "",
"revisit-after": "2 days"
}
)