-
Notifications
You must be signed in to change notification settings - Fork 0
/
page.twig
70 lines (58 loc) · 3.06 KB
/
page.twig
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
{% set published = metatabs.meta.manualdate ? metatabs.meta.manualdate : metatabs.meta.modified %}
{% if content is empty %}
<h1>{{ item.name }}</h1>
{% endif %}
<h1>{{ title }}</h1>
{% if (settings.themes.typemill.socialPosition.top or settings.themes.typemill.modifiedPosition.top or settings.themes.typemill.authorPosition.top or settings.themes.typemill.gitPosition.top) %}
<div class="meta-info">
{% if settings.themes.typemill.authorPosition.top %}
<small>{{ settings.themes.typemill.authorIntro }}: {{ metatabs.meta.author|default(settings.author) }}</small>
{% endif %}
{% if settings.themes.typemill.modifiedPosition.top %}
<small>{{ settings.themes.typemill.modifiedText }}: {{ published|date(settings.themes.typemill.modifiedFormat) }}</small>
{% endif %}
{% if settings.themes.typemill.socialPosition.top %}
<div id="share-icons" class="share-icons hide">
{% include 'partials/share.twig' with {'share' : settings.themes.typemill.socialButtons } %}
<div class="share-button" id="share-button">
<i class="icon-share"></i>
</div>
</div>
{% endif %}
{% if settings.themes.typemill.gitPosition.top %}
<div class="gitlink"><a title="edit on github" href="{{ settings.themes.typemill.gitlink }}{{ item.path }}">edit <i class="icon-github-circled"></i></a></div>
{% endif %}
</div>
{% endif %}
{{ content }}
{% if (settings.themes.typemill.socialPosition.bottom or settings.themes.typemill.modifiedPosition.bottom or settings.themes.typemill.authorPosition.bottom or settings.themes.typemill.gitPosition.bottom) %}
<div class="meta-info">
{% if settings.themes.typemill.authorPosition.bottom %}
<small>{{ settings.themes.typemill.authorIntro }}: {{ metatabs.meta.author|default(settings.author) }}</small>
{% endif %}
{% if settings.themes.typemill.modifiedPosition.bottom %}
<small>{{ settings.themes.typemill.modifiedText }}: {{ published|date(settings.themes.typemill.modifiedFormat) }}</small>
{% endif %}
{% if settings.themes.typemill.socialPosition.bottom %}
<div id="share-icons-bottom" class="share-icons hide">
{% include 'partials/share.twig' with {'share' : settings.themes.typemill.socialButtons } %}
<div id="share-button-bottom" class="share-button">
<i class="icon-share"></i>
</div>
</div>
{% endif %}
{% if settings.themes.typemill.gitPosition.bottom %}
<div class="gitlink"><a title="edit on github" href="{{ settings.themes.typemill.gitlink }}{{ item.path }}">edit <i class="icon-github-circled"></i></a></div>
{% endif %}
</div>
{% endif %}
{% if item.prevItem or item.nextItem %}
<div class="paging">
{% if item.prevItem %}
<span class="prev"><a href="{{ item.prevItem.urlRel }}"><i class="icon-left-open-big"></i> {{ item.prevItem.name }}</a></span>
{% endif %}
{% if item.nextItem %}
<span class="next"><a href="{{ item.nextItem.urlRel }}">{{ item.nextItem.name }} <i class="icon-right-open-big"></i></a></span>
{% endif %}
</div>
{% endif %}