mirror of https://github.com/docker/docs.git
WEB-1276: Adds OneTrust consent manager JS snippet and footer button
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
parent
e125c3bc48
commit
48fcb45a44
|
@ -16,6 +16,7 @@ exclude:
|
|||
# Google Analytics, etc.
|
||||
google_analytics: GTM-WL2QLG5
|
||||
polldaddy_id: 8453675
|
||||
onetrust_id: 8e0ebfd9-035d-4ec2-9b2f-a2de9c09f906
|
||||
|
||||
# Assets
|
||||
#
|
||||
|
|
|
@ -0,0 +1,7 @@
|
|||
{% if include.ONETRUST_ID and include.ONETRUST_ID != '' %}<!-- OneTrust Cookies Consent Notice start for http://docs.docker.com -->
|
||||
<script src="https://cdn.cookielaw.org/scripttemplates/otSDKStub.js" type="text/javascript" charset="UTF-8" data-domain-script="{{ include.ONETRUST_ID }}" ></script>
|
||||
<script type="text/javascript">
|
||||
function OptanonWrapper() { }
|
||||
</script>
|
||||
<!-- OneTrust Cookies Consent Notice end for http://docs.docker.com -->
|
||||
{% else %}<!-- No consent manager configured -->{% endif %}
|
|
@ -86,6 +86,11 @@
|
|||
<p class="copyright">
|
||||
Copyright © 2013-{{ site.time | date: '%Y' }} Docker Inc. All rights reserved.
|
||||
</p>
|
||||
{%- if jekyll.environment == 'production' and site.onetrust_id != '' -%}
|
||||
<!-- OneTrust Cookies Settings button start -->
|
||||
<button id="ot-sdk-btn" class="ot-sdk-show-settings">Cookie Settings</button>
|
||||
<!-- OneTrust Cookies Settings button end -->
|
||||
{%- endif -%}
|
||||
</div>
|
||||
<div class="footer_social_nav">
|
||||
<ul class="nav-social">
|
||||
|
|
|
@ -29,7 +29,10 @@
|
|||
{%- if page.sitemap == false or jekyll.environment != 'production' %}
|
||||
<meta name="robots" content="noindex"/>
|
||||
{%- endif %}
|
||||
{%- if jekyll.environment == 'production' and site.google_analytics != '' -%}{%- include analytics/google_analytics.html GOOGLE_ID=site.google_analytics -%}{%- endif -%}
|
||||
{%- if jekyll.environment == 'production' -%}
|
||||
{%- if site.onetrust_id != '' -%}{%- include analytics/onetrust.html ONETRUST_ID=site.onetrust_id -%}{%- endif -%}
|
||||
{%- if site.google_analytics != '' -%}{%- include analytics/google_analytics.html GOOGLE_ID=site.google_analytics -%}{%- endif -%}
|
||||
{%- endif -%}
|
||||
<title>{{ page.title | default: page_title }} | Docker Documentation</title>
|
||||
<meta name="description" content="{{ page.description | default: page_description | escape}}" />
|
||||
<meta name="keywords" content="{{ page.keywords | default: 'docker, docker open source, docker platform, distributed applications, microservices, containers, docker containers, docker software, docker virtualization' }}">
|
||||
|
|
Loading…
Reference in New Issue