-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhovercard2.html
49 lines (48 loc) · 1.29 KB
/
hovercard2.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
45
46
47
48
49
<html>
<head><title>{{name}}</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="styles/hovercard2.css" media="all" rel="stylesheet" type="text/css" />
</head>
<body>
<div class="{{type}} indiecard">
{% if banner %}
<div class="u-featured">
<img src={{banner}} />
</div>
{% endif %}
<h1 >{% if photo %}
<a class="figure" href="{{url}}"><img src="{{photo}}" class="u-photo" /></a>
{% endif %}
<a class="u-url p-name" href="{{url}}">
<svg width="100%" height="100%"><text x="0%" y="80%" font-size="30vh" textLength="100%" lengthAdjust="spacingAndGlyphs">{{name}}</text></svg>
</a></h1>
{% if summary %}
{% autoescape false %}
<h2 class="e-summary">{{summary}}</h2>
{% endautoescape %}
{% endif %}
{% if org %}
{% autoescape false %}
<h3 class="p-org h-card">{{org}}</h3>
{% endautoescape %}
{% endif %}
{% if entries %}
<div class="h-feed">
{% for entry in entries %}
<div class="h-entry"><a href="{{entry.url}}"><h3 class="e-name">{{entry.name}}</h3></a>
{% if entry.featured %}
<div class="u-featured">
<img src="{{entry.featured}}" />
</div>
{% elif entry.photo %}
<div class="figure"><img class="u-photo" src="{{entry.photo}}" /></div>
{% endif %}
<p class="e-summary">{{entry.summary}}</p>
</div>
{% endfor %}
</div>
{% endif %}
</div>
</body>
</html>