SimpleSyndicate/templates/index.html
2019-04-07 14:15:07 -04:00

35 lines
969 B
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>
<script>window.onload = load;</script>
</head>
<body>
<div>
Style sheet:
<select id="styleSheetSelector" onChange="swapStyleSheet()">
<option name="ss.css" value="ss.css">Light</option>
<option name="ss-dark.css" value="ss-dark.css">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>