implemented search module

This commit is contained in:
Sojon 2023-05-29 16:18:54 +06:00
parent ac34bdba00
commit 24de4aa89e
9 changed files with 58 additions and 34 deletions

View File

@ -1,3 +1,7 @@
main {
min-height: 70vh;
}
// section style
.section {
@apply py-24 xl:py-28;

View File

@ -50,6 +50,14 @@
.search-wrapper-body {
@apply dark:bg-darkmode-theme-light dark:shadow-none;
}
&.search-page {
.search-wrapper-body {
@apply dark:bg-transparent;
}
}
.search-result-info em {
@apply dark:text-white;
}
.search-result-item {
@apply dark:bg-darkmode-body dark:border-darkmode-border p-4;
.search-title {
@ -58,10 +66,10 @@
u {
@apply dark:text-darkmode-primary;
}
// &:focus,
// &[aria-selected="true"],
// &:hover {
// @apply dark:bg-darkmode-primary/10;
// }
&:focus,
&[aria-selected="true"],
&:hover {
@apply dark:bg-darkmode-primary/10;
}
}
}

View File

@ -1,6 +1,6 @@
[hugoVersion]
extended = true
min = "0.112.3"
min = "0.112.4"
[[imports]]
path = "github.com/gethugothemes/hugo-modules/search"

View File

@ -19,8 +19,6 @@ theme_switcher = true
theme_default = "dark" # available options [light/dark/system]
# Main Sections
mainSections = ["blog"]
# image gallery shortcode
image_gallery = true
# contact form action
contact_form_action = "#" # contact form works with [https://airform.io/] or [https://formspree.io]
# google tag manager, see https://developers.google.com/tag-manager/

View File

@ -0,0 +1,4 @@
---
title: search
layout: search
---

View File

@ -3,27 +3,27 @@ module hugoplate.netlify.app
go 1.20
require (
github.com/gethugothemes/hugo-modules/accordion v0.0.0-20230525102148-b021562ad2b0 // indirect
github.com/gethugothemes/hugo-modules/adsense v0.0.0-20230525102148-b021562ad2b0 // indirect
github.com/gethugothemes/hugo-modules/components/cookie-consent v0.0.0-20230525102148-b021562ad2b0 // indirect
github.com/gethugothemes/hugo-modules/components/custom-script v0.0.0-20230525102148-b021562ad2b0 // indirect
github.com/gethugothemes/hugo-modules/components/preloader v0.0.0-20230525102148-b021562ad2b0 // indirect
github.com/gethugothemes/hugo-modules/components/render-link v0.0.0-20230525102148-b021562ad2b0 // indirect
github.com/gethugothemes/hugo-modules/components/social-share v0.0.0-20230525102148-b021562ad2b0 // indirect
github.com/gethugothemes/hugo-modules/gallery-slider v0.0.0-20230525102148-b021562ad2b0 // indirect
github.com/gethugothemes/hugo-modules/gzip-caching v0.0.0-20230525102148-b021562ad2b0 // indirect
github.com/gethugothemes/hugo-modules/icons/font-awesome v0.0.0-20230525102148-b021562ad2b0 // indirect
github.com/gethugothemes/hugo-modules/images v0.0.0-20230525102148-b021562ad2b0 // indirect
github.com/gethugothemes/hugo-modules/modal v0.0.0-20230525102148-b021562ad2b0 // indirect
github.com/gethugothemes/hugo-modules/pwa v0.0.0-20230525102148-b021562ad2b0 // indirect
github.com/gethugothemes/hugo-modules/search v0.0.0-20230525102148-b021562ad2b0 // indirect
github.com/gethugothemes/hugo-modules/seo-tools/basic-seo v0.0.0-20230525102148-b021562ad2b0 // indirect
github.com/gethugothemes/hugo-modules/seo-tools/google-tag-manager v0.0.0-20230525102148-b021562ad2b0 // indirect
github.com/gethugothemes/hugo-modules/seo-tools/site-verifications v0.0.0-20230525102148-b021562ad2b0 // indirect
github.com/gethugothemes/hugo-modules/shortcodes/button v0.0.0-20230525102148-b021562ad2b0 // indirect
github.com/gethugothemes/hugo-modules/shortcodes/codepen v0.0.0-20230525102148-b021562ad2b0 // indirect
github.com/gethugothemes/hugo-modules/shortcodes/notice v0.0.0-20230525102148-b021562ad2b0 // indirect
github.com/gethugothemes/hugo-modules/tab v0.0.0-20230525102148-b021562ad2b0 // indirect
github.com/gethugothemes/hugo-modules/table-of-contents v0.0.0-20230525102148-b021562ad2b0 // indirect
github.com/gethugothemes/hugo-modules/videos v0.0.0-20230525102148-b021562ad2b0 // indirect
github.com/gethugothemes/hugo-modules/accordion v0.0.0-20230529094337-51de68b32b0a // indirect
github.com/gethugothemes/hugo-modules/adsense v0.0.0-20230529094337-51de68b32b0a // indirect
github.com/gethugothemes/hugo-modules/components/cookie-consent v0.0.0-20230529094337-51de68b32b0a // indirect
github.com/gethugothemes/hugo-modules/components/custom-script v0.0.0-20230529094337-51de68b32b0a // indirect
github.com/gethugothemes/hugo-modules/components/preloader v0.0.0-20230529094337-51de68b32b0a // indirect
github.com/gethugothemes/hugo-modules/components/render-link v0.0.0-20230529094337-51de68b32b0a // indirect
github.com/gethugothemes/hugo-modules/components/social-share v0.0.0-20230529094337-51de68b32b0a // indirect
github.com/gethugothemes/hugo-modules/gallery-slider v0.0.0-20230529094337-51de68b32b0a // indirect
github.com/gethugothemes/hugo-modules/gzip-caching v0.0.0-20230529094337-51de68b32b0a // indirect
github.com/gethugothemes/hugo-modules/icons/font-awesome v0.0.0-20230529094337-51de68b32b0a // indirect
github.com/gethugothemes/hugo-modules/images v0.0.0-20230529094337-51de68b32b0a // indirect
github.com/gethugothemes/hugo-modules/modal v0.0.0-20230529094337-51de68b32b0a // indirect
github.com/gethugothemes/hugo-modules/pwa v0.0.0-20230529094337-51de68b32b0a // indirect
github.com/gethugothemes/hugo-modules/search v0.0.0-20230529101731-b0c7eb0ba4f8 // indirect
github.com/gethugothemes/hugo-modules/seo-tools/basic-seo v0.0.0-20230529094337-51de68b32b0a // indirect
github.com/gethugothemes/hugo-modules/seo-tools/google-tag-manager v0.0.0-20230529094337-51de68b32b0a // indirect
github.com/gethugothemes/hugo-modules/seo-tools/site-verifications v0.0.0-20230529094337-51de68b32b0a // indirect
github.com/gethugothemes/hugo-modules/shortcodes/button v0.0.0-20230529094337-51de68b32b0a // indirect
github.com/gethugothemes/hugo-modules/shortcodes/codepen v0.0.0-20230529094337-51de68b32b0a // indirect
github.com/gethugothemes/hugo-modules/shortcodes/notice v0.0.0-20230529094337-51de68b32b0a // indirect
github.com/gethugothemes/hugo-modules/tab v0.0.0-20230529094337-51de68b32b0a // indirect
github.com/gethugothemes/hugo-modules/table-of-contents v0.0.0-20230529094337-51de68b32b0a // indirect
github.com/gethugothemes/hugo-modules/videos v0.0.0-20230529094337-51de68b32b0a // indirect
)

View File

@ -21,6 +21,7 @@ const purgecss = {
/^:is/,
/^dark/,
/^search/,
/^[aria-selected]/,
/dark/,
/show/,
/dragging/,

View File

@ -20,9 +20,8 @@
{{ else }}
{{ partial "preloader.html" . }}
<!-- tailwind size indicator -->
{{ partialCached "components/tw-size-indicator.html" . }}
{{ partial "components/tw-size-indicator.html" . }}
{{ end }}
@ -30,7 +29,6 @@
{{ partial "essentials/header.html" . }}
{{ partial "search-modal.html" (dict "Context" . ) }}
<main>
{{ block "main" . }}{{ end }}
</main>

View File

@ -0,0 +1,11 @@
{{ define "main" }}
<div class="container">
<div class="row">
<div class="col-12">
{{ partial "search-page.html" (dict "Context" . "Class" "your-custom-class") }}
</div>
</div>
</div>
{{ end }}