File tree Expand file tree Collapse file tree 4 files changed +12
-6
lines changed
config/blog/templates/blog Expand file tree Collapse file tree 4 files changed +12
-6
lines changed Original file line number Diff line number Diff line change 1111 {% include 'blog/nav.html' %}
1212 {% block content %}
1313 {% endblock %}
14+
15+ < script src ="https://cdn.jsdelivr.net/npm/@popperjs/core@2.11.7/dist/umd/popper.min.js " integrity ="sha384-zYPOMqeu1DAVkHiLqWBUTcbYfZ8osu1Nd6Z89ify25QV9guujx43ITvfi12/QExE " crossorigin ="anonymous "> </ script >
16+ < script src ="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha3/dist/js/bootstrap.min.js " integrity ="sha384-Y4oOpwW3duJdCWv5ly8SCFYWqFDsfob/3GkgExXKV4idmbt98QcxXYs9UoXAB7BZ " crossorigin ="anonymous "> </ script >
17+ <!-- icons -->
18+ < script type ="module " src ="https://unpkg.com/ionicons@7.1.0/dist/ionicons/ionicons.esm.js "> </ script >
19+ < script nomodule src ="https://unpkg.com/ionicons@7.1.0/dist/ionicons/ionicons.js "> </ script >
1420</ body >
1521</ html >
Original file line number Diff line number Diff line change 88 </ div >
99
1010 < div class ="row ">
11- < div class ="col-md-6 col-12 mx-md-auto mb-3 pd-2 mx-3 ">
11+ < div class ="col-md-6 col-11 mx-md-auto mb-3 pd-2 mx-3 ">
1212 < h1 > {{ object.title }}</ h1 >
1313
1414 < p class ="text-muted "> {{ object.date }}</ p >
@@ -31,16 +31,16 @@ <h1>{{ object.title }}</h1>
3131 {% if liked_by_user %}
3232 < form method ="POST " action ="{% url 'like_article' object.id %} ">
3333 {% csrf_token %}
34- < button class ="btn btn-outline-primary "> unlike this post</ button >
34+ < button class ="btn btn-outline-primary "> < ion-icon name =" heart-dislike-outline " > </ ion-icon > unlike this post</ button >
3535 </ form >
3636 {% else %}
3737 < form method ="POST " action ="{% url 'like_article' object.id %} ">
3838 {% csrf_token %}
39- < button class ="btn btn-outline-primary "> like this post</ button >
39+ < button class ="btn btn-outline-primary "> < ion-icon name =" heart-outline " > </ ion-icon > like this post</ button >
4040 </ form >
4141 {% endif %}
4242 {% else %}
43- < button class ="btn btn-outline-primary " disabled > do you want like this post? so login here </ button >
43+ < button class ="btn btn-outline-primary " disabled > < ion-icon name =" log-in-outline " > </ ion-icon > do you want like this post? please login or signup </ button >
4444 {% endif %}
4545 </ div >
4646 </ div >
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ <h5 class="text-muted">review featured posts</h5>
1010
1111 {% for object in object_list %}
1212 < div class ="row ">
13- < div class ="col-md-6 col-12 mx-md-auto mx-3 mt-5 md-5 ">
13+ < div class ="col-md-6 col-11 mx-md-auto mx-3 mt-5 md-5 ">
1414 < h3 class ="fw-bold "> {{ object.title }}</ h3 >
1515 < p class ="text-muted "> {{ object.date }}</ p >
1616 < p class ="text-muted "> By {{ object.author.username }}</ p >
Original file line number Diff line number Diff line change 44
55{% block content %}
66 < div class ="row ">
7- < div class ="col-md-6 col-12 mx-md-auto mx-3 mt-5 md-5 ">
7+ < div class ="col-md-6 col-11 mx-md-auto mx-3 mt-5 md-5 ">
88 < h1 class ="fw-bolder "> shahriaarrr Blog</ h1 >
99 < h5 class ="text-muted "> Write about everything that i liked</ h5 >
1010 </ div >
You can’t perform that action at this time.
0 commit comments