diff --git a/app/main.py b/app/main.py index de25460..a6fe14b 100644 --- a/app/main.py +++ b/app/main.py @@ -1229,6 +1229,19 @@ async def remote_interaction( {"outbox_object": outbox_object}, ) +@app.get("/contact") +async def serve_contact( + request: Request, + db_session: AsyncSession = Depends(get_db_session), +) -> templates.TemplateResponse: + return await templates.render_template( + db_session, + request, + "contact.html", + {}, + ) + + @app.post("/remote_interaction") async def post_remote_interaction( @@ -1616,7 +1629,8 @@ Disallow: /followers Disallow: /following Disallow: /admin Disallow: /remote_interaction -Disallow: /remote_follow""" +Disallow: /remote_follow +Disallow: /contact""" async def _get_outbox_for_feed(db_session: AsyncSession) -> list[models.OutboxObject]: diff --git a/app/templates/contact.html b/app/templates/contact.html new file mode 100644 index 0000000..3c6f865 --- /dev/null +++ b/app/templates/contact.html @@ -0,0 +1,29 @@ +{%- import "utils.html" as utils with context -%} +{% extends "layout.html" %} + +{% block head %} +blog.zak - Chat +{% endblock %} + +{% block content %} +{% include "header.html" %} + +

+ You can find me on QuakeNet IRC under the nickname zaklaus. I am also available on Discord under the handle zpl-zak#0302. +

+ +

+ You can join zpl Discord server at discord.gg/7pJpfw7hYn or reach me on IRC in the #zaklaus channel on QuakeNet. +

+ +

+ I also receive an E-Mail, reach me at contact [at] madaraszd.net +

+ +

+ Out of convenience, here's a pre-configured IRC webchat you can use to reach me quickly: +

+ + + +{% endblock %} diff --git a/app/templates/header.html b/app/templates/header.html index 2f515dd..7ea095c 100644 --- a/app/templates/header.html +++ b/app/templates/header.html @@ -59,6 +59,7 @@ {% if not HIDES_FOLLOWING %}
  • {{ header_link("following", "Following") }} {{ following_count }}
  • {% endif %} +
  • {{ header_link("serve_contact", "Contact") }}
  • {{ header_link("get_remote_follow", "Remote follow") }}
  • {% for navbar_item in NAVBAR_ITEMS.EXTRA_NAVBAR_ITEMS %} {{ navbar_item_link(navbar_item) }}