SimpleSyndicate/templates/index.html

34 lines
1.0 KiB
HTML

<!DOCTYPE html>
<html>
<head>
<title>/ss/</title>
<link id="styleSheet" rel="stylesheet" type="text/css" href="/static/{{ style_sheet }}">
<script type="text/javascript" src="/static/ss.js"></script>
<script>
const set_session_url = '{{ url_for("set_session") }}';
</script>
</head>
<body>
<div>
Style sheet:
<select id="styleSheetSelector" onChange="swapStyleSheet()">
<option name="ss.css" value="ss.css"{% if style_sheet == 'ss.css' %} selected{% endif %}>Light</option>
<option name="ss-dark.css" value="ss-dark.css"{% if style_sheet == 'ss-dark.css' %} selected{% endif %}>Dark</option>
</select>
</div>
<div id="globalContainer">
{% for feed in feeds %}
<div>
<h3>{{ feed['meta']['title'] }}</h3>
{% if feed['error'] %}
<code>Error loading feed: {{ feed['error'] }}</code>
{% endif %}
{% for entry in feed['entries'] %}
<span class="date">{{ entry['date'] }}</span><a href="{{ entry['link'] }}">{{ entry['title'] }}</a><br>
{% endfor %}
</div>
{% endfor %}
</div>
</body>
</html>