-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
61 lines (39 loc) · 2.08 KB
/
index.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
---
layout: default
---
{% for post in paginator.posts %}
<article class="post" itemscope itemtype="http://schema.org/BlogPosting">
<div class="main-content" itemprop="articleBody">
<a name="blog{{ forloop.index }}"></a>
<header class="post-header">
<a class="post-link" href="{{ post.url | prepend: site.baseurl }}"><h3 class="post-title" itemprop="name headline">{{ post.title }}</h3> </a>
</header>
{{ post.content }}
<p class="post-meta" style="text-align: right; color: rgb(152,152,152);"><time datetime="{{ post.date | date_to_xmlschema }}" itemprop="datePublished">{{ post.date | date: "%b %-d, %Y" }}</time>{% if page.author %} • <span itemprop="author" itemscope itemtype="http://schema.org/Person"><span itemprop="name">{{ post.author }}</span></span>{% endif %}</p>
<span>
<input type="checkbox" id="our-popup-{{ forloop.index }}" class="smoosh" />
<!-- invisible; when checked, the popup opens -->
<label for="our-popup-{{ forloop.index }}" class="overlay"></label>
<!-- the popup starts here -->
<div class="overlay-dialogue">
<h3>Share "{{ post.title }}"</h3>
<!-- Target -->
<input id="foo{{ forloop.index }}" value="{{ site.url }}{{ post.url }}" type="url">
<!-- Trigger -->
<button class="share-btn" data-clipboard-target="#foo{{ forloop.index }}">COPY LINK
</button>
<p style="text-align: center;">Share on: <a href="https://www.facebook.com/sharer/sharer.php?u={{ site.url }}{{ post.url }}" target="_blank">Facebook</a> • <a href="https://twitter.com/share?url={{ site.url }}{{ post.url }}&text={{ post.title }}" target="_blank">Twitter</a>
<p style="text-align: center;"><label for="our-popup-{{ forloop.index }}">cancel</label></p>
</div>
</span>
</div>
</article>
{% endfor %}
<div class="pagination" style="text-align: center;">
{% if paginator.next_page %}
<h2><a href="{{ paginator.next_page_path }}" class="next">- more posts -</a></h2>
{% endif %}
{% if paginator.previous_page %}
<h2><a href="{{ paginator.previous_page_path }}" class="previous">- previous page -</a></h2>
{% endif %}
</div>