css, templates: link style, experiment with subtitle
Anirudh Oppiliappan x@icyphox.sh
Thu, 08 Dec 2022 11:05:37 +0530
3 files changed,
20 insertions(+),
11 deletions(-)
M
static/style.css
→
static/style.css
@@ -70,7 +70,12 @@ }
.logo { text-decoration: none; + border-bottom: unset; background: unset !important; +} + +.logo:hover { + border-bottom: unset; } .footimgs a {@@ -97,12 +102,11 @@ }
main a { color: var(--darker); - text-decoration: underline; + border-bottom: 1.5px solid var(--medium-gray); } a:hover { - text-decoration: underline; - background: var(--medium-gray); + border-bottom: 1.5px solid var(--gray); } .footer {@@ -193,7 +197,11 @@ text-decoration: none;
} td { - padding: 7px 11px 0 11px; + padding: 7px 11px 7px 11px; +} + +td p#subtitle { + color: var(--gray); } td:first-child {
M
templates/blog.html
→
templates/blog.html
@@ -2,12 +2,12 @@ <!DOCTYPE html>
<html lang=en> <head> {{ template "partials/head.html" }} - <link rel="alternate" type="application/rss+xml" title="RSS" href="https://icyphox.sh/blog/feed.xml"> + <link rel="alternate" type="application/rss+xml" title="RSS" href="https://icyphox.sh/blog/feed.xml"> <meta name="description" content="{{ index .Meta "subtitle" }}"> </head> <title> - {{ index .Meta "title" }} — {{ .Cfg.Title }} + {{ .Meta.title }} — {{ .Cfg.Title }} </title> <body> <main>@@ -16,12 +16,13 @@ {{ template "partials/nav.html" }}
</div> {{ .Body }} <table> - {{ range $_, $post := .Posts }} + {{ range .Posts }} <tr> <td align="left"> - <a href=/blog/{{ index $post.Meta "slug" }}>{{ index $post.Meta "title" }}</a> + <p><a href=/blog/{{ .Meta.slug }}>{{ .Meta.title }}</a></p> + <p id="subtitle">{{ .Meta.subtitle }}</p> </td> - {{ $dateStr := index $post.Meta "date" }} + {{ $dateStr := .Meta.date }} {{ $date := parsedate $dateStr }} <td align="right" class="index-date">{{ $date.Format "02 Jan, 2006" }}</td> </tr>
M
templates/index.html
→
templates/index.html
@@ -1,10 +1,10 @@
<html lang=en> <head> {{ template "partials/head.html" }} - <meta name="description" content="{{ index .Meta "subtitle" }}"> + <meta name="description" content="{{ .Meta.subtitle }}"> </head> <title> - {{ index .Meta "title" }} + {{ .Meta.title }} </title> <body> <main>