quick and dirty way of adding ids and class per feed

This commit is contained in:
crunk 2023-06-08 23:11:24 +02:00
parent 5d6617da43
commit 9fe56e9507

View File

@ -2,12 +2,12 @@
{% block main %}
<div class="crunkcolumns">
{% for column in columns %}
<div class="feed">
<div class="feed {{ column.title.replace(' ', '') }}">
<h1>{{ column.title }}</h1>
{% for feedtitle, text in column.entries.items() %}
<div class="feeditem">
<div class="feeditem" id="{{ column.title.replace(' ', '') + '_' + feedtitle.replace(' ', '') }}">
<h2>{{ feedtitle }}</h2>
{{ text[0]|safe }}
<div>{{ text[0]|safe }}</div>
</div>
{% endfor%}
</div>