Browse Source

added rss feed button on blog page

pull/62/head
Balram 3 years ago
parent
commit
06774894dd
  1. 5
      www/templates/blog/index.html
  2. 15
      www/templates/layouts/base.html

5
www/templates/blog/index.html

@ -18,6 +18,7 @@
{% endblock %}
{% block body %}
<button class='RSSFeedbtn' onclick="location.href='http://localhost:8080/feed/'">RSS Feed</button>
{% get_current_language as CURRENT_LANG %}
<section class="al-page-blog-index">
<div class="container py-5">
@ -31,9 +32,9 @@
<div class="al-article-author">
<div class="col d-flex align-items-start mb-3 mt-3">
{% if post.author.user.profile_pic %}
<img src="{{post.author.user.profile_pic.url}}" class="rounded-circle">
<img src="{{post.author.user.profile_pic.url}}" class="rounded-circle" alt="profile">
{% else %}
<img src="{% static 'images/profile1.png' %}" class="rounded-circle">
<img src="{% static 'images/profile1.png' %}" class="rounded-circle" alt="profile">
{% endif %}
<div class="p-3 pt-0 pb-0 pr-0">
<h6 class="al-article-author-name">

15
www/templates/layouts/base.html

@ -50,6 +50,21 @@
a {
color: #c4e1ff;
}
.RSSFeedbtn{
float: right;
margin: 20px 20px 0px 0px;
width: 180px;
font-size: 14px;
padding: 10px 0px 10px 0px;
font-weight: 500;
color: white;
border-radius: 5px;
border: 1px solid #831883;
box-shadow: 7px 4px 15px 4px #402442;
background: #831883;
}
</style>
{% encore_entrypoint_css 'common' %}
{% block head_end %}{% endblock %}

Loading…
Cancel
Save