forked from wowthemesnet/mundana-theme-jekyll
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathpost.html
163 lines (136 loc) · 6.22 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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
---
layout: default
---
{% assign author = site.authors[1][page.author] %}
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-167445079-1"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'UA-167445079-1');
</script>
<div class="container">
<div class="jumbotron jumbotron-fluid mb-3 pl-0 pt-0 pb-0 bg-white position-relative">
<div class="h-100 tofront">
<div class="row {% if page.image %} justify-content-between {% else %} justify-content-center {% endif %}">
<div class="{% if page.image %} col-md-6 {% else %} col-md-8 {% endif %} pr-0 pr-md-4 pt-4 pb-4 align-self-center">
<p class="text-uppercase font-weight-bold">
<span class="catlist">
{% for category in page.categories %}
<a class="sscroll text-danger" href="{{site.baseurl}}/categories.html#{{ category | downcase }}">{{ category | downcase }}</a><span class="sep">, </span>
{% endfor %}
</span>
</p>
<h1 class="display-4 mb-4 article-headline">{{ page.title }}</h1>
<div class="d-flex align-items-center">
{% if author.avatar %}
<img class="rounded-circle" src="{{site.baseurl}}/{{author.avatar}}" alt="{{author.name}}" width="70"/>
{% endif %}
<small class="ml-3"> {{ author.name }} <span><a target="_blank" href="{{ author.twitter }}" class="btn btn-outline-success btn-sm btn-round ml-1">Follow</a></span>
<span class="text-muted d-block mt-1">{{ page.date | date: '%b %d, %Y' }} · {% include meta-read-time.html %}</span>
</small>
</div>
</div>
{% if page.image %}
<div class="col-md-6 pr-0 align-self-center">
<img class="rounded" src="{% if page.image contains "://" %}{{ page.image }}{% else %}{{ site.baseurl }}/{{ page.image }}{% endif %}" alt="{{ page.title }}">
</div>
{% endif %}
</div>
</div>
</div>
</div>
<div class="container-lg pt-4 pb-4">
<div class="row justify-content-center">
<!-- Share -->
<div class="col-lg-2 pr-4 mb-4 col-md-12">
<div class="sticky-top sticky-top-offset text-center">
<div class="text-muted">
Share this
</div>
<div class="share d-inline-block">
<!-- AddToAny BEGIN -->
<div class="a2a_kit a2a_kit_size_32 a2a_default_style">
<a class="a2a_dd" href="https://www.addtoany.com/share"></a>
<a class="a2a_button_facebook"></a>
<a class="a2a_button_twitter"></a>
</div>
<script async src="https://static.addtoany.com/menu/page.js"></script>
<!-- AddToAny END -->
</div>
</div>
</div>
<div class="col-md-12 col-lg-10">
<!-- Article -->
<article class="article-post">
{{ content }}
</article>
<!-- Tags -->
<div class="mb-4">
<span class="taglist">
{% for tag in page.tags %}
<a class="sscroll btn btn-light btn-sm font-weight-bold" href="{{site.baseurl}}/tags.html#{{ tag | downcase }}">{{ tag | downcase }}</a>
{% endfor %}
</span>
</div>
<!-- Mailchimp Subscribe Form -->
{% if site.mailchimp-list %}
<div class="border p-5 bg-lightblue">
<div class="row justify-content-between">
<div class="col-md-6 mb-2 mb-md-0">
<h5 class="font-weight-bold">Join Newsletter</h5>
Get the latest news right in your inbox. We never spam!
</div>
<div class="col-md-6">
<div class="row">
<form action="{{site.mailchimp-list}}" method="post" name="mc-embedded-subscribe-form" class="wj-contact-form validate w-100" target="_blank" novalidate>
<div class="mc-field-group">
<input type="email" placeholder="Enter e-mail address" name="EMAIL" class="required email form-control w-100" id="mce-EMAIL" autocomplete="on" required>
<button type="submit" value="Subscribe" name="subscribe" class="heart btn btn-success btn-block w-100 mt-2">Subscribe</button>
</div>
</form>
</div>
</div>
</div>
</div>
{% endif %}
<!-- TODO: all of author mal funciton -->
<!-- Author Box -->
{% if page.author %}
<!-- <div class="row mt-5">
<div class="col-md-2 align-self-center">
{% if author[1].avatar %}
<img class="rounded-circle" src="{{site.baseurl}}/{{author.avatar}}" alt="{{author.name}}" width="90"/>
{% endif %}
</div>
<div class="col-md-10">
<h5 class="font-weight-bold">Written by {{ author[1].name }} {% if author.twitter %}<span><a target="_blank" href="{{ author.twitter }}" class="btn btn-outline-success btn-sm btn-round ml-2">Follow</a></span>{% endif %}</h5>
{{ author.bio }}
</div>
</div> -->
{% endif %}
<!-- Comments -->
{% if page.comments != false %}
{% include comments.html %}
{% endif %}
</div>
</div>
</div>
<!-- Aletbar Prev/Next -->
<div class="alertbar">
<div class="container">
<div class="row prevnextlinks small font-weight-bold">
{% if page.previous.url %}
<div class="col-md-6 rightborder pl-0">
<a class="text-dark" href="{{ site.baseurl }}{{ page.previous.url }}">{% if page.previous.image %} <img height="30px" class="mr-1" src="{{site.baseurl}}/{{page.previous.image}}"> {% endif %} {{page.previous.title}}</a>
</div>
{% endif %}
{% if page.next.url %}
<div class="col-md-6 text-right pr-0">
<a class="text-dark" href="{{ site.baseurl }}{{ page.next.url }}"> {{page.next.title}} {% if page.next.image %} <img height="30px" class="ml-1" src="{{site.baseurl}}/{{page.next.image}}"> {% endif %}</a>
</div>
{% endif %}
</div>
</div>
</div>