-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtest.html
75 lines (74 loc) · 3.46 KB
/
test.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
Skip to content
This repository
Explore
Gist
Blog
Help
XiaoJu Zhang juvion
7 Watch
Star 35
Fork 12davidensinger/davidensinger.github.io
branch: source davidensinger.github.io/app/_layouts/post.html
David Ensingerdavidensinger on Nov 11, 2014 Add previous, next JS navigation to site.
1 contributor
59 lines (58 sloc) 3.104 kb RawBlameHistory
---
page-class: page-post
---
{% include header.html %}
<article class="post hentry clearfix">
<header class="entry-header">
<h1 class="entry-title">{{ page.title }}</h1>
<div class="entry-meta entry-meta--header">
<span class="entry-meta--icon">
{% include icons/icon-clock.svg %}
</span>
<time class="date updated" datetime="{{ page.date | date_to_xmlschema }}">{{ page.date | date: "%B %d, %Y" }}</time>
</div>
</header>
<div class="entry-content">
{{ content }}
</div>
<footer class="entry-meta entry-meta--footer">
<div class="entry-meta--footer__top entry-meta--suggested__tweet">
<h3 class="suggested-tweet--title">Spread the Word</h3>
{% capture suggested_tweet %}https://twitter.com/intent/tweet?text={% if page.suggested_tweet.text %}{{ page.suggested_tweet.text | cgi_escape }}{% else %}{{ page.title | cgi_escape }}{% endif %}&url={{ site.url }}{{ page.url }}&via={{ site.twitter }}{% if page.suggested_tweet.related %}&related={{ page.suggested_tweet.related | join: ',' | cgi_escape }}{% else %}&related={{ site.twitter }}{% endif %}{% if page.suggested_tweet.hashtags %}&hashtags={{ page.suggested_tweet.hashtags | join: ',' | cgi_escape }}{% endif %}{% if page.suggested_tweet.in_reply_to %}&in_reply_to={{ page.suggested_tweet.in_reply_to }}{% endif %}{% endcapture %}
<a href="{{ suggested_tweet }}" class="suggested-tweet--bubble">
<span class="suggested-tweet--bubble__text">{% if page.suggested_tweet.text %}{{ page.suggested_tweet.text }}{% else %}{{ page.title }}{% endif %}</span>
{% if page.suggested_tweet.hashtags %}
{% for hashtag in page.suggested_tweet.hashtags %}
<span class="suggested-tweet--hashtag">#{{ hashtag }}</span>
{% endfor %}
{% endif %}
</a>
<p class="suggested-tweet--text"><a href="{{ suggested_tweet }}" class="suggested-tweet--link"><span class="suggested-tweet--icon">{% include icons/icon-twitter.svg %}</span>Click to Tweet</a> <small>(you may edit before posting.)</small></p>
</div>
{% if page.tags != empty %}
<div class="entry-meta--footer__bottom">
{% if page.tags != empty %}
<span class="entry-meta--icon">
{% include icons/icon-tag.svg %}
</span>
{% for tag in page.tags %}
<a class="nav-link--tag" href="/tag/{{ tag | slugify }}" rel="tag">{{ tag }}</a>{% if forloop.last == false %}, {% endif %}
{% endfor %}
{% endif %}
</div>
{% endif %}
</footer>
</article>
<nav class="post-navigation clearfix" role="navigation">
{% if page.previous %}
<div class="nav-previous">
<a id="js-navigation--previous" class="nav-previous--link" href="{{ site.url }}{{ page.previous.url }}" rel="prev">{{ page.previous.title }}</a>
</div>
{% endif %}
{% if page.next %}
<div class="nav-next">
<a id="js-navigation--next" class="nav-next--link" href="{{ site.url }}{{ page.next.url }}" rel="next">{{ page.next.title }}</a>
</div>
{% endif %}
</nav>
{% include footer.html %}
Status API Training Shop Blog About
© 2015 GitHub, Inc. Terms Privacy Security Contact