From 0814e2a2f7ed8e5c2466ab96c9c43717a10bb2db Mon Sep 17 00:00:00 2001 From: somratpro Date: Thu, 8 Oct 2020 10:48:09 +0600 Subject: added cookie popup --- exampleSite/config.toml | 18 +++++++++++------- layouts/partials/footer.html | 43 +++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 54 insertions(+), 7 deletions(-) diff --git a/exampleSite/config.toml b/exampleSite/config.toml index 078312e..179b3ba 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -76,15 +76,19 @@ googleAnalitycsID = "" # Your ID # copyright copyright = "Copyright © 2019 [GetHugoThemes](https://gethugothemes.com) All Rights Reserved" - # Preloader - [params.preloader] - enable = true - preloader = "" # use .png , .svg or .gif format +# Preloader +[params.preloader] +enable = true +preloader = "" # use .png , .svg or .gif format - # Navigation get start button - [params.navButton] - enable = true +# Navigation get start button +[params.navButton] +enable = true +# cookies +[params.cookies] +enable = true +expire_days = 2 ############################# Footer ######################## [params.footer] diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index 6a9cba5..f619fe9 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -75,4 +75,47 @@ ga('create', '{{ . }}', 'auto'); ga('send', 'pageview'); +{{ end }} + + +{{ if site.Params.cookies.enable }} + + + + + + {{ end }} \ No newline at end of file -- cgit v1.2.3