diff --git a/assets/css/about-profile.css b/assets/css/about-profile.css index 814d762..87dcbce 100644 --- a/assets/css/about-profile.css +++ b/assets/css/about-profile.css @@ -282,3 +282,9 @@ margin-bottom: var(--spacing-md); line-height: 1.6; } + +/* Heading sizing for the about page (was inline in layouts/page/about.html) */ +.about-section h1 { + font-size: 2em; + margin: 0.67em 0; +} diff --git a/layouts/page/about.html b/layouts/page/about.html index 3bd2fb2..6d13ab7 100644 --- a/layouts/page/about.html +++ b/layouts/page/about.html @@ -1,24 +1,18 @@ {{ define "main" }} -
- Profile Picture
-

{{ .Site.Params.contact.profilename | default "Your Name" }}

-

{{ .Site.Params.about.profiledescription | default "A short description about yourself." }}

+

{{ site.Params.contact.profilename | default "Your Name" }}

+

{{ site.Params.about.profiledescription | default "A short description about yourself." }}

@@ -65,8 +59,8 @@

{{ .Title }}

{{ .Site.Params.about.abouttext | markdownify }}
-

{{ .Site.Params.about.intereststitle | default "Interests" }}

- {{ with .Site.Params.about.interests }} +

{{ site.Params.about.intereststitle | default (i18n "Interests" | default "Interests") }}

+ {{ with site.Params.about.interests }}
    {{ range first (div (len .) 2) . }} @@ -80,7 +74,7 @@

    {{ .Site.Params.about.intereststitle | default "Interests" }}

{{ else }} -

No interests listed.

+

{{ i18n "NoInterests" | default "No interests listed." }}

{{ end }}
@@ -91,11 +85,12 @@

{{ .Site.Params.about.intereststitle | default "Interests" }}

+ {{/* TODO(Unit 12): zipfs-law CSS loading should move into the widget refactor. */}} {{ $zipfsCSS := resources.Get "css/zipfs-law.css" }} {{ if $zipfsCSS }} {{ $zipfsCSS = $zipfsCSS | resources.Minify | fingerprint }} - {{ end }} {{ partial "zipfs-law.html" . }} diff --git a/layouts/partials/analytics.html b/layouts/partials/analytics.html index 9133779..a3a5218 100644 --- a/layouts/partials/analytics.html +++ b/layouts/partials/analytics.html @@ -1,6 +1,23 @@ - -{{ partial "analytics/plausible.html" . }} -{{ partial "analytics/umami.html" . }} -{{ partial "analytics/matomo.html" . }} -{{ partial "analytics/fathom.html" . }} -{{ partial "analytics/shynet.html" . }} +{{/* + analytics.html — provider dispatcher. + + Selects a single analytics provider via site.Params.analytics.provider. + Supported providers (matching files in layouts/partials/analytics/): + plausible, matomo, umami, fathom, shynet + + Provider partials read their own configuration from + site.Params.analytics.* (e.g. plausibleDomain, matomoURL). + + The output is invariant per site, so the dispatch is wrapped in + partialCached. Provider sub-partials are also cached, keyed on the + provider name, so they only render once per build. +*/}} +{{- $provider := site.Params.analytics.provider | default "" -}} +{{- if $provider -}} + {{- $known := slice "plausible" "matomo" "umami" "fathom" "shynet" -}} + {{- if in $known $provider -}} + {{- partialCached (printf "analytics/%s.html" $provider) . $provider -}} + {{- else -}} + + {{- end -}} +{{- end -}} diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index 2dfcd0c..48a2180 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -1,66 +1,69 @@ -{{ if eq hugo.Environment "development" }} - - {{ $variablesCSS := resources.Get "css/global/variables/core.css" | toCSS | fingerprint }} - - - {{ $footerCSS := resources.Get "css/footer.css" | toCSS | fingerprint }} - -{{ else }} - - {{ $cssFiles := slice (resources.Get "css/global/variables/core.css") (resources.Get "css/footer.css") }} - {{ $footerCSS := $cssFiles | resources.Concat "css/footer-combined.css" | minify | fingerprint }} - -{{ end }} +{{/* + footer.html — footer body partial. + + Notes: + - footer.css is bundled in head/styles.html (Unit 6); do not load it again here. + - Inline social SVGs are kept inline as a fallback. When the icons partial + (Unit 7, layouts/partials/icons.html) lands, replace each SVG with: + {{ partial "icons.html" (dict "name" "github" "class" "social-icon") }} + - customText is rendered as plain text by default. Opt in to raw HTML via + site.Params.footer.allowHTML = true. + - i18n strings (Unit 4) are used when keys are present; otherwise we fall back + to English literals. +*/}} -