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
|
@ -158,7 +158,7 @@ ul {
|
|||
padding-left: 0;
|
||||
}
|
||||
|
||||
ol{
|
||||
ol {
|
||||
padding-left: 20px;
|
||||
}
|
||||
|
||||
|
@ -202,7 +202,7 @@ select:focus {
|
|||
}
|
||||
|
||||
@media (max-width: 768px) {
|
||||
.section{
|
||||
.section {
|
||||
padding-top: 60px;
|
||||
}
|
||||
}
|
||||
|
@ -213,7 +213,7 @@ select:focus {
|
|||
}
|
||||
|
||||
@media (max-width: 768px) {
|
||||
.section-sm{
|
||||
.section-sm {
|
||||
padding-top: 40px;
|
||||
}
|
||||
}
|
||||
|
@ -438,12 +438,12 @@ header.sticky-top {
|
|||
background: transparent;
|
||||
}
|
||||
|
||||
.lang-list{
|
||||
.lang-list {
|
||||
background: transparent;
|
||||
color: var(--white-color);
|
||||
}
|
||||
|
||||
.lang-list.dark{
|
||||
.lang-list.dark {
|
||||
color: var(--text-color-dark);
|
||||
}
|
||||
|
||||
|
@ -492,9 +492,20 @@ 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;
|
||||
width: calc(100% - 30px) !important;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -522,16 +533,21 @@ header.sticky-top {
|
|||
}
|
||||
}
|
||||
|
||||
.ui-menu-item:not(:last-child){
|
||||
.ui-menu-item:not(:last-child) {
|
||||
margin-bottom: 5px;
|
||||
padding-bottom: 5px;
|
||||
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;
|
||||
|
@ -638,7 +654,7 @@ blockquote {
|
|||
background: #f9f9f9;
|
||||
}
|
||||
|
||||
blockquote p{
|
||||
blockquote p {
|
||||
margin-bottom: 0 !important;
|
||||
}
|
||||
|
||||
|
@ -766,13 +782,13 @@ tbody {
|
|||
display: none;
|
||||
}
|
||||
|
||||
li.sidelist>a{
|
||||
li.sidelist>a {
|
||||
margin-left: 20px;
|
||||
margin-bottom: 10px;
|
||||
display: block;
|
||||
}
|
||||
|
||||
li.sidelist li a{
|
||||
li.sidelist li a {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
|
@ -853,7 +869,7 @@ p a:empty {
|
|||
padding: 0 !important;
|
||||
}
|
||||
|
||||
.nav-tabs>li::before{
|
||||
.nav-tabs>li::before {
|
||||
display: none;
|
||||
}
|
||||
|
||||
|
@ -870,7 +886,7 @@ pre {
|
|||
margin: 10px 0px 10px;
|
||||
}
|
||||
|
||||
code{
|
||||
code {
|
||||
margin-bottom: 0 !important;
|
||||
font-size: 100%;
|
||||
}
|
||||
|
|
|
@ -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