forked from stylehatch/bryant
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
110 lines (110 loc) · 4.25 KB
/
Copy pathindex.html
File metadata and controls
110 lines (110 loc) · 4.25 KB
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
---
layout: layout
title: "index"
weight: 1
---
<body class="index-page">
<div class="container" id="main" role="main">
<!-- Posts -->
<div class="posts">
{% for post in paginator.posts %}
<!-- text post -->
{% if post.type == 'text' %}
<article class="text">
<header>
<h2><a href="{% if site.baseurl %}{{ site.baseurl }}{% endif %}{{ post.url }}">{{ post.title }}</h2></a>
</header>
<section>
{{ post.content }}
<!-- photo post -->
{% elsif post.type == 'photo' %}
<article class="photo">
<header>
<a href="{% if site.baseurl %}{{ site.baseurl }}{% endif %}{{ post.url }}"><img src="{% if site.baseurl %}{{ site.baseurl }}{% endif %}{{ post.photo_url }}" alt="{{ post.title }}" /></a>
<a class="highres photo-link etp-zoom" href="{% if site.baseurl %}{{ site.baseurl }}{% endif %}{{ post.photo_url }}">Zoom</a>
<a href="{% if site.baseurl %}{{ site.baseurl }}{% endif %}{{ post.url }}" class="permalink-button photo-link">
<span class="icon-link etp-permalink"></span>
<strong>Permalink</strong>
</a>
</header>
<section>
<ul class="exif">
{% if post.camera %}
<li class="etp-camera">Camera: <strong>{{ post.camera }}</strong></li>
{% endif %}
{% if post.apeture %}
<li>Apeture: <strong>{{ post.apeture }}</strong></li>
{% endif %}
{% if post.exposure %}
<li>Exposure: <strong>{{ post.exposure }}</strong></li>
{% endif %}
{% if post.focal_length %}
<li>Focal: <strong>{{ post.focal_length }}</strong></li>
{% endif %}
</ul>
{{ post.content }}
<!-- quote post -->
{% elsif post.type == 'quote' %}
<article class="quote">
<header>
<p><span class="quote_start">“</span>{{ post.title }}<span class="quote_end">”</span></p>
</header>
<section>
{% if post.source %}<p>{{ post.source }}</p>{% endif %}
{{ post.content }}
<!-- link post -->
{% elsif post.type == 'link' %}
<article class="link">
<header>
<h2><a href="{{ post.link }}"><span>{{ post.title }}</span></a></h2>
</header>
<section>
{{ post.content }}
<!-- embed post -->
{% elsif post.type == 'embed' %}
<article class="video">
<header>
{{ post.embed_code }}
</header>
<section>
{{ post.content }}
<!-- any other post -->
{% else %}
<article class="text">
<header>
<h2><a href="{% if site.baseurl %}{{ site.baseurl }}{% endif %}{{ post.url }}">{{ post.title }}</h2></a>
</header>
<section>
{{ post.content }}
{% endif %}
<!-- post footer -->
</section>
<footer>
<ul class="meta">
<li class="time"><a href="{% if site.baseurl %}{{ site.baseurl }}{% endif %}{{ post.url }}" class="etp-timeago">{{ post.date | date_to_string }}</a></li>
{% if site.disqus_shortname %}
<li class="comments"><a href="{% if site.baseurl %}{{ site.baseurl }}{% endif %}{{ post.url }}#disqus_thread" class="dsq-comment-count semihidden etp-comments"> </a></li>
{% endif %}
</ul>
</footer>
</article>
{% endfor %}
</div>
<!-- end posts -->
<div class="pagination">
<nav id="pagination">
<ul>
{% if paginator.previous_page %}
{% if paginator.previous_page == 1 %}
<li class="prev active"><a href="{% if site.baseurl %}{{ site.baseurl }}{% endif %}/" class="previous button etp-previous">Prev Page</a></li>
{% else %}
<li class="prev active"><a href="{% if site.baseurl %}{{ site.baseurl }}{% endif %}/page{{paginator.previous_page}}" class="previous button etp-previous">Prev Page</a></li>
{% endif %}
{% endif %}
{% if paginator.next_page %}
<li class="next active"><a href="{% if site.baseurl %}{{ site.baseurl }}{% endif %}/page{{paginator.next_page}}" class="next button etp-next">Next Page</a></li>
{% endif %}
</ul>
</nav>
</div>
</div>