From 7b7fba261b9a4e3e66351ccac601839eaa56fe14 Mon Sep 17 00:00:00 2001 From: Cell <1024@lruihao.cn> Date: Mon, 11 Dec 2023 17:34:17 +0800 Subject: [PATCH] :mag: Feat: enhance search engine accessibility --- assets/css/_page/_home.scss | 5 ++++- layouts/_default/summary.html | 4 ++-- layouts/partials/home/profile.html | 12 ++++++------ 3 files changed, 12 insertions(+), 9 deletions(-) diff --git a/assets/css/_page/_home.scss b/assets/css/_page/_home.scss index 9a7e1f58..7b460108 100644 --- a/assets/css/_page/_home.scss +++ b/assets/css/_page/_home.scss @@ -29,7 +29,10 @@ font-size: 1.25rem; font-weight: bold; margin: 0; - padding: 0.5rem; + + &:not(:empty) { + padding: 0.5rem; + } } .home-subtitle { diff --git a/layouts/_default/summary.html b/layouts/_default/summary.html index 22d14e6b..3708212f 100644 --- a/layouts/_default/summary.html +++ b/layouts/_default/summary.html @@ -18,7 +18,7 @@ {{- end -}} {{- /* Title */ -}} -
{{- if $profile.typeit -}} {{- $id := dict "Content" . "Scratch" $.Scratch "Id" "typeit-profile-subtitle" | partial "function/id.html" -}} {{ . }} @@ -52,7 +52,7 @@ {{- else -}} {{- . -}} {{- end -}} - +
{{- end -}} {{- if $profile.social -}}