-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathpage.html
67 lines (67 loc) · 3.07 KB
/
page.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
<article lang="{{ page.lang or "en" }}" class="{{ page.section }}" itemscope="itemscope" itemtype="http://schema.org/{{ item_type or "BlogPosting" }}">
<link itemprop="url" href="{{ url_for("page", path=page.path) }}" />
<header>
<h2><a itemprop="name" href="{{ url_for("page", path=page.path) }}">{{ page.title }}</a></h2>
{%- if page.subtitle -%}
<h3>{{ page.subtitle }}</h3>
{%- endif -%}
</header>
{% if not page.published %}
<div style="background:orange;color:#fff;padding:5px 10px">⚠ This content is not published</div>
{% endif %}
<section>
{%- if page.type == "photo" %}
<aside class="help">
Navigate using <kbd>j</kbd> and <kbd>k</kbd> keys;
<kbd>v</kbd> key for toggling the large version
</aside>
<ul class="controls">
<li><a class="clearroom" href="" title="View on white">View on white</a></li>
<li><a class="greyroom" href="" title="View on grey">View on grey</a></li>
<li><a class="darkroom" href="" title="View on black">View on black</a></li>
</ul>
<figure class="photo">
<a href="/static/{{ page.path }}/main.jpg" title="{{ page.title }} — Click the picture to view it large" class="view">
<img src="/static/{{ page.path }}/main.jpg" alt="{{ page.title }} by Dan Connolly" data-fullsrc="/static/{{ page.path }}/original.jpg"/></a>
<figcaption>
{%- if page.summary|trim %}
{{- page.summary|trim }}
{% endif %}
{% if page.summary|trim and page.image_link %}
—
{% endif %}
{%- if page.image_link %}
<a href="{{ page.image_link }}">View it on 500px</a>
{%- endif %}
</figcaption>
</figure>
{%- endif %}
{{ page.html|safe }}
</section>
<aside>
<p>
<span class="article-author" itemprop="author" itemscope="itemscope" itemtype="http://schema.org/Person">
<span itemprop="name">Dan Connolly</span> —
</span>
<time datetime="{{ page.date }}" itemprop="datePublished">{{ page.date }}</time>
{% if section %}— in <a href="{{ url_for("section", section=section) }}" itemprop="genre">{{ section|capitalize }}</a>{% endif %}
— <a href="{{ url_for("page", path=page.path) }}">Permalink</a>
— <a rel="license" href="http://creativecommons.org/licenses/by-sa/3.0/">License</a>.
<br />
{% for tag in page.tags %}
| <a class='tag' rel='tag'
href="{{ url_for('search_tag', tag=tag) }}">{{ tag }}</a>
{% endfor %}
</p>
</aside>
<hr />
<nav>
{% if page.prev -%}
<a class="prev" href="{{ url_for("page", path=page.prev.path) }}">{{ page.prev.title }}</a>
{%- endif %}
{% if page.prev and page.next %}|{% endif %}
{% if page.next -%}
<a class="next" href="{{ url_for("page", path=page.next.path) }}">{{ page.next.title }}</a>
{%- endif %}
</nav>
</article>