Skip to content

Commit ed05b2e

Browse files
committed
post cleaning I
1 parent 9f25170 commit ed05b2e

31 files changed

+77
-319
lines changed

backup.json

+1
Large diffs are not rendered by default.
18 Bytes
Binary file not shown.

blogs_app/models.py

+2
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
from django.urls import reverse
44
from django.conf import settings
55

6+
import random
67
from ckeditor.fields import RichTextField
78

89

@@ -42,6 +43,7 @@ def __str__(self):
4243
def get_absolute_url(self):
4344
# return reverse('articles-page', args = (str(self.id))) # to redirect to the aritcle page of same post
4445
return reverse('blogs_app:home')
46+
4547

4648

4749

db.sqlite3

4 KB
Binary file not shown.
Binary file not shown.
-320 KB
Binary file not shown.
Binary file not shown.

media/images/admin/profile/ruby.png

-2.85 KB
Binary file not shown.
-2.85 KB
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
-15.7 KB
Binary file not shown.
-15.7 KB
Binary file not shown.
-1.1 MB
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
-54.6 KB
Binary file not shown.
-54.6 KB
Binary file not shown.
Binary file not shown.
Loading
-2.85 KB
Binary file not shown.

static/admin_assets/css/styles.css

+1
Original file line numberDiff line numberDiff line change
@@ -64,3 +64,4 @@
6464
box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
6565
}
6666

67+

static/css/style.css

+18-4
Original file line numberDiff line numberDiff line change
@@ -1364,8 +1364,8 @@ body.nav-active { overflow: hidden; }
13641364
text-decoration: underline;
13651365
}
13661366

