Remove heading-link class

It was used to make both website title and page titles in summaries not
have link color. Instead, just directly configure those elements.
This commit is contained in:
2025-08-08 01:41:38 -05:00
parent 322928ed7a
commit 52a6440011
5 changed files with 13 additions and 10 deletions

View File

@@ -207,12 +207,6 @@ a:hover {
text-decoration: underline;
}
/* this is also used i.e. in page-title */
.heading-link {
color: inherit;
text-weight: bold;
}
blockquote {
border-left: 5px solid var(--background-2);
padding-left: 15px;
@@ -348,6 +342,11 @@ footer p {
align-items: center;
}
.header a {
color: inherit;
font-weight: bold;
}
.navbar {
display: flex;
flex-wrap: wrap;
@@ -496,6 +495,10 @@ footer p {
margin-bottom: 10px;
}
.page-title a {
color: inherit;
}
.page-title h1 {
margin: 0;
}

View File

@@ -1,6 +1,6 @@
<div class="top">
<header class="header">
<a class="heading-link" href="{{ .Site.Home.Permalink | absLangURL }}">
<a href="{{ .Site.Home.Permalink | absLangURL }}">
{{ .Site.Title | markdownify }}
</a>
</header>

View File

@@ -1,5 +1,5 @@
<h2 class="page-title">
<a class="heading-link" href="{{ .Permalink }}">{{ .Title | markdownify }}</a>
<a href="{{ .Permalink }}">{{ .Title | markdownify }}</a>
{{ if .Draft }}{{ partial "icon.html" "write" }}{{ end }}
</h2>

View File

@@ -1,6 +1,6 @@
<h2 class="page-title">
{{ with .Parent.Params.icon }}{{ partial "icon.html" . }}{{ end }}
<a class="heading-link" href="{{ .Permalink }}">{{ .Title | markdownify }}</a>
<a href="{{ .Permalink }}">{{ .Title | markdownify }}</a>
{{ if .Draft }}{{ partial "icon.html" "write" }}{{ end }}
</h2>

View File

@@ -1,6 +1,6 @@
<h2 class="page-title">
{{ with .Parent.Params.icon }}{{ partial "icon.html" . }}{{ end }}
<a class="heading-link" href="{{ .Permalink }}">{{ .Title | markdownify }}</a>
<a href="{{ .Permalink }}">{{ .Title | markdownify }}</a>
{{ if .Draft }}{{ partial "icon.html" "write" }}{{ end }}
</h2>