From ab258d9732957f5b863eb02dc61e014e042e9d23 Mon Sep 17 00:00:00 2001 From: somrat Date: Wed, 13 Nov 2019 12:23:31 +0600 Subject: [PATCH] modified search engine and some minor bug --- exampleSite/config.toml | 91 +++++++++++++++-------------------- layouts/partials/banner.html | 6 ++- layouts/partials/default.html | 5 +- layouts/partials/footer.html | 4 +- layouts/partials/head.html | 2 +- 5 files changed, 51 insertions(+), 57 deletions(-) diff --git a/exampleSite/config.toml b/exampleSite/config.toml index 69a334a..8fc19c5 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -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 Formspree 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 Formspree 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 = "#" \ No newline at end of file + content = "Envoyez le formulaire et confirmez votre adresse e-mail à l'adresse Formspree Ajoutez ensuite les lignes suivantes pour contacter la page YAML Front Matter." \ No newline at end of file diff --git a/layouts/partials/banner.html b/layouts/partials/banner.html index bb49136..0e00d62 100644 --- a/layouts/partials/banner.html +++ b/layouts/partials/banner.html @@ -6,11 +6,15 @@

{{ .Site.Params.banner.description }}

+ + {{ $currentNode := . }} + {{ $currentNode.Scratch.Set "pages" .Site.Pages }} + {{ $pages := ($currentNode.Scratch.Get "pages") }}