diff --git a/static/css/cookieconsent.min.css b/assets/css/cookieconsent.min.css similarity index 100% rename from static/css/cookieconsent.min.css rename to assets/css/cookieconsent.min.css diff --git a/static/css/style.css b/assets/css/style.css similarity index 100% rename from static/css/style.css rename to assets/css/style.css diff --git a/static/css/style.rtl.css b/assets/css/style.rtl.css similarity index 100% rename from static/css/style.rtl.css rename to assets/css/style.rtl.css diff --git a/static/js/cookieconsent.min.js b/assets/js/cookieconsent.min.js similarity index 100% rename from static/js/cookieconsent.min.js rename to assets/js/cookieconsent.min.js diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index 04ba23d..e0ca337 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -14,10 +14,12 @@ {{ if or (eq .Lang "ar") (eq .Lang "fa") }} {{ "" | safeHTML }} - + {{ $styleRtl := resources.Get "css/style.rtl.css" | resources.Fingerprint }} + {{ else }} {{ "" | safeHTML }} - + {{ $style := resources.Get "css/style.css" | resources.Fingerprint }} + {{ end }} {{ "" | safeHTML }} diff --git a/layouts/partials/cookie-consent.html b/layouts/partials/cookie-consent.html index 24d5689..e0e72a4 100644 --- a/layouts/partials/cookie-consent.html +++ b/layouts/partials/cookie-consent.html @@ -1,5 +1,7 @@ - - +{{ $cookieConsentStyle := resources.Get "css/cookieconsent.min.css" | resources.Fingerprint }} + +{{ $cookieConsentScript := resources.Get "js/cookieconsent.min.js" | resources.Fingerprint }} +