-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy pathpost.html
52 lines (42 loc) · 1.43 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
---
layout: default
---
<div class="article">
<header class="article-header">
<h1 class="article-title">{{ page.title }}</h1>
<div class="article-meta">
<div>{{ page.date | date: "%b %-d, %Y" }}</div>
{% if page.last_modified_at %}
<div><em>Updated: {{ page.last_modified_at | date: "%b %-d, %Y" }}</em></div>
{% endif %}
</div>
<p class="article-meta"></p>
</header>
<article class="article-content">
{{ content }}
</article>
<footer class="article-footer">
<div class="edit-link-wrapper">
<a class="edit-link" href="https://github.com/{{ site.github.repository_nwo }}/edit/{{ site.branch }}/{{ page.path }}">Edit this post</a>
</div>
{% if content and page.related and page.related.size > 0 %}
<div class="related-inline">
<span class="related-inline--title">Related posts:</span>
<span class="related-inline--posts">
{% for related in page.related %}
{% if forloop.first == true %}{% elsif forloop.last == true %} and {% else %}, {% endif %}
{% for post in site.posts %}
{% if post.title == related %}
<a href="{{ post.url }}">{{ post.title }}</a>
{% endif %}
{% endfor %}
{% endfor %}
</span>
</div>
{% endif %}
</footer>
</div>
{% include work-with-me-callout.html %}
{% if page.comments %}
{% include comments.html %}
{% endif %}