diff --git a/assets/css/custom.css b/assets/css/custom.css index 85b784a..8dd4566 100644 --- a/assets/css/custom.css +++ b/assets/css/custom.css @@ -28,3 +28,27 @@ kbd { .hextra-nav-container-blur { box-shadow: none !important; } + +/* Shift logo left to compensate for internal whitespace */ +nav a:first-of-type img { + margin-left: -10px; +} + +/* Unified widths — all sections aligned at 76rem */ +:root { + --hx-color-dark: #000; + --hextra-max-page-width: 76rem; + --hextra-max-content-width: 76rem; + --hextra-max-navbar-width: 76rem; + --hextra-max-footer-width: 76rem; +} + +/* Narrow left sidebar to half width (128px) */ +.hextra-sidebar-container { + width: 8rem !important; +} + +.dark body, +body:where(.dark) { + background-color: #000; +} diff --git a/content/_index.md b/content/_index.md index 2f75148..faf214a 100644 --- a/content/_index.md +++ b/content/_index.md @@ -3,10 +3,15 @@ title: FuKun layout: hextra-home --- + +{{< hextra/hero-subtitle >}} + Fukun.Net +{{< /hextra/hero-subtitle >}} + {{< hextra/hero-headline >}} - FuKun + 晴耕雨读 心灯不夜 {{< /hextra/hero-headline >}} {{< hextra/hero-subtitle >}} - FuKun.Net — Tech notes & life + 一周更新两次,让脑袋泡泡冰浴 {{< /hextra/hero-subtitle >}} diff --git a/hugo.yaml b/hugo.yaml index 4642c30..150be2f 100644 --- a/hugo.yaml +++ b/hugo.yaml @@ -62,7 +62,7 @@ params: navbar: displayTitle: false displayLogo: true - width: wide + width: normal logo: path: /images/logo.svg dark: /images/logo-dark.svg diff --git a/layouts/hextra-home.html b/layouts/hextra-home.html index 4290405..82e9d6f 100644 --- a/layouts/hextra-home.html +++ b/layouts/hextra-home.html @@ -1,11 +1,14 @@ {{ define "main" }}
- {{ partial "sidebar.html" (dict "context" . "disableSidebar" true) }} + {{ partial "sidebar.html" (dict "context" . "disableSidebar" true + "displayPlaceholder" true) }}
-
{{ .Content }}
+
+ {{ .Content }} +
{{- $pages := where .Site.RegularPages "Section" "blog" }} {{- $pages = $pages.ByDate.Reverse }} {{- $recent := first 6 $pages }} {{- $readMore @@ -46,5 +49,6 @@ {{- end }}
+
{{ end }}