From 14a49da29a0750b137b147eb2692a8828c8d306b Mon Sep 17 00:00:00 2001 From: Svetlana Karslioglu Date: Thu, 15 Jun 2023 12:39:37 -0700 Subject: [PATCH] Add New GTAG Re: https://github.com/pytorch/pytorch.github.io/issues/1397 Adding the new GTAG to populate on all sites that use pytorch_sphinx_theme. --- pytorch_sphinx_theme/layout.html | 23 +++++++++++------------ 1 file changed, 11 insertions(+), 12 deletions(-) diff --git a/pytorch_sphinx_theme/layout.html b/pytorch_sphinx_theme/layout.html index 1c567517..deccbd88 100644 --- a/pytorch_sphinx_theme/layout.html +++ b/pytorch_sphinx_theme/layout.html @@ -76,18 +76,13 @@ {%- endblock %} {%- block extrahead %} - - {% if theme_analytics_id %} - - - {% endif %} - + + + {% endblock %} {# Keep modernizr in head - http://modernizr.com/docs/#installing #} @@ -321,6 +316,10 @@ {% endif %} {%- block content %} + + + {% if theme_style_external_links|tobool %}