_includes/head.html in jekyll-theme-lcsb-default-0.4.1 vs _includes/head.html in jekyll-theme-lcsb-default-0.4.2

- old
+ new

@@ -11,26 +11,29 @@ <link rel="manifest" href="{{ '/assets/favicon/site.webmanifest' | relative_url }}"> <link rel="mask-icon" href="{{ '/assets/favicon/safari-pinned-tab.svg' | relative_url }}" color="#5bbad5"> <link rel="shortcut icon" href="{{ '/assets/favicon/favicon.ico' | relative_url }}"> <meta name="msapplication-TileColor" content="#da532c"> <meta name="msapplication-config" content="{{ '/assets/favicon/browserconfig.xml' | relative_url }}"> - <meta name="theme-color" content="#ffffff"> {%- include css-imports.html -%} {% if site.siteID > 0 %} + <meta name="theme-color" content="#ffffff"> {%- include css-imports.html -%} + {% if site.siteID > 0 %} <script> - var settings = []; - settings.expires = "{{ site.cookies_expire }}"; - settings.matomoURL = "{{ site.analyticsurl }}"; - settings.siteID = "{{ site.siteID }}"; - settings.accept_all_text = "{{ site.accept_all_text }}"; - settings.only_necessary_text = "{{ site.only_necessary_text }}"; - settings.cookieName = "{{ site.cookieName }}"; - settings.bots = /bot|crawler|spider|crawling/i; - settings.timeout_hidebanner = "{{ site.timeout_hidebanner }}"; - settings.cookieDomain = "{{ site.cookieDomain }}"; + const settings = { + expires: "{{ site.cookies_expire }}", + matomoURL: "{{ site.analyticsurl }}", + siteID: "{{ site.siteID }}", + accept_all_text: "{{ site.accept_all_text }}", + only_necessary_text: "{{ site.only_necessary_text }}", + cookieName: "{{ site.cookieName }}", + bots: /bot|crawler|spider|crawling/i, + timeout_hidebanner: "{{ site.timeout_hidebanner }}", + cookieDomain: "{{ site.cookieDomain }}", + } </script> - <script src="{{ '/assets/js/jquery.min.js' | relative_url }}"></script> - <script src="{{ '/assets/js/gdpr.js' | relative_url }}"></script> + <script src="https://analytics.lcsb.uni.lu/lap/static/js/jquery.min.js"></script> + <script src="https://analytics.lcsb.uni.lu/lap/static/js/lap.js"></script> + {%- endif -%} - {%- endif -%} {%- if jekyll.environment == "review" -%} + {%- if jekyll.environment == "review" -%} <script defer data-project-id='{{site.project_id}}' data-project-path='{{site.project_namespace}}' data-merge-request-id='{{site.mr_id}}' data-mr-url='{{site.gitlab_host}}' id='review-app-toolbar-script' src='{{site.gitlab_host}}/assets/webpack/visual_review_toolbar.js'></script> {%- endif -%} </head> \ No newline at end of file