aboutsummaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorjwansek <eddie.atten.ea29@gmail.com>2025-04-08 17:42:04 +0100
committerjwansek <eddie.atten.ea29@gmail.com>2025-04-08 17:42:04 +0100
commit4909153556a84d0b968005cc8b43df528f2dde1d (patch)
tree8b82e9dd20a260ab82ee66fa69ce2a1fadd6d473 /templates
parentf422d957177563a89a4b7792fe395588bb157e10 (diff)
downloadeda.gay-4909153556a84d0b968005cc8b43df528f2dde1d.tar.gz
eda.gay-4909153556a84d0b968005cc8b43df528f2dde1d.zip
Added scraping whispa for Q&As
Diffstat (limited to 'templates')
-rw-r--r--templates/questions.html.j210
1 files changed, 7 insertions, 3 deletions
diff --git a/templates/questions.html.j2 b/templates/questions.html.j2
index 97edd38..eb58380 100644
--- a/templates/questions.html.j2
+++ b/templates/questions.html.j2
@@ -1,9 +1,13 @@
{% extends "template.html.j2" %}
{% block content %}
- <h4><a href="https://whispa.sh/@boymoderology">ask a question!</a></h4>
+ <h4><a href="{{ qnas_link }}">ask a question!</a></h4>
<dl>
- {% for id_, link, dt, question, answer in qnas %}
- <dt><a href="{{ link }}">{{ dt.isoformat() }}</a></dt>
+ {% for id_, link, dt, question, answer, host in qnas %}
+ {% if host == "curiouscat" %}
+ <dt class="qnaheader"><a href="{{ link }}">{{ dt.isoformat() }}</a> - {{ host }}</dt>
+ {% else %}
+ <dt class="qnaheader">{{ dt.isoformat() }} - {{ host }}</dt>
+ {% endif %}
<dd>
<dt class="question"><p>{{ question }}</p></dt>
<dd class="answer"><p>{{ answer }}</p></dd>