underline entry title on hover

This commit is contained in:
Victor Ananyev 2024-01-26 22:20:00 +01:00
parent d6cd6d9175
commit ef9cf1839d
2 changed files with 5 additions and 1 deletions

View File

@ -19,6 +19,10 @@
line-height: 1.3; line-height: 1.3;
} }
.entry-link:hover ~ .entry-header {
text-decoration: underline;
}
.first-entry .entry-content { .first-entry .entry-content {
margin: 14px 0; margin: 14px 0;
font-size: 16px; font-size: 16px;

View File

@ -64,6 +64,7 @@
{{- end }} {{- end }}
<article class="{{ $class }}"> <article class="{{ $class }}">
<a class="entry-link" aria-label="post link to {{ .Title | plainify }}" href="{{ .Permalink }}"></a>
{{- $isHidden := (.Param "cover.hiddenInList") | default (.Param "cover.hidden") | default false }} {{- $isHidden := (.Param "cover.hiddenInList") | default (.Param "cover.hidden") | default false }}
{{- partial "cover.html" (dict "cxt" . "IsSingle" false "isHidden" $isHidden) }} {{- partial "cover.html" (dict "cxt" . "IsSingle" false "isHidden" $isHidden) }}
<header class="entry-header"> <header class="entry-header">
@ -89,7 +90,6 @@
{{- partial "post_meta.html" . -}} {{- partial "post_meta.html" . -}}
</footer> </footer>
{{- end }} {{- end }}
<a class="entry-link" aria-label="post link to {{ .Title | plainify }}" href="{{ .Permalink }}"></a>
</article> </article>
{{- end }} {{- end }}