🔍 Feat: enhance search engine accessibility

This commit is contained in:
Cell
2023-12-11 17:34:17 +08:00
parent d02a9977a2
commit 7b7fba261b
3 changed files with 12 additions and 9 deletions
+4 -1
View File
@@ -29,7 +29,10 @@
font-size: 1.25rem;
font-weight: bold;
margin: 0;
padding: 0.5rem;
&:not(:empty) {
padding: 0.5rem;
}
}
.home-subtitle {
+2 -2
View File
@@ -18,7 +18,7 @@
{{- end -}}
{{- /* Title */ -}}
<h1 class="single-title" itemprop="name headline">
<h2 class="single-title" itemprop="name headline">
{{ $repost := $params.repost | default dict }}
{{- with $repost -}}
{{- if eq .Enable true -}}
@@ -28,7 +28,7 @@
{{- end -}}
{{- end -}}
<a href="{{ .RelPermalink }}">{{ .Title }}</a>
</h1>
</h2>
{{- /* Meta */ -}}
<div class="post-meta">
+6 -6
View File
@@ -36,14 +36,14 @@
</div>
{{- end -}}
{{- with $profile.title -}}
<h1 class="home-title">
<h1 class="home-title">
{{- with $profile.title -}}
{{- . | safeHTML -}}
</h1>
{{- end -}}
{{- end -}}
</h1>
{{- with $profile.subtitle -}}
<h2 class="home-subtitle">
<p class="home-subtitle">
{{- if $profile.typeit -}}
{{- $id := dict "Content" . "Scratch" $.Scratch "Id" "typeit-profile-subtitle" | partial "function/id.html" -}}
<span class="d-none">{{ . }}</span>
@@ -52,7 +52,7 @@
{{- else -}}
{{- . -}}
{{- end -}}
</h2>
</p>
{{- end -}}
{{- if $profile.social -}}