all repos — website @ 2f31474a5a9df6bb2045cb9ba7a3f335722c3a10

personal website hosted at prithu.xyz, built using hugo

add labels
Prithu Goswami prithugoswami524@gmail.com
Fri, 10 Jan 2020 15:12:55 +0530
commit

2f31474a5a9df6bb2045cb9ba7a3f335722c3a10

parent

71507d1f4a677e6372d2ff91352798bbf4ec0afb

2 files changed, 22 insertions(+), 3 deletions(-)

jump to
M css/blog.csscss/blog.css

@@ -37,6 +37,22 @@ .bcontent h1{

font-size: 36px; } +.post-labels{ + display:flex; + width: 50%; +} + +.post-label{ + background-color: #aaaaaa; + border-radius: 0.4rem; + padding: 0.2rem 1rem; + font-size: 0.8rem; +} + +.post-label:not(:first-child){ + margin-left: 0.8rem; +} + ul.posts{ list-style: none; margin-top: 10px;

@@ -48,8 +64,7 @@

ul.posts > li:nth-child(odd){ background-color: #E5E5E5; } -.date{ - border-bottom: 2px solid #BCBCBC; +.post-date{ padding-bottom: 5px }
M post.htmlpost.html

@@ -30,7 +30,11 @@

<div class="bcontainer"> <div class="bcontent"> <h1>Post title goes here </h1> - <p class="date">Januaray 19, 2019</p> + <p class="post-date">Januaray 19, 2019</p> + <div class="post-labels"> + <div class=post-label>Linux</div> + <div class=post-label>InfoSec</div> + </div> <div class="post-text"> <h1>This is heading1</h1> <h2>This is heading2</h1>