Skip to content

Commit 7d7b226

Browse files
committed
feat: add s_code and Shortbread analytics
- Add s_code (Adobe Analytics) via CDN in <head> - Add Shortbread cookie consent library via CDN - Add legal zone links (Privacy, Site terms, Cookie preferences) to footer - Enable Zensical template overrides closes #150
1 parent eddf871 commit 7d7b226

2 files changed

Lines changed: 15 additions & 1 deletion

File tree

overrides/main.html

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{% extends "base.html" %}
2+
3+
{% block extrahead %}
4+
<script src="https://a0.awsstatic.com/s_code/js/3.0/awshome_s_code.js"></script>
5+
<link href="https://prod.assets.shortbread.aws.dev/shortbread.css" rel="stylesheet">
6+
<script src="https://prod.assets.shortbread.aws.dev/shortbread.js"></script>
7+
<script>
8+
var shortbread = AWSCShortbread();
9+
shortbread.checkForCookieConsent();
10+
</script>
11+
{% endblock %}

zensical.toml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,9 @@ edit_uri = "edit/main/docs/"
3737
#
3838
# Read more: https://zensical.org/docs/setup/basics/#copyright
3939
copyright = """
40+
<a href="https://aws.amazon.com/privacy/">Privacy</a> |
41+
<a href="https://aws.amazon.com/terms/">Site terms</a> |
42+
<a href="#" id="awsccc-sb-ux-c-customize" onclick="if(typeof shortbread!=='undefined'){shortbread.customizeCookies()}return false;">Cookie preferences</a> |
4043
Copyright &copy; 2026 Amazon Web Services, Inc. or its affiliates.
4144
"""
4245

@@ -148,7 +151,7 @@ extra_css = ["stylesheets/extra.css"]
148151
# Read more:
149152
# - https://zensical.org/docs/customization/#extending-the-theme
150153
#
151-
#custom_dir = "overrides"
154+
custom_dir = "overrides"
152155

153156
# With the "favicon" option you can set your own image to use as the icon
154157
# browsers will use in the browser title bar or tab bar. The path provided

0 commit comments

Comments
 (0)