Skip to content

Commit 688a0b0

Browse files
committed
chore: add pizza-searchbox to blog site
1 parent 54e86af commit 688a0b0

File tree

7 files changed

+28
-16
lines changed

7 files changed

+28
-16
lines changed

assets/scss/custom.scss

+15
Original file line numberDiff line numberDiff line change
@@ -1 +1,16 @@
11
// Add your own custom styles here
2+
3+
.docsearch-modal-container {
4+
[type='text']:focus, input:where(:not([type])):focus, [type='email']:focus, [type='url']:focus, [type='password']:focus, [type='number']:focus, [type='date']:focus, [type='datetime-local']:focus, [type='month']:focus, [type='search']:focus, [type='tel']:focus, [type='time']:focus, [type='week']:focus, [multiple]:focus, textarea:focus, select:focus {
5+
outline: unset !important;
6+
outline-offset: unset !important;
7+
--tw-ring-inset: unset !important;
8+
--tw-ring-offset-width: unset !important;
9+
--tw-ring-offset-color: unset !important;
10+
--tw-ring-color: unset !important;
11+
--tw-ring-offset-shadow: unset !important;
12+
--tw-ring-shadow: unset !important;
13+
box-shadow: unset !important;
14+
border-color: unset !important;
15+
}
16+
}

static/assets/index-C1z1vz3D.css

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

static/assets/index-C7zxpy4f.js

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
644 KB
Binary file not shown.

themes/hugoplate/assets/scss/components.scss

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
main {
1+
.blog-main {
22
min-height: 70vh;
33
}
44

themes/hugoplate/layouts/_default/baseof.html

+8-1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@
1414
<!-- style (always cache it) -->
1515
{{ partialCached "essentials/style.html" . }}
1616

17+
{{/* searchbox */}}
18+
<link rel="stylesheet" crossorigin href="/assets/index-C1z1vz3D.css">
19+
1720
</head>
1821

1922
<body>
@@ -36,7 +39,7 @@
3639
{{/* {{ partial "search-modal.html" (dict "Context" . ) }} */}}
3740

3841

39-
<main>
42+
<main class="blog-main">
4043
{{ block "main" . }}{{ end }}
4144
</main>
4245

@@ -46,5 +49,9 @@
4649

4750
<!-- script (always cache it) -->
4851
{{ partialCached "essentials/script.html" . }}
52+
53+
{{/* searchbox */}}
54+
<script type="module" crossorigin src="/assets/index-C7zxpy4f.js"></script>
55+
4956
</body>
5057
</html>

themes/hugoplate/layouts/partials/essentials/header.html

+2-14
Original file line numberDiff line numberDiff line change
@@ -107,20 +107,8 @@
107107
</ul>
108108

109109
<div class="order-1 ml-auto flex items-center md:order-2 lg:ml-0">
110-
{{ with site.Params.search }}
111-
{{ if .enable }}
112-
{{/* <button
113-
aria-label="search"
114-
{{ if and (not site.Params.navigation_button.enable) (not site.Params.theme_switcher)}}
115-
class="border-border text-dark hover:text-primary dark:border-darkmode-border mr-5 inline-block border-r lg:border-r-0 pr-5 lg:pr-0 text-xl dark:text-white dark:hover:text-darkmode-primary"
116-
{{ else }}
117-
class="border-border text-dark hover:text-primary dark:border-darkmode-border mr-5 inline-block border-r pr-5 text-xl dark:text-white dark:hover:text-darkmode-primary"
118-
{{ end }}
119-
data-target="search-modal">
120-
<i class="fa-solid fa-search"></i>
121-
</button> */}}
122-
{{ end }}
123-
{{ end }}
110+
111+
<div id="docsearch"></div>
124112

125113
{{ partial "components/language-switcher" (dict "Context" . "Class" "mr-5 pl-2 py-1 dark:bg-darkmode-theme-light rounded") }}
126114
{{ partial "components/theme-switcher" (dict "Class" "mr-5") }}

0 commit comments

Comments
 (0)