forked from sst/guide
-
Notifications
You must be signed in to change notification settings - Fork 0
/
post.html
81 lines (62 loc) · 2.28 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
---
layout: default
---
<div class="wrapper wrapper-post">
<div class="post-container">
<article class="post">
<header class="post-header">
<h1 class="post-title">{{ page.title | escape }}</h1>
<div class="post-info">
<a target="_blank" href="{{ site.github_repo }}{{ site.github_edit_prefix }}{{ page.path }}">Edit this page</a>
<span class="separator"> • </span>
<a target="_blank" href="{{ site.github_repo }}{{ site.github_history_prefix }}{{ page.path }}">View history</a>
{% if page.ref %}
{% assign pages = site.chapters | where:"ref", page.ref | sort: 'lang' %}
{% if pages[1] %}
<span class="separator"> • </span>
<span class="copy">View this page in: </span>
{% for other in pages %}
{% if other.lang == "en" %}
{% assign page_en_url = other.url %}
{% endif %}
{% if other.lang != page.lang %}
<a class="lang {{ other.lang }}" href="{{ other.url }}" class="{{ other.lang }}">
{{ site.data.languages[other.lang] }}
</a>
{% endif %}
{% endfor %}
{% endif %}
{% endif %}
</div>
{% if page.bio %}
<div class="post-author">
This chapter is contributed by: {{ page.bio }}
</div>
{% endif %}
</header>
<div class="post-content">
{{ content }}
</div>
{% include post-checkpoint.html %}
{% include post-footer.html page_en_url=page_en_url %}
<div class="post-links">
<p>For help and discussion</p>
<a target="_blank" href="{{ site.forum_url }}{{ site.forum_thread_prefix }}{{ page.comments_id }}">
<i class="fa fa-comments" aria-hidden="true"></i>
Comments on this chapter
</a>
</div>
<!--
{% include post-sponsor.html %}
-->
<div class="extras">
<div class="container">
<div class="newsletter">
{% include newsletter-form.html type="guide" %}
</div>
</div>
</div>
</article>
{% include post-sidebar.html page_en_url=page_en_url %}
</div>
</div>