-
Notifications
You must be signed in to change notification settings - Fork 398
/
post.html
92 lines (77 loc) · 3.21 KB
/
post.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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
---
layout: default
disqus: false
archive: false
post_class: post-template
---
<header class="main-header post-head {% if page.cover %}" style="background-image: url({{ page.cover }}) {%else%}no-cover{% endif %}">
<nav class="main-nav {% if page.cover %} overlay {% endif %} clearfix">
<a class="back-button icon-arrow-left" href="{{'/' | relative_url }}">Home</a>
<a class="subscribe-button icon-feed" href="{{'feed.xml' | relative_url }}">Subscribe</a>
</nav>
</header>
<main class="content" role="main">
<article class="post">
<header class="post-header">
<h1 class="post-title">{{ page.title }}</h1>
<section class="post-meta">
{% if page.categories.size > 0 %}
{{ page.categories | array_to_sentence_string | prepend: 'on ' }}
{% endif %}
<time class="post-date" datetime="{{ page.date | date:"%Y-%m-%d" }}">{{ page.date | date_to_string }}</time>
</section>
</header>
<!-- <header class="post-header">
<a id="blog-logo" href="{{site.url}}">
{% if site.logo %}
<img src="{{site.logo}}" alt="{{ site.name }}" />
{% else %}
<span class="blog-title">{{ site.name }}</span>
{%endif%}
</a>
</header> -->
<!-- <span class="post-meta">
<time datetime="{{ page.date | date:"%Y-%m-%d" }}">{{ page.date | date_to_string }}</time>
{% if page.categories.size > 0 %}
{{ page.categories | array_to_sentence_string | prepend: 'on ' }}
{% endif %}
</span> -->
<!-- <h1 class="post-title">{{ page.title }}</h1> -->
<section class="post-content">
{{content}}
</section>
{% if page.archive %}
<section class="archive">
<h5>Archive</h5>
<ul>
{% for post in site.posts %}
<li><span>{{ post.date | date_to_string }}</span> <a href="{{ post.url | relative_url}}">{{ post.title }}</a></li>
{% endfor %}
</ul>
</section>
{% endif %}
<footer class="post-footer">
<!-- If we want to display author's name and bio -->
{% if site.author %}
<figure class="author-image">
<a class="img" href="{{'/' | relative_url }}" style="background-image: url({{'/assets/images/profile.png' | relative_url}})">
<span class="hidden">{{site.author}}'s Picture</span></a>
</figure>
<section class="author">
<!-- Author Name -->
<h4> {{ site.author }} </h4>
<!-- Author Bio -->
<p>
Here goes the author description. You might want to place some links too in here
</p>
</section>
{% endif %}
<!-- Share links section -->
{% include share.html %}
<!-- Disqus comments -->
{% if page.disqus %}
{% include disqus.html %}
{% endif %}
</footer>
</article>
</main>