forked from devmanorg/blog-backend
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathblog-details.html
107 lines (105 loc) · 4.41 KB
/
blog-details.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
{% extends 'base.html' %}
{% load static %}
{% block title %}
{{post.title}} - Blog Details
{% endblock title %}
<!--================ Hero sm Banner start =================-->
{% block banner %}
<section class="mb-30px">
<div class="container">
<div class="hero-banner hero-banner--sm">
<div class="hero-banner__content">
<h1>Blog details</h1>
<nav aria-label="breadcrumb" class="banner-breadcrumb">
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="{% url 'index' %}">Home</a></li>
<li class="breadcrumb-item active" aria-current="page">Blog Details</li>
</ol>
</nav>
</div>
</div>
</div>
</section>
{% endblock banner %}
<!--================ Hero sm Banner end =================-->
<!--================ Start Blog Post Area =================-->
{% block selection %}
<section class="blog-post-area section-margin">
<div class="container">
<div class="row">
<div class="col-lg-8">
<div class="main_blog_details">
{% if post.image_url%}
<img class="img-fluid" src="{{post.image_url}}" alt="post image">
{% else %}
<img class="img-fluid" src="{% static 'img/banner/blog.png'%}" alt="default image">
{% endif %}
<h4>{{post.title}}</h4>
<div class="user_details">
<div class="mt-sm-0 mt-3">
<div class="media">
<div class="media-body">
<h5>{{post.author}}</h5>
<p>{{post.published_at}}</p>
</div>
</div>
</div>
</div>
<p>{{post.text}}</p>
<div class="news_d_footer flex-column flex-sm-row">
<a href="#"><span style="color:red" class="align-middle mr-2"><i class="ti-heart"></i></span>{{post.likes_amount}}</a>
<a class="justify-content-sm-center ml-sm-auto mt-sm-0 mt-2" href="#"><span class="align-middle mr-2"><i class="ti-themify-favicon"></i></span>{{post.comments|length}}</a>
<div class="news_socail ml-sm-auto mt-sm-0 mt-2">
<a href="#"><i class="fab fa-facebook-f"></i></a>
<a href="#"><i class="fab fa-twitter"></i></a>
<a href="#"><i class="fab fa-dribbble"></i></a>
<a href="#"><i class="fab fa-behance"></i></a>
</div>
</div>
</div>
<div class="comments-area">
<h4>{{post.comments|length}} Comments</h4>
{% for comment in post.comments %}
<div class="comment-list">
<div class="single-comment justify-content-between d-flex">
<div class="user justify-content-between d-flex">
<div class="desc">
<h5><a href="#">{{comment.author}}</a></h5>
<p class="date">{{comment.published_at}}</p>
<p class="comment">
{{comment.text}}
</p>
</div>
</div>
<div class="reply-btn">
<a href="" class="btn-reply text-uppercase">reply</a>
</div>
</div>
</div>
{% endfor %}
</div>
</div>
<!-- Start Blog Post Siddebar -->
<div class="col-lg-4 sidebar-widgets">
<div class="widget-wrap">
<div class="single-sidebar-widget newsletter-widget">
<h4 class="single-sidebar-widget__title">Newsletter</h4>
<div class="form-group mt-30">
<div class="col-autos">
<input type="text" class="form-control" id="inlineFormInputGroup" placeholder="Enter email" onfocus="this.placeholder = ''"
onblur="this.placeholder = 'Enter email'">
</div>
</div>
<button class="bbtns d-block mt-20 w-100">Subcribe</button>
</div>
<div class="single-sidebar-widget post-category-widget">
<h4 class="single-sidebar-widget" style="height:200px;">Здесь будет реклама</h4>
</div>
</div>
</div>
<!-- End Blog Post Siddebar -->
</div>
</div>
</section>
{% endblock selection %}
<!--================ End Blog Post Area =================-->