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 */ /* Card titles */
li h2 { li h2,
li h2 a {
color: var(--title-color); color: var(--title-color);
font-size: var(--font-size); 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 */ /* Card descriptions */
li p { li p {
font-size: calc(var(--font-size) - 2px); font-size: calc(var(--font-size) - 2px);

View file

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