1367-
.blog-objective > h2{
1368-
font-size: 40px;
1367+
.blog-objective h2{
1368+
font-size: 30px;
13691369
font-weight: bold;
13701370
margin-bottom: 30px;
13711371
margin-top: 30px;
@@ -1376,6 +1376,18 @@ body.nav-active { overflow: hidden; }
13761376
margin-left: 15px;
13771377
}
13781378

1379+
.blog-banner img{
1380+
width: 100%;
1381+
height: auto;
1382+
padding: 0;
1383+
margin-bottom: -20px;
1384+
}
1385+
1386+
.blog-img{
1387+
width: 100%;
1388+
height: auto;
1389+
}
1390+
13791391

13801392
.blog-objective > ol > li{
13811393
list-style:decimal;
@@ -1403,7 +1415,9 @@ body.nav-active { overflow: hidden; }
14031415
background-color: #333; /* Color of the vertical line */
14041416
}
14051417

1406-
.codehilite {
1418+
1419+
1420+
.blog-objective pre {
14071421
background-color: #1a1919;
14081422
color: white;
14091423
border: 1px solid #ddd;
@@ -1415,7 +1429,7 @@ body.nav-active { overflow: hidden; }
14151429
overflow: auto;
14161430
}
14171431

1418-
.codehilite code {
1432+
.blog-objective pre code {
14191433
white-space: pre;
14201434
tab-size: 1;
14211435
}

templates/admin_templates/pages/blogs_related/update_posts.html

+3-151
Original file line numberDiff line numberDiff line change
@@ -11,81 +11,11 @@
1111
<div class="row">
1212
<div class="col-sm-12">
1313
<div class="home-tab">
14-
<div class="d-sm-flex align-items-center justify-content-between border-bottom">
15-
<ul class="nav nav-tabs" role="tablist">
16-
<li class="nav-item">
17-
<a class="nav-link active ps-0" id="home-tab" data-bs-toggle="tab" href="#overview" role="tab" aria-controls="overview" aria-selected="true">Overview</a>
18-
</li>
19-
<li class="nav-item">
20-
<a class="nav-link" id="profile-tab" data-bs-toggle="tab" href="#audiences" role="tab" aria-selected="false">Audiences</a>
21-
</li>
22-
<li class="nav-item">
23-
<a class="nav-link" id="contact-tab" data-bs-toggle="tab" href="#demographics" role="tab" aria-selected="false">Demographics</a>
24-
</li>
25-
<li class="nav-item">
26-
<a class="nav-link border-0" id="more-tab" data-bs-toggle="tab" href="#more" role="tab" aria-selected="false">More</a>
27-
</li>
28-
</ul>
29-
<div>
30-
<div class="btn-wrapper">
31-
<a href="#" class="btn btn-otline-dark align-items-center"><i class="icon-share"></i> Share</a>
32-
<a href="#" class="btn btn-otline-dark"><i class="icon-printer"></i> Print</a>
33-
<a href="#" class="btn btn-primary text-white me-0"><i class="icon-download"></i> Export</a>
34-
</div>
35-
</div>
36-
</div>
14+
3715
<div class="tab-content tab-content-basic">
3816
<div class="tab-pane fade show active" id="overview" role="tabpanel" aria-labelledby="overview">
39-
<div class="row">
40-
<div class="col-sm-12">
41-
<div class="statistics-details d-flex align-items-center justify-content-between">
42-
<div>
43-
<p class="statistics-title">Bounce Rate</p>
44-
<h3 class="rate-percentage">32.53%</h3>
45-
<p class="text-danger d-flex"><i class="mdi mdi-menu-down"></i><span>-0.5%</span></p>
46-
</div>
47-
<div>
48-
<p class="statistics-title">Page Views</p>
49-
<h3 class="rate-percentage">7,682</h3>
50-
<p class="text-success d-flex"><i class="mdi mdi-menu-up"></i><span>+0.1%</span></p>
51-
</div>
52-
<div>
53-
<p class="statistics-title">New Sessions</p>
54-
<h3 class="rate-percentage">68.8</h3>
55-
<p class="text-danger d-flex"><i class="mdi mdi-menu-down"></i><span>68.8</span></p>
56-
</div>
57-
<div class="d-none d-md-block">
58-
<p class="statistics-title">Avg. Time on Site</p>
59-
<h3 class="rate-percentage">2m:35s</h3>
60-
<p class="text-success d-flex"><i class="mdi mdi-menu-down"></i><span>+0.8%</span></p>
61-
</div>
62-
<div class="d-none d-md-block">
63-
<p class="statistics-title">New Sessions</p>
64-
<h3 class="rate-percentage">68.8</h3>
65-
<p class="text-danger d-flex"><i class="mdi mdi-menu-down"></i><span>68.8</span></p>
66-
</div>
67-
<div class="d-none d-md-block">
68-
<p class="statistics-title">Avg. Time on Site</p>
69-
<h3 class="rate-percentage">2m:35s</h3>
70-
<p class="text-success d-flex"><i class="mdi mdi-menu-down"></i><span>+0.8%</span></p>
71-
</div>
72-
</div>
73-
</div>
74-
</div>
75-
<div class="row">
76-
<div class="col-lg-8 d-flex flex-column">
7717

78-
<div class="row flex-grow">
79-
<div class="col-12 grid-margin stretch-card">
80-
<div class="card card-rounded">
81-
<div class="card-body">
82-
<div class="d-sm-flex justify-content-between align-items-start">
83-
<div>
84-
<h4 class="card-title card-title-dash">Update Post / Blogs</h4>
85-
<p class="card-subtitle card-subtitle-dash">Update Blogs content</p>
86-
</div>
87-
88-
</div>
18+
8919
<div class="table-responsive mt-1">
9020
<table class="table select-table">
9121
<tbody>
@@ -110,85 +40,7 @@ <h1>you are not log in (--_--)!</h1>
11040
</tbody>
11141
</table>
11242
</div>
113-
</div>
114-
</div>
115-
</div>
116-
</div>
117-
</div>
118-
<div class="col-lg-4 d-flex flex-column">
119-
<div class="row flex-grow">
120-
<div class="col-12 grid-margin stretch-card">
121-
<div class="card card-rounded">
122-
<div class="card-body">
123-
<div class="row">
124-
<div class="col-lg-12">
125-
<div class="d-flex justify-content-between align-items-center">
126-
<h4 class="card-title card-title-dash">Todo list</h4>
127-
<div class="add-items d-flex mb-0">
128-
<!-- <input type="text" class="form-control todo-list-input" placeholder="What do you need to do today?"> -->
129-
<button class="add btn btn-icons btn-rounded btn-primary todo-list-add-btn text-white me-0 pl-12p"><i class="mdi mdi-plus"></i></button>
130-
</div>
131-
</div>
132-
<div class="list-wrapper">
133-
<ul class="todo-list todo-list-rounded">
134-
<li class="d-block">
135-
<div class="form-check w-100">
136-
<label class="form-check-label">
137-
<input class="checkbox" type="checkbox"> Lorem Ipsum is simply dummy text of the printing <i class="input-helper rounded"></i>
138-
</label>
139-
<div class="d-flex mt-2">
140-
<div class="ps-4 text-small me-3">24 June 2020</div>
141-
<div class="badge badge-opacity-warning me-3">Due tomorrow</div>
142-
<i class="mdi mdi-flag ms-2 flag-color"></i>
143-
</div>
144-
</div>
145-
</li>
146-
<li class="d-block">
147-
<div class="form-check w-100">
148-
<label class="form-check-label">
149-
<input class="checkbox" type="checkbox"> Lorem Ipsum is simply dummy text of the printing <i class="input-helper rounded"></i>
150-
</label>
151-
<div class="d-flex mt-2">
152-
<div class="ps-4 text-small me-3">23 June 2020</div>
153-
<div class="badge badge-opacity-success me-3">Done</div>
154-
</div>
155-
</div>
156-
</li>
157-
<li>
158-
<div class="form-check w-100">
159-
<label class="form-check-label">
160-
<input class="checkbox" type="checkbox"> Lorem Ipsum is simply dummy text of the printing <i class="input-helper rounded"></i>
161-
</label>
162-
<div class="d-flex mt-2">
163-
<div class="ps-4 text-small me-3">24 June 2020</div>
164-
<div class="badge badge-opacity-success me-3">Done</div>
165-
</div>
166-
</div>
167-
</li>
168-
<li class="border-bottom-0">
169-
<div class="form-check w-100">
170-
<label class="form-check-label">
171-
<input class="checkbox" type="checkbox"> Lorem Ipsum is simply dummy text of the printing <i class="input-helper rounded"></i>
172-
</label>
173-
<div class="d-flex mt-2">
174-
<div class="ps-4 text-small me-3">24 June 2020</div>
175-
<div class="badge badge-opacity-danger me-3">Expired</div>
176-
</div>
177-
</div>
178-
</li>
179-
</ul>
180-
</div>
181-
</div>
182-
</div>
183-
</div>
184-
</div>
185-
</div>
186-
</div>
187-
188-
189-
190-
</div>
191-
</div>
43+
19244
</div>
19345
</div>
19446
</div>

0 commit comments

Comments
 (0)