Add dates to index
Anirudh Oppiliappan x@icyphox.sh
Thu, 21 Jan 2021 14:01:17 +0530
3 files changed,
16 insertions(+),
9 deletions(-)
M
pages/blog/twitter.md
→
pages/blog/twitter.md
@@ -116,5 +116,5 @@ own echo chambers like Gab. Oh, and the other side propagates massive
blocklists for the tiniest of infractions (defined by them), so they effectively echo chambered themselves too. I'm not complaining. -> "All social media sucks, but the fediverse sucks less." -> — Me, 2020 +> "All social media sucks, but the fediverse sucks less." +> — Me, 2020
M
static/style.css
→
static/style.css
@@ -332,7 +332,7 @@ }
blockquote { border-left: 0.25rem solid var(--gray); - color: var(--gray); + color: var(--dark); font-style: italic; margin: .8rem 0; padding: .5rem 1rem@@ -366,3 +366,12 @@ .post-date {
float: left; color: var(--gray); } + +.post { + height: 100%; + padding: 7px 0 7px 0; +} + +time { + float: right; +}
M
templates/index.html
→
templates/index.html
@@ -35,14 +35,12 @@ <header>
{{ .Cfg.Header }} </header>--> {{ .Fm.Body }} - <table> - <tbody> {{ range $_, $post := .Posts }} - <tr> - <td align="left"><a href="/blog/{{ $post.Fm.URL }}">{{ $post.Fm.Title }}</a></td> - </tr> + <section class="post"> + <time>{{ $post.Fm.Date.Format "02 January, 2006" }}</time> + <a href="/blog/{{ $post.Fm.URL }}">{{ $post.Fm.Title }}</a> + </section> {{ end }} - </table> <p><em><b>Note</b>: My current opinions may differ from those expressed in these posts.</em> </div> <footer>