_includes: head: add cookie consent import, favicons, locales
This commit is contained in:
parent
5db4d71fae
commit
73637c752f
1 changed files with 49 additions and 0 deletions
|
@ -2,4 +2,53 @@
|
||||||
|
|
||||||
<!-- insert favicons. use https://realfavicongenerator.net/ -->
|
<!-- insert favicons. use https://realfavicongenerator.net/ -->
|
||||||
|
|
||||||
|
<!-- hacks-guide change start: cookie consent, favicon, locales -->
|
||||||
|
|
||||||
|
<link rel="apple-touch-icon" sizes="180x180" href="{{ base_path }}/images/site-config/apple-touch-icon.png?v=PYEmwKvQAx">
|
||||||
|
<link rel="icon" type="image/png" href="{{ base_path }}/images/site-config/favicon-16x16.png?v=PYEmwKvQAx" sizes="16x16">
|
||||||
|
<link rel="icon" type="image/png" href="{{ base_path }}/images/site-config/favicon-32x32.png?v=PYEmwKvQAx" sizes="32x32">
|
||||||
|
<link rel="icon" type="image/png" href="{{ base_path }}/images/site-config/favicon-194x194.png?v=PYEmwKvQAx" sizes="194x194">
|
||||||
|
<link rel="icon" type="image/png" href="{{ base_path }}/images/site-config/android-chrome-192x192.png?v=PYEmwKvQAx" sizes="192x192">
|
||||||
|
<link rel="manifest" href="{{ base_path }}/images/site-config/manifest.json?v=PYEmwKvQAx">
|
||||||
|
<link rel="mask-icon" href="{{ base_path }}/images/site-config/safari-pinned-tab.svg?v=PYEmwKvQAx" color="#2E3440">
|
||||||
|
<link rel="shortcut icon" href="{{ base_path }}/images/site-config/favicon.ico?v=PYEmwKvQAx">
|
||||||
|
<meta name="apple-mobile-web-app-title" content="Guide">
|
||||||
|
<meta name="application-name" content="Guide">
|
||||||
|
<meta name="msapplication-TileColor" content="#2E3440">
|
||||||
|
<meta name="msapplication-TileImage" content="{{ base_path }}/images/site-config/mstile-144x144.png?v=PYEmwKvQAx">
|
||||||
|
<meta name="msapplication-config" content="{{ base_path }}/assets/xml/browserconfig.xml?v=PYEmwKvQAx">
|
||||||
|
<meta name="theme-color" content="#2E3440">
|
||||||
|
|
||||||
|
{% assign split_path = page.path | split: "/" %}
|
||||||
|
{% assign locale = split_path[1] %}
|
||||||
|
{% if locale == 'en_US' %}
|
||||||
|
{% assign locale_var = '/' %}
|
||||||
|
{% else %}
|
||||||
|
{% assign locale_var = locale | prepend:'/' | append:'/' %}
|
||||||
|
{% endif %}
|
||||||
|
{% assign top = site.data.navigation[locale].top %}
|
||||||
|
|
||||||
|
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/cookieconsent2/3.1.1/cookieconsent.min.css" integrity="sha512-LQ97camar/lOliT/MqjcQs5kWgy6Qz/cCRzzRzUCfv0fotsCTC9ZHXaPQmJV8Xu/PVALfJZ7BDezl5lW3/qBxg==" crossorigin="anonymous" referrerpolicy="no-referrer" />
|
||||||
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/cookieconsent2/3.1.1/cookieconsent.min.js" integrity="sha512-yXXqOFjdjHNH1GND+1EO0jbvvebABpzGKD66djnUfiKlYME5HGMUJHoCaeE4D5PTG2YsSJf6dwqyUUvQvS0vaA==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
|
||||||
|
<script>
|
||||||
|
window.addEventListener("load", function(){
|
||||||
|
window.cookieconsent.initialise({
|
||||||
|
"palette": {
|
||||||
|
"popup": {
|
||||||
|
"background": "#2e3440"
|
||||||
|
},
|
||||||
|
"button": {
|
||||||
|
"background": "#60818f"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"theme": "edgeless",
|
||||||
|
"position": "top",
|
||||||
|
"static": true,
|
||||||
|
"content": {
|
||||||
|
"message": "{{ top[0].title }}"
|
||||||
|
}
|
||||||
|
})});
|
||||||
|
</script>
|
||||||
|
<!-- hacks-guide change end -->
|
||||||
|
|
||||||
<!-- end custom head snippets -->
|
<!-- end custom head snippets -->
|
||||||
|
|
Loading…
Reference in a new issue