-
Notifications
You must be signed in to change notification settings - Fork 258
/
Copy pathpost.html
64 lines (54 loc) · 2.01 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
{% include header.html %}
<div class="container-fluid container-body">
<div class="col-md-8 col-md-offset-2 col-centered">
<section>
<div class="post-header">
{% if page.pagename != nil %}
<h2>{{ page.pagename }}</h2>
{% else %}
<h2>{{ page.title }}</h2>
{% endif %}
<p class="metadata">
<span class="author">
{% if page.author.first %} <!-- is an array or hash -->
{{ page.author['name'] }}
{% else %} <!-- raw string -->
{{ page.author }}
{% endif %}
</span> - <span class="date">{{ page.date | date: "%-d %B %Y" }}</span>
{% if page.guest_post %}
<span class="foreman-blue-infobox pull-right">Guest Post</span>
{% endif %}
</p>
</div>
<hr/>
<div class="post-content">
{% if page.guest_url %}
<p><em>This is an authorized repost of <a href="{{ page.guest_url }}">{{ page.guest_url }}</a></em></p>
{% endif %}
{{ content }}
</div>
<hr/>
<div class="post-content">
<h4>Comments from <a href='https://community.theforeman.org'>the community</a>:</h4>
</div>
<div id='discourse-comments'></div>
<div class="row">
<div class="col-md-6 col-sm-6 col-xs-6">
<a href="javascript: history.go(-1)" class="btn btn-foreman-blue"><span aria-hidden="true">←</span> Return</a>
</div>
</div>
<hr/>
</section>
</div>
</div>
<script type="text/javascript">
DiscourseEmbed = { discourseUrl: 'https://community.theforeman.org/',
discourseEmbedUrl: 'https://theforeman.org{{ page.url }}' };
(function() {
var d = document.createElement('script'); d.type = 'text/javascript'; d.async = true;
d.src = DiscourseEmbed.discourseUrl + 'javascripts/embed.js';
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(d);
})();
</script>
{% include footer.html %}