-
Notifications
You must be signed in to change notification settings - Fork 1
/
entry.html
168 lines (143 loc) · 6.01 KB
/
entry.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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>{{category.name}}: {{ entry.title(markup=False) }}</title>
<link rel="stylesheet" href="{{ entry.stylesheet or 'style.css' }}">
<link rel="stylesheet" href="{{ static('lightbox/css/lightbox.min.css') }}">
<link rel="alternate" type="application/atom+xml" title="Atom feed" href="feed" />
<link rel="shortcut icon" href="{{ static('favicon.ico') }}" />
<link rel="icon" type="image/png" href="{{ static('favicon.png') }}" />
<link rel="shortcut" href="{{ entry.link(absolute=True,expand=False) }}" />
{% include '/_webmention.html' %}
<link rel="up" href="{{category.link}}" />
{% if entry.previous %}
<link rel="previous" href="{{entry.previous.link}}" />
{% endif %}
{% if entry.next %}
<link rel="next" href="{{entry.next.link}}" />
{% endif %}
{% block scripthooks %}
{% endblock %}
<script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.4/latest.js?config=TeX-MML-AM_CHTML" async></script>
{{ entry.card(width=800,height=800) }}
<meta property="og:type" content="website" />
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:creator" content="@fluffy" />
</head>
<body id="{{ template.name }}">
<div id="container">
<div class="top-hook"></div>
<div id="banner">
<div class="top-hook"></div>
<h1><a href="{{category.link}}">{{category.name}}</a></h1>
</div>
<div id="entries">
<div class="top-hook"></div>
{% set prev = entry.previous(entry_type_not='sidebar') %}
{% set next = entry.next(entry_type_not='sidebar') %}
{% if prev or next %}
<div class="nav topnav">
<div>
<span class="prev">
{% if prev %}
<a href="{{prev.link}}">{{prev.title}}</a>
{% endif %}
</span>
<span class="next">
{% if next %}
<a href="{{next.link}}">{{next.title}}</a>
{% endif %}
</span>
</div>
</div>
{% endif %}
<article class="h-entry entry">
<header class="heading">
{% block heading %}
<div class="top-hook"></div>
<h2 class="p-name"><a href="{{entry.link}}" class="u-url">{{entry.title}}</a></h2>
<div class="posted"><time class="dt-published" datetime="{{entry.date.isoformat()}}">
<span class="date">{{entry.date.format('YYYY/MM/DD')}}</span>
<span class="time">{{entry.date.format('h:mm A')}}</span>
<span class="ago">{{entry.date.humanize()}}</span></time>
{%- if entry.author -%}
<span class="author">
by <a rel="author" href="{{entry['Author-URL'] or '/'}}" class="p-author h-card">{{entry.author or 'fluffy'}}</a>
</span>
{%- else -%}
{%- include '/_hcard.html' -%}
{%- endif -%}
{% if entry.summary %}
<span class="hidden p-summary">{{ entry.summary }}</span>
{% endif %}
</div>
{% endblock %}
</header>
{% block entrytags %}
{% if entry.tags %}
<nav class="tags">Tags:
<ul class="tags">
{% for tag in entry.tags %}
<li><a rel="tag" href="{{entry.archive(tag=tag)}}">{{tag}}</a></li>
{% endfor %}
</ul></nav>
{% endif %}
{% endblock %}
{%- for type in ('like-of', 'in-reply-to', 'repost-of', 'bookmark-of', 'mention-of') -%}
{%- for link in entry.get_all(type) -%}
<a href="{{link}}" class="hidden u-{{type}}"></a>
{%- endfor -%}
{%- endfor -%}
{%- for rsvp in entry.get_all('rsvp') -%}
<a class="hidden u-in-reply-to p-rsvp" href="{{rsvp.split()[0]}}">{{rsvp.split()[1]}}</a>
{%- endfor -%}
<a class="hidden" href="https://fed.brid.gy/"></a>
<div class="content e-content">
{% block entrybody %}
{% if entry.body %}
<div id="preamble" class="body">
{{entry.body(gallery_id=entry.uuid,
div_class='images',
img_class='u-photo',
width=960,
height=640,
fullsize_width=3840,
fullsize_height=2160,
fullsize_quality=35)}}
</div>
{% endif %}
{% endblock %}
{% block entrymore %}
{% if entry.more %}
<div id="more">
{{entry.more(gallery_id=entry.uuid,
div_class='images',
img_class='u-photo',
width=360,
height=360,
fullsize_width=3840,
fullsize_height=2160,
fullsize_quality=35)}}
</div>
{% endif %}
{% endblock %}
</div>
{% block webmentions %}
<div class="webmentions" id="webmentions"></div>
{% endblock %}
{% block comments %}
<div class="comments" id="comments">
<div class="heading">
<h2>Comments</h2>
</div>
{% include '/_comment_thread.html' %}
</div>
{% endblock %}
</article>
</div>
</div>
<script src="{{ static('lightbox/js/lightbox-plus-jquery.min.js') }}"></script>
</body></html>