neddit

the frontend of the frontpage of the internet  https://neddit.ce9e.org
git clone https://git.ce9e.org/neddit.git

commit
ef4a576afd771e689caf53998ad60d0ae76964c4
parent
dd00f1ea184613a2bbb6de2148eedae7f8c068d9
Author
Tobias Bengfort <tobias.bengfort@posteo.de>
Date
2023-12-08 17:47
wrap comment in <article>

to remove headers from landmark navigation

Diffstat

M templates/_comment.html 36 +++++++++++++++++++-----------------

1 files changed, 19 insertions, 17 deletions


diff --git a/templates/_comment.html b/templates/_comment.html

@@ -1,17 +1,19 @@
    1    -1 <header>
    2    -1 	<a class="user" href="/u/{{ comment.data.author }}/">{{ comment.data.author }}</a>
    3    -1 	<span class="meta">
    4    -1 		{{ comment.data.score|k }} points
    5    -1 		&middot;
    6    -1 		<a href="{{ comment.data.permalink }}">{{ comment.data.created_utc|dt }}</a>
    7    -1 	</span>
    8    -1 </header>
    9    -1 {{ comment.data.body_html|safe }}
   10    -1 {% if comment.data.replies %}
   11    -1 	<details>
   12    -1 		<summary class="comments-replies">replies</summary>
   13    -1 		{% with comments=comment.data.replies, parent=comment %}
   14    -1 			{% include '_comments.html' %}
   15    -1 		{% endwith %}
   16    -1 	</details>
   17    -1 {% endif %}
   -1     1 <article>
   -1     2 	<header>
   -1     3 		<a class="user" href="/u/{{ comment.data.author }}/">{{ comment.data.author }}</a>
   -1     4 		<span class="meta">
   -1     5 			{{ comment.data.score|k }} points
   -1     6 			&middot;
   -1     7 			<a href="{{ comment.data.permalink }}">{{ comment.data.created_utc|dt }}</a>
   -1     8 		</span>
   -1     9 	</header>
   -1    10 	{{ comment.data.body_html|safe }}
   -1    11 	{% if comment.data.replies %}
   -1    12 		<details>
   -1    13 			<summary class="comments-replies">replies</summary>
   -1    14 			{% with comments=comment.data.replies, parent=comment %}
   -1    15 				{% include '_comments.html' %}
   -1    16 			{% endwith %}
   -1    17 		</details>
   -1    18 	{% endif %}
   -1    19 </article>