all repos — website @ d01d3aef3fba8e158f5afd3601da09919a9415cd

personal website hosted at prithu.xyz, built using hugo

add rss feed link on list page
Prithu Goswami prithugoswami524@gmail.com
Mon, 18 May 2020 02:44:35 +0530
commit

d01d3aef3fba8e158f5afd3601da09919a9415cd

parent

59657337a5ef2bebb1ba64566a32d91ecbf52478

2 files changed, 20 insertions(+), 2 deletions(-)

jump to
M layouts/posts/list.htmllayouts/posts/list.html

@@ -3,7 +3,14 @@ <body>

{{ partial "nav.html" }} <div class="bcontainer"> <div class="bcontent" id=blist> - <h1>{{.Title}}</h1> + <h1>{{.Title}} + <span id=rss> + <a href="https://prithu.xyz/posts/index.xml"> + <svg id=rss-icon role="img" width=16 viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M19.199 24C19.199 13.467 10.533 4.8 0 4.8V0c13.165 0 24 10.835 24 24h-4.801zM3.291 17.415c1.814 0 3.293 1.479 3.293 3.295 0 1.813-1.485 3.29-3.301 3.29C1.47 24 0 22.526 0 20.71s1.475-3.294 3.291-3.295zM15.909 24h-4.665c0-6.169-5.075-11.245-11.244-11.245V8.09c8.727 0 15.909 7.184 15.909 15.91z"/></svg> + (RSS) + </a> + </span> + </h1> <div class="posts"> {{ range .Pages }} <div class="post-item">
M static/css/blog.cssstatic/css/blog.css

@@ -38,7 +38,18 @@ font-family: Inter, sans-serif;

font-weight: 900; font-size: 2.3rem; line-height: 1; - color: rgba(0,0,0,0.7) + color: rgba(0,0,0,0.7); + fill: rgba(0,0,0,0.7) +} + +#rss a{ + color: inherit; + font-size: 16px; + font-weight: 100; +} + +#rss { + margin-left: 8px; } .bcontent > .post-date{