modified search engine and some minor bug
This commit is contained in:
parent
fd82c626be
commit
ab258d9732
5 changed files with 51 additions and 57 deletions
|
@ -1,29 +1,55 @@
|
|||
baseURL = "https://gethugothemes.com/"
|
||||
################################# Default configuration ###################
|
||||
# provide your domain here
|
||||
baseURL = "https://examplesite.com/"
|
||||
# theme
|
||||
theme = "dot"
|
||||
# site title
|
||||
title = "Dot"
|
||||
# disable language switch selection box
|
||||
disableLanguageSwitchingButton = true
|
||||
|
||||
############################# Default Parameters ##########################
|
||||
[params]
|
||||
# logo is for all page
|
||||
logo = ""
|
||||
# logo white is for homepage logo, you can use colorful logo too...
|
||||
logoWhite = ""
|
||||
# when logo is empty, it will shown your site title
|
||||
|
||||
# customize color
|
||||
[params]
|
||||
primaryColor = "#02007e"
|
||||
secondaryColor = "#f9f9f9"
|
||||
textColor = "#636363"
|
||||
textColorDark = "#242738"
|
||||
whiteColor = "#ffffff"
|
||||
disableLanguageSwitchingButton = false
|
||||
|
||||
############################## social links ##############################
|
||||
[[params.social]]
|
||||
icon = "ti-facebook" # themify icon pack : https://themify.me/themify-icons
|
||||
link = "#"
|
||||
|
||||
[[params.social]]
|
||||
icon = "ti-twitter-alt" # themify icon pack : https://themify.me/themify-icons
|
||||
link = "#"
|
||||
|
||||
[[params.social]]
|
||||
icon = "ti-vimeo-alt" # themify icon pack : https://themify.me/themify-icons
|
||||
link = "#"
|
||||
|
||||
[[params.social]]
|
||||
icon = "ti-linkedin" # themify icon pack : https://themify.me/themify-icons
|
||||
link = "#"
|
||||
|
||||
|
||||
################################# language ################################
|
||||
[Languages]
|
||||
|
||||
# English Language
|
||||
################################ English Language ######################
|
||||
[Languages.en]
|
||||
languageName = "En"
|
||||
weight = 1
|
||||
languageCode = "en-us"
|
||||
title = "Dot"
|
||||
dateFormat = "2 January 2006"
|
||||
weight = 1
|
||||
home = "Home"
|
||||
# logo is for all page
|
||||
logo = ""
|
||||
# logo white is for homepage logo, you can use colorful logo too...
|
||||
logoWhite = ""
|
||||
copyright = "The Hugo Documents are copyright © [gethugothemes](https://gethugothemes.com/) 2019."
|
||||
|
||||
# navigation
|
||||
|
@ -91,36 +117,16 @@ disableLanguageSwitchingButton = false
|
|||
title = "Got Any Questions"
|
||||
content = "Submit the form and confirm your email address at <a class='text-primary' href='https://formspree.io/'>Formspree</a> Then add the following lines to contact page YAML Front Matter."
|
||||
|
||||
# footer social icon
|
||||
[[Languages.en.socialIcon]]
|
||||
icon = "ti-facebook"
|
||||
linkURL = "#"
|
||||
|
||||
[[Languages.en.socialIcon]]
|
||||
icon = "ti-twitter-alt"
|
||||
linkURL = "#"
|
||||
|
||||
[[Languages.en.socialIcon]]
|
||||
icon = "ti-vimeo-alt"
|
||||
linkURL = "#"
|
||||
|
||||
[[Languages.en.socialIcon]]
|
||||
icon = "ti-instagram"
|
||||
linkURL = "#"
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
# Franch Language
|
||||
################################### Franch Language ######################
|
||||
[Languages.fr]
|
||||
languageName = "Fr"
|
||||
weight = 1
|
||||
languageCode = "fr-fr"
|
||||
title = "Dot"
|
||||
dateFormat = "2 January 2006"
|
||||
weight = 2
|
||||
home = "Aidez-moi"
|
||||
logo = "Dot"
|
||||
copyright = "Les documents Hugo sont sous copyright © gethugothemes 2019."
|
||||
|
||||
# navigation
|
||||
|
@ -182,21 +188,4 @@ disableLanguageSwitchingButton = false
|
|||
# contact
|
||||
[Languages.fr.params.contact]
|
||||
title = "Vous avez des questions"
|
||||
content = "Envoyez le formulaire et confirmez votre adresse e-mail à l'adresse <a class='text-primary' href='https://formspree.io/'>Formspree</a> Ajoutez ensuite les lignes suivantes pour contacter la page YAML Front Matter."
|
||||
|
||||
# footer social icon
|
||||
[[Languages.fr.socialIcon]]
|
||||
icon = "ti-facebook"
|
||||
linkURL = "#"
|
||||
|
||||
[[Languages.fr.socialIcon]]
|
||||
icon = "ti-twitter-alt"
|
||||
linkURL = "#"
|
||||
|
||||
[[Languages.fr.socialIcon]]
|
||||
icon = "ti-vimeo-alt"
|
||||
linkURL = "#"
|
||||
|
||||
[[Languages.fr.socialIcon]]
|
||||
icon = "ti-instagram"
|
||||
linkURL = "#"
|
||||
content = "Envoyez le formulaire et confirmez votre adresse e-mail à l'adresse <a class='text-primary' href='https://formspree.io/'>Formspree</a> Ajoutez ensuite les lignes suivantes pour contacter la page YAML Front Matter."
|
|
@ -6,11 +6,15 @@
|
|||
<p class="text-white mb-4">{{ .Site.Params.banner.description }}</p>
|
||||
<div class="position-relative">
|
||||
<input id="search" class="form-control" placeholder="{{ .Site.Params.banner.placeholder }}">
|
||||
|
||||
<!-- Javascript -->
|
||||
{{ $currentNode := . }}
|
||||
{{ $currentNode.Scratch.Set "pages" .Site.Pages }}
|
||||
{{ $pages := ($currentNode.Scratch.Get "pages") }}
|
||||
<script>
|
||||
$(function() {
|
||||
var projects = [
|
||||
{{ range .Data.Pages }}
|
||||
{{ range $pages }}
|
||||
{
|
||||
value: "{{ .Title }}",
|
||||
label: "{{ .Title }}",
|
||||
|
|
|
@ -7,7 +7,8 @@
|
|||
<ul class="list-styled">
|
||||
{{ $currentNode := . }}
|
||||
{{ $showvisitedlinks := .Site.Params.showVisitedLinks }}
|
||||
<a class="d-block h4 back-btn" href="{{ .Site.BaseURL }}{{ .Language.LanguageName | lower }}">{{ i18n "Back-home"}}</a>
|
||||
<a class="d-block h4 back-btn"
|
||||
href="{{ .Site.BaseURL }}{{ .Language.LanguageName | lower }}">{{ i18n "Back-home"}}</a>
|
||||
{{range .Site.Home.Sections.ByWeight}}
|
||||
{{ template "section-tree-nav" dict "sect" . "currentnode" $currentNode "showvisitedlinks" $showvisitedlinks}}
|
||||
{{end}}
|
||||
|
@ -81,7 +82,7 @@
|
|||
{{safeHTML .Params.head}}
|
||||
<li data-nav-id="{{.URL | absURL}}" title="{{.Title}}" class="sidelist
|
||||
{{if .IsAncestor $currentNode }}parent{{end}}
|
||||
{{if eq .File.UniqueID $currentNode.File.UniqueID}}active{{end}}
|
||||
{{with .File}} {{if eq .UniqueID $currentNode.UniqueID}}active{{end}} {{ end }}
|
||||
{{if .Params.alwaysopen}}parent{{end}}">
|
||||
<a href="{{.RelPermalink}}">
|
||||
{{safeHTML .Params.Pre}}{{or .Params.menuTitle .LinkTitle .Title}}{{safeHTML .Params.Post}}
|
||||
|
|
|
@ -7,8 +7,8 @@
|
|||
</div>
|
||||
<div class="col-md-4 text-md-right text-center">
|
||||
<ul class="list-inline mb-3">
|
||||
{{ range .Site.Params.socialIcon }}
|
||||
<li class="list-inline-item"><a class="text-color d-inline-block p-2" href="{{ .linkURL }}"><i class="{{ .icon }}"></i></a></li>
|
||||
{{ range .Site.Params.social }}
|
||||
<li class="list-inline-item"><a class="text-color d-inline-block p-2" href="{{ .link | safeURL }}"><i class="{{ .icon }}"></i></a></li>
|
||||
{{ end }}
|
||||
</ul>
|
||||
</div>
|
||||
|
|
|
@ -25,7 +25,7 @@
|
|||
--text-color:{{ .Site.Params.textColor }};
|
||||
--text-color-dark:{{ .Site.Params.textColorDark }};
|
||||
--white-color:{{ .Site.Params.whiteColor }};
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
||||
{{ "<!-- Main Stylesheet -->" | safeHTML }}
|
||||
|
|
Loading…
Reference in a new issue