Browse Source

quick and dirty way of adding ids and class per feed

main
crunk 1 year ago
parent
commit
9fe56e9507
  1. 6
      templates/index.html

6
templates/index.html

@ -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>

Loading…
Cancel
Save