|
2 | 2 | layout: default |
3 | 3 | --- |
4 | 4 | <div class="post"> |
5 | | - |
6 | | -<div class="post-header-container {% if page.cover %}has-cover{% endif %}" {% if page.cover %}style="background-image: url({{ page.cover | prepend: site.baseurl }});"{% endif %}> |
7 | | - <div class="scrim {% if page.cover %}has-cover{% endif %}"> |
8 | | - <header class="post-header"> |
9 | | - <h1 class="title">{{ page.title }}</h1> |
10 | | - <p class="info">by <strong>{{ page.author }}</strong></p> |
11 | | - </header> |
| 5 | + <div class="post-header-container {% if page.cover %}has-cover{% endif %}" {% if page.cover %}style="background-image: url({{ page.cover | prepend: site.baseurl }});"{% endif %}> |
| 6 | + <div class="scrim {% if page.cover %}has-cover{% endif %}"> |
| 7 | + <header class="post-header"> |
| 8 | + <h1 class="title">{{ page.title }}</h1> |
| 9 | + <p class="info">by <strong>{{ page.author }}</strong></p> |
| 10 | + </header> |
| 11 | + </div> |
12 | 12 | </div> |
13 | | -</div> |
14 | 13 |
|
15 | | -<div class="wrapper"> |
| 14 | + <div class="wrapper"> |
| 15 | + {% unless page.cover %} {% include page_divider.html %} {% endunless %} |
16 | 16 |
|
17 | | -{% unless page.cover %} {% include page_divider.html %} {% endunless %} |
| 17 | + <section class="post-meta"> |
| 18 | + <div class="post-date">{{ page.date | date: "%B %-d, %Y" }}</div> |
| 19 | + <div class="post-categories"> |
| 20 | + {% if page.categories.size > 0 %}in |
| 21 | + {% for cat in page.categories %} |
| 22 | + {% if site.jekyll-archives %} |
| 23 | + <a href="{{ site.baseurl }}/category/{{ cat }}">{{ cat | capitalize }}</a>{% if forloop.last == false %}, {% endif %} |
| 24 | + {% else %} |
| 25 | + <a href="{{ site.baseurl }}/posts/#{{ cat }}">{{ cat | capitalize }}</a>{% if forloop.last == false %}, {% endif %} |
| 26 | + {% endif %} |
| 27 | + {% endfor %} |
| 28 | + {% endif %} |
| 29 | + </div> |
| 30 | + </section> |
18 | 31 |
|
19 | | -<section class="post-meta"> |
20 | | - <div class="post-date">{{ page.date | date: "%B %-d, %Y" }}</div> |
21 | | - <div class="post-categories"> |
22 | | - {% if page.categories.size > 0 %}in {% for cat in page.categories %} |
23 | | - {% if site.jekyll-archives %} |
24 | | - <a href="{{ site.baseurl }}/category/{{ cat }}">{{ cat | capitalize }}</a>{% if forloop.last == false %}, {% endif %} |
25 | | - {% else %} |
26 | | - <a href="{{ site.baseurl }}/posts/#{{ cat }}">{{ cat | capitalize }}</a>{% if forloop.last == false %}, {% endif %} |
27 | | - {% endif %} |
28 | | - {% endfor %}{% endif %} |
29 | | - </div> |
30 | | -</section> |
| 32 | + <article class="post-content"> |
| 33 | + {{ content }} |
| 34 | + </article> |
31 | 35 |
|
32 | | -<article class="post-content"> |
33 | | - {{ content }} |
34 | | -</article> |
| 36 | + {% if site.jekyll-archives and page.tags.size > 0 %} |
| 37 | + <section class="tags"> |
| 38 | + <strong>Tags:</strong> |
| 39 | + {% for tag in page.tags %} |
| 40 | + <a href="{{ site.baseurl }}/tag/{{ tag }}">{{ tag }}</a>{% if forloop.last == false %}, {% endif %} |
| 41 | + {% endfor %} |
| 42 | + </section> |
| 43 | + {% endif %} |
35 | 44 |
|
36 | | -{% if site.jekyll-archives %} |
37 | | -{% if page.tags.size > 0 %} |
38 | | -<section class="tags"> |
39 | | - <strong>Tags:</strong> {% for tag in page.tags %}<a href="{{ site.baseurl }}/tag/{{ tag }}">{{ tag }}</a>{% if forloop.last == false %}, {% endif %}{% endfor %} |
40 | | -</section> |
41 | | -{% endif %} |
42 | | -{% endif %} |
| 45 | + <section class="rss"> |
| 46 | + <p class="rss-subscribe text"><strong>Subscribe <a href="{{ "/feed.xml" | prepend: site.baseurl }}">via RSS</a></strong></p> |
| 47 | + </section> |
43 | 48 |
|
44 | | -<section class="rss"> |
45 | | - <p class="rss-subscribe text"><strong>Subscribe <a href="{{ "/feed.xml" | prepend: site.baseurl }}">via RSS</a></strong></p> |
46 | | -</section> |
| 49 | + <section class="share"> |
| 50 | + <span>Share: </span> |
| 51 | + {% for social in site.social %} |
| 52 | + {% capture full_url %}{{ site.url }}{{ site.baseurl }}{{ page.url }}{% endcapture %} |
| 53 | + {% if social.name == "Twitter" and social.share == true %} |
| 54 | + <a href="//twitter.com/share?text={{ page.title | cgi_escape }}&url={{ full_url | cgi_escape}}&via={{social.username}}" onclick="window.open(this.href, '{{ social.icon }}-share', 'width=550,height=255');return false;"> |
| 55 | + <i class="fa fa-{{ social.icon | remove_first: '-square' }}-square fa-lg"></i> |
| 56 | + </a> |
| 57 | + {% endif %} |
| 58 | + {% if social.name == "Facebook" and social.share == true %} |
| 59 | + <a href="//www.facebook.com/sharer.php?t={{ page.title | cgi_escape }}&u={{ full_url | cgi_escape}}" onclick="window.open(this.href, '{{ social.icon }}-share', 'width=550,height=255');return false;"> |
| 60 | + <i class="fa fa-{{ social.icon | remove_first: '-square' }}-square fa-lg"></i> |
| 61 | + </a> |
| 62 | + {% endif %} |
| 63 | + {% if social.name == "LinkedIn" and social.share == true %} |
| 64 | + <a href="//www.linkedin.com/shareArticle?mini=true&url={{ full_url | cgi_escape}}" onclick="window.open(this.href, '{{ social.icon }}-share', 'width=550,height=255');return false;"> |
| 65 | + <i class="fa fa-{{ social.icon | remove_first: '-square' }}-square fa-lg"></i> |
| 66 | + </a> |
| 67 | + {% endif %} |
| 68 | + {% if social.name == "Pinterest" and social.share == true %} |
| 69 | + <a href="//www.pinterest.com/pin/create/button/?description={{ page.title | cgi_escape }}&url={{ full_url | cgi_escape}}&media={{ site.url }}{% if page.cover %}{{ page.cover | prepend: site.baseurl }}{% elsif site.cover %}{{ site.cover | prepend: site.baseurl }}{% else %}{{ site.logo | prepend: site.baseurl }}{% endif %}" onclick="window.open(this.href, '{{ social.icon }}-share', 'width=550,height=255');return false;"> |
| 70 | + <i class="fa fa-{{ social.icon | remove_first: '-square' }}-square fa-lg"></i> |
| 71 | + </a> |
| 72 | + {% endif %} |
| 73 | + {% if social.name == "Reddit" and social.share == true %} |
| 74 | + <a href="//www.reddit.com/submit" onclick="window.location = '//www.reddit.com/submit?url=' + encodeURIComponent('{{ full_url }}') + '&title={{page.title}}'; return false"> |
| 75 | + <i class="fa fa-{{ social.icon | remove_first: '-square' }}-square fa-lg"></i> |
| 76 | + </a> |
| 77 | + {% endif %} |
| 78 | + {% if social.name == "Hacker News" and social.share == true %} |
| 79 | + <a href="//news.ycombinator.com/submitlink" onclick="window.location = '//news.ycombinator.com/submitlink?u=' + encodeURIComponent('{{ full_url }}') + '&t={{page.title}}'; return false"> |
| 80 | + <i class="fa fa-{{ social.icon | remove_first: '-square' }} fa-lg"></i> |
| 81 | + </a> |
| 82 | + {% endif %} |
| 83 | + {% endfor %} |
| 84 | + </section> |
47 | 85 |
|
48 | | -<section class="share"> |
49 | | - <span>Share: </span> |
50 | | - {% for social in site.social %} |
51 | | - {% capture full_url %}{{ site.url }}{{ site.baseurl }}{{ page.url }}{% endcapture %} |
52 | | - {% if social.name == "Twitter" and social.share == true %} |
53 | | - <a href="//twitter.com/share?text={{ page.title | cgi_escape }}&url={{ full_url | cgi_escape}}&via={{social.username}}" |
54 | | - onclick="window.open(this.href, '{{ social.icon }}-share', 'width=550,height=255');return false;"> |
55 | | - <i class="fa fa-{{ social.icon | remove_first: '-square' }}-square fa-lg"></i> |
56 | | - </a> |
57 | | - {% endif %} |
58 | | - {% if social.name == "Facebook" and social.share == true %} |
59 | | - <a href="//www.facebook.com/sharer.php?t={{ page.title | cgi_escape }}&u={{ full_url | cgi_escape}}" |
60 | | - onclick="window.open(this.href, '{{ social.icon }}-share', 'width=550,height=255');return false;"> |
61 | | - <i class="fa fa-{{ social.icon | remove_first: '-square' }}-square fa-lg"></i> |
62 | | - </a> |
63 | | - {% endif %} |
64 | | - {% if social.name == "Google+" and social.share == true %} |
65 | | - <a href="//plus.google.com/share?title={{ page.title | cgi_escape }}&url={{ full_url | cgi_escape}}" |
66 | | - onclick="window.open(this.href, '{{ social.icon }}-share', 'width=550,height=255');return false;"> |
67 | | - <i class="fa fa-{{ social.icon | remove_first: '-square' }}-square fa-lg"></i> |
68 | | - </a> |
69 | | - {% endif %} |
70 | | - {% if social.name == "LinkedIn" and social.share == true %} |
71 | | - <a href="//www.linkedin.com/shareArticle?mini=true&url={{ full_url | cgi_escape}}" |
72 | | - onclick="window.open(this.href, '{{ social.icon }}-share', 'width=550,height=255');return false;"> |
73 | | - <i class="fa fa-{{ social.icon | remove_first: '-square' }}-square fa-lg"></i> |
74 | | - </a> |
| 86 | + {% if site.inter_post_navigation == true %} |
| 87 | + <section class="post-navigation"> |
| 88 | + <span class="prev-post"> |
| 89 | + {% if page.previous.url %} |
| 90 | + <a href="{{page.previous.url | prepend: site.baseurl}}"> |
| 91 | + <span class="fa-stack fa-lg"> |
| 92 | + <i class="fa fa-square fa-stack-2x"></i> |
| 93 | + <i class="fa fa-angle-double-left fa-stack-1x fa-inverse"></i> |
| 94 | + </span> |
| 95 | + <span class="page-number">{{page.previous.title}}</span> |
| 96 | + </a> |
| 97 | + {% endif %} |
| 98 | + </span> |
| 99 | + <span class="next-post"> |
| 100 | + {% if page.next.url %} |
| 101 | + <a href="{{page.next.url | prepend: site.baseurl}}"> |
| 102 | + <span class="page-number">{{page.next.title}}</span> |
| 103 | + <span class="fa-stack fa-lg"> |
| 104 | + <i class="fa fa-square fa-stack-2x"></i> |
| 105 | + <i class="fa fa-angle-double-right fa-stack-1x fa-inverse"></i> |
| 106 | + </span> |
| 107 | + </a> |
| 108 | + {% endif %} |
| 109 | + </span> |
| 110 | + </section> |
75 | 111 | {% endif %} |
76 | | - {% if social.name == "Pinterest" and social.share == true %} |
77 | | - <a href="//www.pinterest.com/pin/create/button/?description={{ page.title | cgi_escape }}&url={{ full_url | cgi_escape}}&media={{ site.url }}{% if page.cover %}{{ page.cover | prepend: site.baseurl }}{% elsif site.cover %}{{ site.cover | prepend: site.baseurl }}{% else %}{{ site.logo | prepend: site.baseurl }}{% endif %}" |
78 | | - onclick="window.open(this.href, '{{ social.icon }}-share', 'width=550,height=255');return false;"> |
79 | | - <i class="fa fa-{{ social.icon | remove_first: '-square' }}-square fa-lg"></i> |
80 | | - </a> |
81 | | - {% endif %} |
82 | | - {% if social.name == "Reddit" and social.share == true %} |
83 | | - <a href="//www.reddit.com/submit" onclick="window.location = '//www.reddit.com/submit?url=' + encodeURIComponent('{{ full_url }}') + '&title={{page.title}}'; return false"> |
84 | | - <i class="fa fa-{{ social.icon | remove_first: '-square' }}-square fa-lg"></i> |
85 | | - </a> |
86 | | - {% endif %} |
87 | | - {% if social.name == "Hacker News" and social.share == true %} |
88 | | - <a href="//news.ycombinator.com/submitlink" onclick="window.location = '//news.ycombinator.com/submitlink?u=' + encodeURIComponent('{{ full_url }}') + '&t={{page.title}}'; return false"> |
89 | | - <i class="fa fa-{{ social.icon | remove_first: '-square' }} fa-lg"></i> |
90 | | - </a> |
91 | | - {% endif %} |
92 | | - {% endfor %} |
93 | | -</section> |
94 | | -{% if site.inter_post_navigation == true %} |
95 | | - <section class="post-navigation"> |
96 | | - <span class="prev-post"> |
97 | | - {% if page.previous.url %} |
98 | | - <a href="{{page.previous.url | prepend: site.baseurl}}"> |
99 | | - <span class="fa-stack fa-lg"> |
100 | | - <i class="fa fa-square fa-stack-2x"></i> |
101 | | - <i class="fa fa-angle-double-left fa-stack-1x fa-inverse"></i> |
102 | | - </span> |
103 | | - <span class="page-number">{{page.previous.title}}</span> |
104 | | - </a> |
105 | | - {% endif %} |
106 | | - </span> |
107 | | - <span class="next-post"> |
108 | | - {% if page.next.url %} |
109 | | - <a href="{{page.next.url | prepend: site.baseurl}}"> |
110 | | - <span class="page-number">{{page.next.title}}</span> |
111 | | - <span class="fa-stack fa-lg"> |
112 | | - <i class="fa fa-square fa-stack-2x"></i> |
113 | | - <i class="fa fa-angle-double-right fa-stack-1x fa-inverse"></i> |
114 | | - </span> |
115 | | - </a> |
116 | | - {% endif %} |
117 | | - </span> |
118 | | - </section> |
119 | | -{% endif %} |
120 | | - |
121 | | -{% if site.disqus_shortname %} |
122 | | -{% unless page.disqus_disabled %} |
123 | | -<section class="disqus"> |
124 | | - <div id="disqus_thread"></div> |
125 | | - <script type="text/javascript"> |
126 | | - var disqus_shortname = '{{ site.disqus_shortname }}'; |
127 | 112 |
|
128 | | - /* * * DON'T EDIT BELOW THIS LINE * * */ |
129 | | - (function() { |
130 | | - var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true; |
131 | | - dsq.src = '//' + disqus_shortname + '.disqus.com/embed.js'; |
132 | | - (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq); |
133 | | - })(); |
134 | | - </script> |
135 | | - <noscript>Please enable JavaScript to view the <a href="http://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript> |
136 | | - <a href="http://disqus.com" class="dsq-brlink">comments powered by <span class="logo-disqus">Disqus</span></a> |
137 | | -</section> |
138 | | -{% endunless %} |
139 | | -{% endif %} |
140 | | - |
141 | | -</div> |
| 113 | + {% if site.disqus_shortname %} |
| 114 | + {% unless page.disqus_disabled %} |
| 115 | + <section class="disqus"> |
| 116 | + <div id="disqus_thread"></div> |
| 117 | + <script type="text/javascript"> |
| 118 | + var disqus_shortname = '{{ site.disqus_shortname }}'; |
| 119 | + (function() { |
| 120 | + var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true; |
| 121 | + dsq.src = '//' + disqus_shortname + '.disqus.com/embed.js'; |
| 122 | + (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq); |
| 123 | + })(); |
| 124 | + </script> |
| 125 | + <noscript>Please enable JavaScript to view the <a href="http://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript> |
| 126 | + <a href="http://disqus.com" class="dsq-brlink">comments powered by <span class="logo-disqus">Disqus</span></a> |
| 127 | + </section> |
| 128 | + {% endunless %} |
| 129 | + {% endif %} |
| 130 | + </div> |
142 | 131 | </div> |
0 commit comments