From 13c19c5f68f4a3634a9ea05aa161bfe294ce4a36 Mon Sep 17 00:00:00 2001 From: Mylloon Date: Thu, 16 May 2024 16:54:35 +0200 Subject: [PATCH] clickable h2 (#63) --- static/css/blog/index.css | 16 +++++++++++++++- templates/blog/index.html | 2 +- 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/static/css/blog/index.css b/static/css/blog/index.css index 13e0dde..7618691 100644 --- a/static/css/blog/index.css +++ b/static/css/blog/index.css @@ -67,11 +67,25 @@ li p { } /* Card titles */ -li h2 { +li h2, +li h2 a { color: var(--title-color); font-size: var(--font-size); } +li h2 a { + text-decoration: none; +} + +li h2 a { + text-decoration: none; +} + +li h2 a:hover { + opacity: initial; + text-decoration: underline; +} + /* Card descriptions */ li p { font-size: calc(var(--font-size) - 2px); diff --git a/templates/blog/index.html b/templates/blog/index.html index 986594d..17fec15 100644 --- a/templates/blog/index.html +++ b/templates/blog/index.html @@ -27,7 +27,7 @@ {{#posts}}
  • {{>blog/date.html}} -

    {{title}}

    +

    {{title}}

    {{#desc}}

    {{desc}}

    {{/desc}}