- Theme Decoupling & Cleanup:
- Fully decoupled and vendored the Blowfish theme directly into root directories (layouts/,
assets/, static/, data/, i18n/).
- De-registered and cleaned up legacy Git submodules (themes/blowfish, themes/hugo-admonitions)
from the Git index to protect the build from upstream breakages.
- Configured .gitignore to ignore development preview symlinks (content, static,
config/_default/menus.en.toml), build folders (public/, resources/), and locks.
- TOC & Layout Fixes:
- Replaced the custom layouts/_default/single.html template with the Blowfish default to restore
native container widths and the side-by-side flex layout.
- Restored TOC to float on the right sidebar on desktop viewports and render inline on mobile
viewports.
- Fixed a parameter resolution bug in layouts/partials/toc.html by checking both .Site.Params.
smartTOC and .Site.Params.article.smartTOC (where it is defined in params.toml).
- Upgraded the TOC scrollspy JavaScript to target all '#TableOfContents' containers on the page,
enabling highlight tracking on both desktop and mobile layouts.
- Documentation Updates (README.md):
- Restored YAML front matter metadata block at the top.
- Added detailed notes on the CI/CD build process and Gitea runner deployment targets
(/srv/www/docs-public and /srv/www/docs-private).
- Added a categorized and sorted "Shortcodes Quick Reference" table at the top of the shortcodes
section (ordered by Custom, Hugo Default, and Blowfish).
- Documented custom shortcodes (Include, Screenshot, Raw HTML) and missing Hugo default
shortcodes (Highlight, Instagram, Param, Ref, Relref, Twitter, Vimeo, Youtube).
- Restructured headings to ensure all sub-shortcodes are H3, removed block break tags (<br/>),
and appended horizontal separators (---) after H2 sections.
55 lines
2.5 KiB
HTML
55 lines
2.5 KiB
HTML
<!doctype html>
|
|
<html
|
|
lang="{{ with site.Params.isoCode | default (site.Language.Locale | default `en`) }}{{- . -}}{{ end }}"
|
|
dir="{{ cond (site.Params.rtl | default false) `rtl` `ltr` }}"
|
|
class="scroll-smooth"
|
|
data-default-appearance="{{ site.Params.defaultAppearance | default `light` }}"
|
|
data-auto-appearance="{{ site.Params.autoSwitchAppearance | default `true` }}">
|
|
{{- partial "head.html" . -}}
|
|
{{- partialCached "init.html" . -}}
|
|
|
|
{{ $bodyLayout := "flex flex-col h-screen m-auto leading-7 max-w-7xl px-6 sm:px-14 md:px-24 lg:px-32" }}
|
|
{{ $bodyColor := "text-lg bg-neutral text-neutral-900 dark:bg-neutral-800 dark:text-neutral" }}
|
|
<body class="{{ $bodyLayout }} {{ $bodyColor }} {{ if site.Params.enableStyledScrollbar | default true }}bf-scrollbar{{ end }}">
|
|
<div id="the-top" class="absolute flex self-center">
|
|
<a
|
|
class="px-3 py-1 text-sm -translate-y-8 rounded-b-lg bg-primary-200 focus:translate-y-0 dark:bg-neutral-600"
|
|
href="#main-content">
|
|
<span class="font-bold text-primary-600 pe-2 dark:text-primary-400">↓</span>
|
|
{{ i18n "nav.skip_to_main" }}
|
|
</a>
|
|
</div>
|
|
{{ $header := print "header/" site.Params.header.layout ".html" }}
|
|
{{ if templates.Exists ( printf "partials/%s" $header ) }}
|
|
{{ partial $header . }}
|
|
{{ else }}
|
|
{{ partial "header/basic.html" . }}
|
|
{{ end }}
|
|
<div class="relative flex flex-col grow">
|
|
<main id="main-content" class="grow">
|
|
{{ block "main" . }}{{ end }}
|
|
{{ if and (site.Params.footer.showScrollToTop | default true) }}
|
|
{{- partial "scroll-to-top.html" . -}}
|
|
{{ end }}
|
|
</main>
|
|
{{- partial "footer.html" . -}}
|
|
{{ if site.Params.enableSearch | default false }}
|
|
{{- partial "search.html" . -}}
|
|
{{ end }}
|
|
</div>
|
|
</body>
|
|
{{ if site.Params.buymeacoffee.globalWidget | default false }}
|
|
<script
|
|
data-name="BMC-Widget"
|
|
data-cfasync="false"
|
|
src="https://cdnjs.buymeacoffee.com/1.0.0/widget.prod.min.js"
|
|
data-id="{{ site.Params.buymeacoffee.identifier }}"
|
|
data-description="Support me on Buy me a coffee!"
|
|
{{ with site.Params.buymeacoffee.globalWidgetMessage }}data-message="{{ . }}"{{ end }}
|
|
{{ with site.Params.buymeacoffee.globalWidgetColor | default `#FFDD00` }}data-color="{{ . }}"{{ end }}
|
|
{{ with site.Params.buymeacoffee.globalWidgetPosition }}data-position="{{ . }}"{{ end }}
|
|
data-x_margin="18"
|
|
data-y_margin="18"></script>
|
|
{{ end }}
|
|
</html>
|