-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhfeedello.html
44 lines (44 loc) · 1.17 KB
/
hfeedello.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
<html>
<head><title>unmunged ello for {{feed.name}}</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="styles/hfeed.css" media="all" rel="stylesheet" type="text/css" />
<script src="static/fragmention.js"></script>
</head>
<body class="h-feed">
<h1 class="p-name"><a class="u-url" href="https://ello.co/{{feed.username}}">{{feed.name}}</a></h1>
<p class="p-author h-card">
<img src="{{feed.avatar_url}}" class="u-photo" />
<h2 class="p-name">{{feed.name}}</h2>
<ul>
{% for entry in feed %}
<article class="h-entry">
{% for bodypart in entry.body %}
{% if bodypart.kind=="text" %}
<div class="e-content">
{% autoescape false %}
{{bodypart.data}}
{% endautoescape %}
</div>
{% endif %}
{% if bodypart.kind=="image" %}
<div class="e-content">
<img class="u-photo" width=100% src="{{bodypart.data.url}}" alt="{{bodypart.data.alt}}" />
</div>
{% endif %}
{% endfor %}
{% if entry.created_at %}
<p><time class="dt-published" datetime="{{entry.created_at}}">Created: {{entry.created_at}}</time>
{% endif %}
</article>
<hr>
{% endfor %}
{% if raw == 'on' %}
<code>{{feeds}}
<p>{{feed}}
<p>
{{entries}}
</code>
{% endif %}
</body>
</html>