clickable h2 (#63)
Some checks are pending
ci/woodpecker/push/publish Pipeline is pending approval

This commit is contained in:
Mylloon 2024-05-16 16:54:35 +02:00
parent af4c113153
commit 13c19c5f68
Signed by: Anri
GPG key ID: A82D63DFF8D1317F
2 changed files with 16 additions and 2 deletions

View file

@ -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);

View file

@ -27,7 +27,7 @@
{{#posts}}
<li role="button" onclick="window.open('/blog/p/{{url}}', '_parent');">
{{>blog/date.html}}
<h2>{{title}}</h2>
<h2><a href="/blog/p/{{url}} ">{{title}}</a></h2>
{{#desc}}
<p>{{desc}}</p>
{{/desc}}