diff options
| author | Danilo M. <danix@danix.xyz> | 2026-04-20 13:57:47 +0200 |
|---|---|---|
| committer | Danilo M. <danix@danix.xyz> | 2026-04-20 13:57:47 +0200 |
| commit | deca83c07a15bc1ba49fc2c0816b6f92390183b1 (patch) | |
| tree | 107073abad9123e8b75d93a45b1c5aefda126c36 /themes/danix-xyz-hacker | |
| parent | e251d37a17ff00079d14fd30f7f4cd313fba4214 (diff) | |
| download | danixxyz-deca83c07a15bc1ba49fc2c0816b6f92390183b1.tar.gz danixxyz-deca83c07a15bc1ba49fc2c0816b6f92390183b1.zip | |
feat: include search modal and script in base template
Adds search-modal.html partial after footer and search.js script before closing body tag. Makes search functionality available on all pages. Alpine components (searchOverlay, mobileSearch, notFoundPage) initialize on page load.
Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
Diffstat (limited to 'themes/danix-xyz-hacker')
| -rw-r--r-- | themes/danix-xyz-hacker/layouts/_default/baseof.html | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/themes/danix-xyz-hacker/layouts/_default/baseof.html b/themes/danix-xyz-hacker/layouts/_default/baseof.html index 1f5dc97..72aefba 100644 --- a/themes/danix-xyz-hacker/layouts/_default/baseof.html +++ b/themes/danix-xyz-hacker/layouts/_default/baseof.html @@ -68,6 +68,9 @@ <!-- Footer --> {{ partial "footer.html" . }} + <!-- Search modal (desktop and mobile) --> + {{ partial "search-modal.html" . }} + <!-- Alpine.js --> <script src="https://cdn.jsdelivr.net/npm/alpinejs@3.x.x/dist/cdn.min.js" defer></script> @@ -108,5 +111,9 @@ {{ $s := . | minify }} <script src="{{ $s.RelPermalink }}"></script> {{ end }} + + <!-- Search functionality script --> + {{ $searchScript := resources.Get "js/search.js" | minify }} + <script src="{{ $searchScript.RelPermalink }}"></script> </body> </html> |
