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

Loading…
Cancel
Save