|
2 | 2 | layout: default
|
3 | 3 | disqus: false
|
4 | 4 | archive: false
|
| 5 | +post_class: post-template |
5 | 6 | ---
|
6 | 7 |
|
| 8 | +<header class="main-header post-head {% if page.cover %}" style="background-image: url({{ page.cover }}) {%else%}no-cover{% endif %}"> |
| 9 | + <nav class="main-nav {% if page.cover %} overlay {% endif %} clearfix"> |
| 10 | + <a class="back-button icon-arrow-left" href="{{ site.baseurl }}">Home</a> |
| 11 | + <a class="subscribe-button icon-feed" href="{{ site.baseurl }}rss.xml">Subscribe</a> |
| 12 | + </nav> |
| 13 | +</header> |
| 14 | + |
7 | 15 | <main class="content" role="main">
|
8 | 16 |
|
9 | 17 | <article class="post">
|
| 18 | + |
10 | 19 | <header class="post-header">
|
| 20 | + <h1 class="post-title">{{ page.title }}</h1> |
| 21 | + <section class="post-meta"> |
| 22 | + <time class="post-date" datetime="{{ page.date | date:"%Y-%m-%d" }}">{{ page.date | date_to_string }}</time> |
| 23 | + {% if page.categories.size > 0 %} |
| 24 | + {{ page.categories | array_to_sentence_string | prepend: 'on ' }} |
| 25 | + {% endif %} |
| 26 | + </section> |
| 27 | + </header> |
| 28 | + |
| 29 | +<!-- <header class="post-header"> |
11 | 30 | <a id="blog-logo" href="{{site.url}}">
|
12 | 31 | {% if site.logo %}
|
13 | 32 | <img src="{{site.logo}}" alt="{{ site.name }}" />
|
14 | 33 | {% else %}
|
15 | 34 | <span class="blog-title">{{ site.name }}</span>
|
16 | 35 | {%endif%}
|
17 | 36 | </a>
|
18 |
| - </header> |
| 37 | + </header> --> |
19 | 38 |
|
20 |
| - <span class="post-meta"> |
21 |
| - <time datetime="{{ page.date | date:"%Y-%m-%d" }}">{{ page.date | date_to_string }}</time> |
| 39 | + <!-- <span class="post-meta"> |
| 40 | + <time datetime="{{ page.date | date:"%Y-%m-%d" }}">{{ page.date | date_to_string }}</time> |
22 | 41 | {% if page.categories.size > 0 %}
|
23 | 42 | {{ page.categories | array_to_sentence_string | prepend: 'on ' }}
|
24 | 43 | {% endif %}
|
25 |
| - </span> |
| 44 | + </span> --> |
26 | 45 |
|
27 |
| - <h1 class="post-title">{{ page.title }}</h1> |
| 46 | + <!-- <h1 class="post-title">{{ page.title }}</h1> --> |
28 | 47 |
|
29 | 48 | <section class="post-content">
|
30 | 49 | {{content}}
|
31 | 50 | </section>
|
32 | 51 |
|
33 | 52 | {% if page.archive %}
|
34 | 53 | <section class="archive">
|
35 |
| - <h5>Archive</h5> |
36 |
| - <ul> |
37 |
| - {% for post in site.posts %} |
38 |
| - <li><span>{{ post.date | date_to_string }}</span> <a href="{{ post.url }}">{{ post.title }}</a></li> |
39 |
| - {% endfor %} |
40 |
| - </ul> |
| 54 | + <h5>Archive</h5> |
| 55 | + <ul> |
| 56 | + {% for post in site.posts %} |
| 57 | + <li><span>{{ post.date | date_to_string }}</span> <a href="{{ post.url }}">{{ post.title }}</a></li> |
| 58 | + {% endfor %} |
| 59 | + </ul> |
41 | 60 | </section>
|
42 | 61 | {% endif %}
|
43 | 62 |
|
44 | 63 | <footer class="post-footer">
|
45 |
| - <!-- If we want to display author's name and bio --> |
| 64 | + <!-- If we want to display author's name and bio --> |
46 | 65 | {% if site.author %}
|
| 66 | + <figure class="author-image"> |
| 67 | + <a class="img" href="{{ site.baseurl }}" style="background-image: url(/assets/images/profile.png)"> |
| 68 | + <span class="hidden">{{site.author}}'s Picture</span></a> |
| 69 | + </figure> |
47 | 70 | <section class="author">
|
48 |
| - <header> <a href="{{ site.baseurl }}"> <img class="profile" src="/assets/images/profile.png" alt="Author's profile picture"></a></header> |
49 |
| - <article> |
50 |
| - <!-- Author Name --> |
51 |
| - <h4> {{ site.author }} </h4> |
52 |
| - <!-- Author Bio --> |
53 |
| - <p> |
54 |
| - Here goes the author description. You might want to place some links too in here |
55 |
| - </p> |
56 |
| - </article> |
| 71 | + <!-- Author Name --> |
| 72 | + <h4> {{ site.author }} </h4> |
| 73 | + <!-- Author Bio --> |
| 74 | + <p> |
| 75 | + Here goes the author description. You might want to place some links too in here |
| 76 | + </p> |
57 | 77 | </section>
|
58 | 78 | {% endif %}
|
59 | 79 |
|
60 |
| - <section class="share"> |
61 |
| - <h4>Share this post</h4> |
62 |
| - <a class="icon-twitter" href="http://twitter.com/share?text={{page.title}}&url={{site.url}}{{ page.url }}" |
63 |
| - onclick="window.open(this.href, 'twitter-share', 'width=550,height=235');return false;"> |
64 |
| - <span class="hidden">Twitter</span> |
65 |
| - </a> |
66 |
| - <a class="icon-facebook" href="https://www.facebook.com/sharer/sharer.php?u={{site.url}}{{page.url}}" |
67 |
| - onclick="window.open(this.href, 'facebook-share','width=580,height=296');return false;"> |
68 |
| - <span class="hidden">Facebook</span> |
69 |
| - </a> |
70 |
| - <a class="icon-google-plus" href="https://plus.google.com/share?url={{site.url}}{{page.url}}" |
71 |
| - onclick="window.open(this.href, 'google-plus-share', 'width=490,height=530');return false;"> |
72 |
| - <span class="hidden">Google+</span> |
73 |
| - </a> |
74 |
| - </section> |
| 80 | + <!-- Share links section --> |
| 81 | + {% include share.html %} |
75 | 82 |
|
| 83 | + <!-- Disqus comments --> |
76 | 84 | {% if page.disqus %}
|
77 |
| - <section class="disqus"> |
78 |
| - <div id="disqus_thread"></div> |
79 |
| - <script type="text/javascript"> |
80 |
| - |
81 |
| - var disqus_shortname = ''; |
82 |
| - var disqus_developer = 0; // developer mode is on |
83 |
| - (function() { |
84 |
| - var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true; |
85 |
| - dsq.src = 'http://' + disqus_shortname + '.disqus.com/embed.js'; |
86 |
| - (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq); |
87 |
| - })(); |
88 |
| - </script> |
89 |
| - <noscript>Please enable JavaScript to view the <a href="http://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript> |
90 |
| - <a href="http://disqus.com" class="dsq-brlink">comments powered by <span class="logo-disqus">Disqus</span></a> |
91 |
| - </section> |
| 85 | + {% include disqus.html %} |
92 | 86 | {% endif %}
|
93 |
| - |
| 87 | + |
94 | 88 | </footer>
|
95 | 89 |
|
96 | 90 | </article>
|
|
0 commit comments