mirror of
https://github.com/clearlinux/clear-linux-documentation.git
synced 2026-11-21 19:15:51 +00:00
Added canonical tag configuration to config file.
Added GA tracking snippet (cross-domain) to layout template. Signed-off-by: Kristal Dale <kristal.dale@intel.com>
This commit is contained in:
@@ -1,5 +1,23 @@
|
||||
{% extends "sphinx_rtd_theme/layout.html" %}
|
||||
|
||||
{% block htmltitle %}
|
||||
|
||||
<script>
|
||||
(function(i,s,o,g,r,a,m){i["GoogleAnalyticsObject"]=r;i[r]=i[r]||function(){
|
||||
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
|
||||
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
|
||||
})(window,document,"script","//www.google-analytics.com/analytics.js","ga");
|
||||
ga("create", "UA-61272224-1", “auto", {“allowLinker”: true});
|
||||
ga(“require”, “linker”);
|
||||
ga(“linker: autoLink”, [“clearlinux.org”]);
|
||||
ga("set", "anonymizeIp", true);
|
||||
ga("send", "pageview");
|
||||
</script>
|
||||
|
||||
{{ super() }}
|
||||
|
||||
{% endblock %}
|
||||
|
||||
{% block extrahead %}
|
||||
|
||||
<link rel="stylesheet" href="{{ pathto('_static/tcs_theme.css', 1) }}" type="text/css" />
|
||||
|
||||
@@ -127,6 +127,7 @@ version = current_version = "latest"
|
||||
# further. For a list of options available for each theme, see the
|
||||
# documentation.
|
||||
html_theme_options = {
|
||||
'canonical_url': 'docs.01.org/clearlinux/',
|
||||
'style_nav_header_background': '#007ab2',
|
||||
'navigation_depth': 4,
|
||||
'display_version': False,
|
||||
|
||||
Reference in New Issue
Block a user