/
post.html
102 lines (80 loc) · 3.75 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
---
layout: default
---
<nav aria-label="breadcrumb" role="navigation">
<ol class="breadcrumb">
<li class="breadcrumb-item">
<a href="/">Blog</a>
</li>
<li class="breadcrumb-item">
<a href="/categories">Categories</a>
</li>
<li class="breadcrumb-item active" aria-current="page">{{ page.title }}</li>
</ol>
</nav>
<div class="row">
<div class="col-lg-8">
<article class="card" itemscope itemtype="http://schema.org/BlogPosting">
<div class="card-header">
<!-- <h1 class="post-title" itemprop="name headline">{{ page.title }}</h1> -->
<h4 class="post-meta">{{ page.summary }}</h4>
<p class="post-summary">Posted by : {% if page.author %}
<img src="/assets/img/{{ site.author_logo }}" class="author-profile-img">
<span itemprop="author" itemscope itemtype="http://schema.org/Person">
<span itemprop="name">{{ page.author }}</span>
</span>{% endif %} at
<time datetime="{{ page.date }}" itemprop="datePublished">{{ page.date | date: "%b %-d, %Y" }}</time>
</p>
<span class="disqus-comment-count" data-disqus-identifier="{{ page.url }}"></span>
<p>
{%- include share.html -%}
</p>
<div class="post-categories">
{% if post %} {% assign categories = post.categories %} {% else %} {% assign categories = page.categories %} {% endif %}
Category : {% for category in categories %}
<a href="{{site.baseurl}}/blog/categories/{{category|slugize}}">{{category}}</a>
{% unless forloop.last %} {% endunless %} {% endfor %}
</div>
</div>
<div class="card-body" itemprop="articleBody">
<img class="card-img-top" src="/assets/img/{{ page.thumbnail }}" alt="{{ post.title }}"> {{ content }} {%- include share.html -%}
</div>
<div id="disqus_thread"></div>
</article>
</div>
<div class="col-lg-4">
<div class="card">
<div class="card-header">Categories </div>
<div class="card-body text-dark">
{% for tag in site.categories %} {% capture tag_name %}{{ tag | first }}{% endcapture %}
<div id="#{{ tag_name | slugize }}"></div>
<li class="tag-head">
<a href="{{ site.baseurl }}/blog/categories/{{ tag_name }}">{{ tag_name }}</a>
</li>
<a name="{{ tag_name | slugize }}"></a>
{% endfor %}
</div>
</div>
<div class="card">
<!-- Begin MailChimp Signup Form -->
{%- include newsletter.html -%}
</div>
</div>
<!-- End of Sidebar -->
</div>
<script>
var disqus_config = function () {
this.page.url = "{{ site.url }}{{ page.url }}"; // Replace PAGE_URL with your page's canonical URL variable
this.page.identifier = "{{ page.id }}"; // Replace PAGE_IDENTIFIER with your page's unique identifier variable
};
(function () { // DON'T EDIT BELOW THIS LINE
var d = document,
s = d.createElement('script');
s.src = 'https://{{ site.disqus_shortname }}.disqus.com/embed.js';
s.setAttribute('data-timestamp', +new Date());
(d.head || d.body).appendChild(s);
})();
</script>
<noscript>Please enable JavaScript to view the
<a href="https://disqus.com/?ref_noscript">comments powered by Disqus.</a>
</noscript>