forked from TrueCloudLab/dot-hugo
added new search facilities
This commit is contained in:
parent
6695462d13
commit
17e688465f
32 changed files with 93 additions and 27 deletions
|
@ -492,6 +492,17 @@ header.sticky-top {
|
|||
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.07);
|
||||
}
|
||||
|
||||
.ui-menu::before {
|
||||
position: absolute;
|
||||
content: "";
|
||||
width: 100%;
|
||||
height: 10px;
|
||||
background: #fff;
|
||||
left: 0;
|
||||
bottom: 0;
|
||||
z-index: 999;
|
||||
}
|
||||
|
||||
@media (max-width: 575px) {
|
||||
.ui-menu {
|
||||
width: calc(100% - 30px) !important;
|
||||
|
@ -528,10 +539,15 @@ header.sticky-top {
|
|||
border-bottom: 1px solid #e8e8e8;
|
||||
}
|
||||
|
||||
.ui-menu-item:nth-child(5){
|
||||
border: 0;
|
||||
.ui-menu-item *{
|
||||
display: none;
|
||||
}
|
||||
|
||||
.ui-menu-item .ui-corner-all{
|
||||
display: block;
|
||||
}
|
||||
|
||||
|
||||
/* /navigation */
|
||||
.form-control {
|
||||
height: 50px;
|
||||
|
|
|
@ -4,6 +4,8 @@ date: 2018-12-29T11:02:05+06:00
|
|||
lastmod: 2020-01-05T10:42:26+06:00
|
||||
weight: 3
|
||||
draft: false
|
||||
# search related keywords
|
||||
keywords: ["money","payment"]
|
||||
---
|
||||
|
||||
Musce libero nunc, dignissim quis turpis quis, semper vehicula dolor. Suspendisse tincidunt consequat quam, ac posuere leo dapibus id. Cras fringilla convallis elit, at eleifend mi interam.
|
||||
|
|
|
@ -4,6 +4,8 @@ date: 2018-12-29T11:02:05+06:00
|
|||
lastmod: 2020-01-05T10:42:26+06:00
|
||||
weight: 3
|
||||
draft: false
|
||||
# search related keywords
|
||||
keywords: ["money","payment"]
|
||||
---
|
||||
|
||||
Musce libero nunc, dignissim quis turpis quis, semper vehicula dolor. Suspendisse tincidunt consequat quam, ac posuere leo dapibus id. Cras fringilla convallis elit, at eleifend mi interam.
|
||||
|
|
|
@ -4,6 +4,8 @@ date: 2018-12-29T11:02:05+06:00
|
|||
lastmod: 2020-01-05T10:42:26+06:00
|
||||
weight: 2
|
||||
draft: false
|
||||
# search related keywords
|
||||
keywords: ["handle"]
|
||||
---
|
||||
|
||||
Musce libero nunc, dignissim quis turpis quis, semper vehicula dolor. Suspendisse tincidunt consequat quam, ac posuere leo dapibus id. Cras fringilla convallis elit, at eleifend mi interam.
|
||||
|
|
|
@ -4,6 +4,8 @@ date: 2018-12-29T11:02:05+06:00
|
|||
lastmod: 2020-01-05T10:42:26+06:00
|
||||
weight: 2
|
||||
draft: false
|
||||
# search related keywords
|
||||
keywords: ["handle"]
|
||||
---
|
||||
|
||||
Musce libero nunc, dignissim quis turpis quis, semper vehicula dolor. Suspendisse tincidunt consequat quam, ac posuere leo dapibus id. Cras fringilla convallis elit, at eleifend mi interam.
|
||||
|
|
|
@ -4,6 +4,8 @@ date: 2018-12-29T11:02:05+06:00
|
|||
lastmod: 2020-01-05T10:42:26+06:00
|
||||
weight: 1
|
||||
draft: false
|
||||
# search related keywords
|
||||
keywords: [""]
|
||||
---
|
||||
|
||||
Musce libero nunc, dignissim quis turpis quis, semper vehicula dolor. Suspendisse tincidunt consequat quam, ac posuere leo dapibus id. Cras fringilla convallis elit, at eleifend mi interam.
|
||||
|
|
|
@ -4,6 +4,8 @@ date: 2018-12-29T11:02:05+06:00
|
|||
lastmod: 2020-01-05T10:42:26+06:00
|
||||
weight: 1
|
||||
draft: false
|
||||
# search related keywords
|
||||
keywords: [""]
|
||||
---
|
||||
|
||||
Musce libero nunc, dignissim quis turpis quis, semper vehicula dolor. Suspendisse tincidunt consequat quam, ac posuere leo dapibus id. Cras fringilla convallis elit, at eleifend mi interam.
|
||||
|
|
|
@ -4,6 +4,8 @@ date: 2018-12-29T11:02:05+06:00
|
|||
lastmod: 2020-01-05T10:42:26+06:00
|
||||
weight: 4
|
||||
draft: false
|
||||
# search related keywords
|
||||
keywords: [""]
|
||||
---
|
||||
|
||||
Musce libero nunc, dignissim quis turpis quis, semper vehicula dolor. Suspendisse tincidunt consequat quam, ac posuere leo dapibus id. Cras fringilla convallis elit, at eleifend mi interam.
|
||||
|
|
|
@ -4,6 +4,8 @@ date: 2018-12-29T11:02:05+06:00
|
|||
lastmod: 2020-01-05T10:42:26+06:00
|
||||
weight: 4
|
||||
draft: false
|
||||
# search related keywords
|
||||
keywords: [""]
|
||||
---
|
||||
|
||||
Musce libero nunc, dignissim quis turpis quis, semper vehicula dolor. Suspendisse tincidunt consequat quam, ac posuere leo dapibus id. Cras fringilla convallis elit, at eleifend mi interam.
|
||||
|
|
|
@ -4,6 +4,8 @@ date: 2018-12-29T11:02:05+06:00
|
|||
lastmod: 2020-01-05T10:42:26+06:00
|
||||
weight: 5
|
||||
draft: false
|
||||
# search related keywords
|
||||
keywords: [""]
|
||||
---
|
||||
|
||||
Musce libero nunc, dignissim quis turpis quis, semper vehicula dolor. Suspendisse tincidunt consequat quam, ac posuere leo dapibus id. Cras fringilla convallis elit, at eleifend mi interam.
|
||||
|
|
|
@ -4,6 +4,8 @@ date: 2018-12-29T11:02:05+06:00
|
|||
lastmod: 2020-01-05T10:42:26+06:00
|
||||
weight: 5
|
||||
draft: false
|
||||
# search related keywords
|
||||
keywords: [""]
|
||||
---
|
||||
|
||||
Musce libero nunc, dignissim quis turpis quis, semper vehicula dolor. Suspendisse tincidunt consequat quam, ac posuere leo dapibus id. Cras fringilla convallis elit, at eleifend mi interam.
|
||||
|
|
|
@ -4,6 +4,8 @@ date: 2018-12-29T11:02:05+06:00
|
|||
lastmod: 2020-01-05T10:42:26+06:00
|
||||
weight: 1
|
||||
draft: false
|
||||
# search related keywords
|
||||
keywords: [""]
|
||||
---
|
||||
|
||||
Musce libero nunc, dignissim quis turpis quis, semper vehicula dolor. Suspendisse tincidunt consequat quam, ac posuere leo dapibus id. Cras fringilla convallis elit, at eleifend mi interam.
|
||||
|
|
|
@ -4,6 +4,8 @@ date: 2018-12-29T11:02:05+06:00
|
|||
lastmod: 2020-01-05T10:42:26+06:00
|
||||
weight: 1
|
||||
draft: false
|
||||
# search related keywords
|
||||
keywords: [""]
|
||||
---
|
||||
|
||||
Musce libero nunc, dignissim quis turpis quis, semper vehicula dolor. Suspendisse tincidunt consequat quam, ac posuere leo dapibus id. Cras fringilla convallis elit, at eleifend mi interam.
|
||||
|
|
|
@ -4,6 +4,8 @@ date: 2018-12-29T11:02:05+06:00
|
|||
lastmod: 2020-01-05T10:42:26+06:00
|
||||
weight: 2
|
||||
draft: false
|
||||
# search related keywords
|
||||
keywords: [""]
|
||||
---
|
||||
|
||||
Musce libero nunc, dignissim quis turpis quis, semper vehicula dolor. Suspendisse tincidunt consequat quam, ac posuere leo dapibus id. Cras fringilla convallis elit, at eleifend mi interam.
|
||||
|
|
|
@ -4,6 +4,8 @@ date: 2018-12-29T11:02:05+06:00
|
|||
lastmod: 2020-01-05T10:42:26+06:00
|
||||
weight: 2
|
||||
draft: false
|
||||
# search related keywords
|
||||
keywords: [""]
|
||||
---
|
||||
|
||||
Musce libero nunc, dignissim quis turpis quis, semper vehicula dolor. Suspendisse tincidunt consequat quam, ac posuere leo dapibus id. Cras fringilla convallis elit, at eleifend mi interam.
|
||||
|
|
|
@ -4,6 +4,8 @@ date: 2018-12-29T11:02:05+06:00
|
|||
lastmod: 2020-01-05T10:42:26+06:00
|
||||
weight: 3
|
||||
draft: false
|
||||
# search related keywords
|
||||
keywords: [""]
|
||||
---
|
||||
|
||||
Musce libero nunc, dignissim quis turpis quis, semper vehicula dolor. Suspendisse tincidunt consequat quam, ac posuere leo dapibus id. Cras fringilla convallis elit, at eleifend mi interam.
|
||||
|
|
|
@ -4,6 +4,8 @@ date: 2018-12-29T11:02:05+06:00
|
|||
lastmod: 2020-01-05T10:42:26+06:00
|
||||
weight: 3
|
||||
draft: false
|
||||
# search related keywords
|
||||
keywords: [""]
|
||||
---
|
||||
|
||||
Musce libero nunc, dignissim quis turpis quis, semper vehicula dolor. Suspendisse tincidunt consequat quam, ac posuere leo dapibus id. Cras fringilla convallis elit, at eleifend mi interam.
|
||||
|
|
|
@ -4,6 +4,8 @@ date: 2018-12-29T11:02:05+06:00
|
|||
lastmod: 2020-01-05T10:42:26+06:00
|
||||
weight: 4
|
||||
draft: false
|
||||
# search related keywords
|
||||
keywords: [""]
|
||||
---
|
||||
|
||||
Musce libero nunc, dignissim quis turpis quis, semper vehicula dolor. Suspendisse tincidunt consequat quam, ac posuere leo dapibus id. Cras fringilla convallis elit, at eleifend mi interam.
|
||||
|
|
|
@ -4,6 +4,8 @@ date: 2018-12-29T11:02:05+06:00
|
|||
lastmod: 2020-01-05T10:42:26+06:00
|
||||
weight: 4
|
||||
draft: false
|
||||
# search related keywords
|
||||
keywords: [""]
|
||||
---
|
||||
|
||||
Musce libero nunc, dignissim quis turpis quis, semper vehicula dolor. Suspendisse tincidunt consequat quam, ac posuere leo dapibus id. Cras fringilla convallis elit, at eleifend mi interam.
|
||||
|
|
|
@ -4,6 +4,8 @@ date: 2018-12-29T11:02:05+06:00
|
|||
lastmod: 2020-01-05T10:42:26+06:00
|
||||
weight: 5
|
||||
draft: false
|
||||
# search related keywords
|
||||
keywords: [""]
|
||||
---
|
||||
|
||||
Musce libero nunc, dignissim quis turpis quis, semper vehicula dolor. Suspendisse tincidunt consequat quam, ac posuere leo dapibus id. Cras fringilla convallis elit, at eleifend mi interam.
|
||||
|
|
|
@ -4,6 +4,8 @@ date: 2018-12-29T11:02:05+06:00
|
|||
lastmod: 2020-01-05T10:42:26+06:00
|
||||
weight: 5
|
||||
draft: false
|
||||
# search related keywords
|
||||
keywords: [""]
|
||||
---
|
||||
|
||||
Musce libero nunc, dignissim quis turpis quis, semper vehicula dolor. Suspendisse tincidunt consequat quam, ac posuere leo dapibus id. Cras fringilla convallis elit, at eleifend mi interam.
|
||||
|
|
|
@ -4,6 +4,8 @@ date: 2018-12-29T11:02:05+06:00
|
|||
lastmod: 2020-01-05T10:42:26+06:00
|
||||
weight: 3
|
||||
draft: false
|
||||
# search related keywords
|
||||
keywords: [""]
|
||||
---
|
||||
|
||||
### Global site parameters
|
||||
|
|
|
@ -4,6 +4,8 @@ date: 2018-12-29T11:02:05+06:00
|
|||
lastmod: 2020-01-05T10:42:26+06:00
|
||||
weight: 3
|
||||
draft: false
|
||||
# search related keywords
|
||||
keywords: [""]
|
||||
---
|
||||
|
||||
### Global site parameters
|
||||
|
|
|
@ -4,6 +4,8 @@ date: 2018-12-29T11:02:05+06:00
|
|||
lastmod: 2020-01-05T10:42:26+06:00
|
||||
weight: 4
|
||||
draft: false
|
||||
# search related keywords
|
||||
keywords: [""]
|
||||
---
|
||||
|
||||
**Dot** has been built to be as configurable as possible.
|
||||
|
|
|
@ -4,6 +4,8 @@ date: 2018-12-29T11:02:05+06:00
|
|||
lastmod: 2020-01-05T10:42:26+06:00
|
||||
weight: 4
|
||||
draft: false
|
||||
# search related keywords
|
||||
keywords: [""]
|
||||
---
|
||||
|
||||
**Dot** has been built to be as configurable as possible.
|
||||
|
|
|
@ -4,6 +4,8 @@ date: 2018-12-29T11:02:05+06:00
|
|||
lastmod: 2020-01-05T10:42:26+06:00
|
||||
weight: 5
|
||||
draft: false
|
||||
# search related keywords
|
||||
keywords: [""]
|
||||
---
|
||||
|
||||
# Heading 1
|
||||
|
|
|
@ -4,6 +4,8 @@ date: 2018-12-29T11:02:05+06:00
|
|||
lastmod: 2020-01-05T10:42:26+06:00
|
||||
weight: 3
|
||||
draft: false
|
||||
# search related keywords
|
||||
keywords: [""]
|
||||
---
|
||||
|
||||
# Heading 1
|
||||
|
|
|
@ -4,6 +4,8 @@ date: 2018-12-29T11:02:05+06:00
|
|||
lastmod: 2020-01-05T10:42:26+06:00
|
||||
weight: 2
|
||||
draft: false
|
||||
# search related keywords
|
||||
keywords: ["induct", "instate"]
|
||||
---
|
||||
|
||||
The following steps are here to help you initialize your new website. If you don't know Hugo at all, we strongly suggest you learn more about it by following this [great documentation for beginners](https://gohugo.io/overview/quickstart/).
|
||||
|
|
|
@ -4,6 +4,8 @@ date: 2018-12-29T11:02:05+06:00
|
|||
lastmod: 2020-01-05T10:42:26+06:00
|
||||
weight: 2
|
||||
draft: false
|
||||
# search related keywords
|
||||
keywords: ["induct", "instate"]
|
||||
---
|
||||
|
||||
The following steps are here to help you initialize your new website. If you don't know Hugo at all, we strongly suggest you learn more about it by following this [great documentation for beginners](https://gohugo.io/overview/quickstart/).
|
||||
|
|
|
@ -4,6 +4,8 @@ date: 2018-12-29T11:02:05+06:00
|
|||
lastmod: 2020-01-05T10:42:26+06:00
|
||||
weight: 1
|
||||
draft: false
|
||||
# search related keywords
|
||||
keywords: [""]
|
||||
---
|
||||
|
||||
|
||||
|
|
|
@ -4,6 +4,8 @@ date: 2018-12-29T11:02:05+06:00
|
|||
lastmod: 2020-01-05T10:42:26+06:00
|
||||
weight: 1
|
||||
draft: false
|
||||
# search related keywords
|
||||
keywords: [""]
|
||||
---
|
||||
|
||||
|
||||
|
|
|
@ -17,27 +17,17 @@
|
|||
{{ range $pages }}
|
||||
{
|
||||
value: "{{ .Title }}",
|
||||
label: "{{ .Title }}",
|
||||
label: "{{.Content}}{{range.Params.Keywords}}<p>{{.}}</p>{{end}}",
|
||||
url:"{{ .Permalink }}"
|
||||
},
|
||||
{{ end }}
|
||||
];
|
||||
$( "#search" ).autocomplete({
|
||||
minLength: 0,
|
||||
source: projects,
|
||||
focus: function( event, ui ) {
|
||||
$( "#search" ).val( ui.item.label );
|
||||
return false;
|
||||
},
|
||||
select: function( event, ui ) {
|
||||
$( "#search" ).val( ui.item.label );
|
||||
$( "#project-id" ).val( ui.item.value );
|
||||
return false;
|
||||
}
|
||||
source: projects
|
||||
})
|
||||
.data( "ui-autocomplete" )._renderItem = function( ul, item ) {
|
||||
return $( "<li>" )
|
||||
.append( "<a href=" + item.url + " + \" "\" + >" + item.label + "</a>" )
|
||||
.append( "<a href=" + item.url + " + \" "\" + >" + item.value + "</a>" + item.label )
|
||||
.appendTo( ul );
|
||||
};
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue