This commit is contained in:
BBaoVanC 2023-03-20 18:21:41 -05:00
parent cd105785bf
commit 337a62c7cd
Signed by: bbaovanc
GPG Key ID: 18089E4E3CCF1D3A
7 changed files with 17 additions and 20 deletions

View File

@ -361,20 +361,20 @@ h1 svg.icon {
/* }}} */
/* Header formatting (website title and article section headers) {{{ */
/* Heading formatting (website title and article section headers) {{{ */
.header {
margin: 16px 0;
font-size: 1.5em;
}
.header a,
.section-header a {
/* this is also used i.e. in post-title */
.heading-link {
color: inherit;
font-size: 1.5em;
font-weight: bold;
}
.section-header-link svg {
.heading-link svg {
width: 15px;
height: 15px;
}
@ -459,6 +459,9 @@ h1 svg.icon {
/* }}} */
/* Back to top {{{ */
#top {
font-size: 0;
}
#back-to-top {
position: fixed;
float: right;
@ -589,12 +592,6 @@ li.disabled > .page-link:hover {
margin: 0;
}
.post-title a,
.author-name a {
color: inherit;
text-decoration: inherit;
}
.post-meta-item,
.author-meta-item {
margin-right: 10px;

View File

@ -58,8 +58,8 @@ newer_post:
# ARIA labels
aria_header_link:
other: "header link"
aria_heading_link:
other: "heading link"
aria_back_to_top_button:
other: "back to top button"

View File

@ -1,7 +1,7 @@
<h{{ .Level }} id="{{ .Anchor | safeURL }}" class="section-header">
<h{{ .Level }} id="{{ .Anchor | safeURL }}" class="section-heading">
{{ .Text | safeHTML }}
<a href="#{{ .Anchor | safeURL }}">
<span class="section-header-link" aria-label="{{ i18n "aria_header_link" }}">
<a class="heading-link" href="#{{ .Anchor | safeURL }}">
<span aria-label="{{ i18n "aria_heading_link" }}">
{{ partial "icon.html" "link" }}
</span>
</a>

View File

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

View File

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

View File

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

View File

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