0
0
mirror of https://github.com/google/googletest.git synced 2025-03-19 18:33:48 +00:00

Googletest export

Add Google Analytics & footer

PiperOrigin-RevId: 375539689
This commit is contained in:
Abseil Team 2021-05-24 16:04:24 -04:00 committed by Derek Mauro
parent c0777e6565
commit a3460d1aee
2 changed files with 25 additions and 13 deletions

View File

@ -7,6 +7,15 @@
{% seo %} {% seo %}
<link rel="stylesheet" href="{{ "/assets/css/style.css?v=" | append: site.github.build_revision | relative_url }}"> <link rel="stylesheet" href="{{ "/assets/css/style.css?v=" | append: site.github.build_revision | relative_url }}">
<script>
window.ga=window.ga||function(){(ga.q=ga.q||[]).push(arguments)};ga.l=+new Date;
ga('create', 'UA-197576187-1', { 'storage': 'none' });
ga('set', 'referrer', document.referrer.split('?')[0]);
ga('set', 'location', window.location.href.split('?')[0]);
ga('set', 'anonymizeIp', true);
ga('send', 'pageview');
</script>
<script async src='https://www.google-analytics.com/analytics.js'></script>
</head> </head>
<body> <body>
<div class="sidebar"> <div class="sidebar">
@ -36,18 +45,14 @@
<div class="main-inner"> <div class="main-inner">
{{ content }} {{ content }}
</div> </div>
<div class="footer">
GoogleTest &middot;
<a href="https://github.com/google/googletest">GitHub Repository</a> &middot;
<a href="https://github.com/google/googletest/blob/master/LICENSE">License</a> &middot;
<a href="https://policies.google.com/privacy">Privacy Policy</a>
</div>
</div> </div>
<script src="https://cdnjs.cloudflare.com/ajax/libs/anchor-js/4.1.0/anchor.min.js" integrity="sha256-lZaRhKri35AyJSypXXs4o6OPFTbTmUoltBbDCbdzegg=" crossorigin="anonymous"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/anchor-js/4.1.0/anchor.min.js" integrity="sha256-lZaRhKri35AyJSypXXs4o6OPFTbTmUoltBbDCbdzegg=" crossorigin="anonymous"></script>
<script>anchors.add('.main h2, .main h3, .main h4, .main h5, .main h6');</script> <script>anchors.add('.main h2, .main h3, .main h4, .main h5, .main h6');</script>
{% if site.google_analytics %}
<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', '{{ site.google_analytics }}', 'auto');
ga('send', 'pageview');
</script>
{% endif %}
</body> </body>
</html> </html>

View File

@ -61,7 +61,7 @@ body {
} }
.sidebar .expander .arrow { .sidebar .expander .arrow {
border: solid white; border: solid $white;
border-width: 0 3px 3px 0; border-width: 0 3px 3px 0;
display: block; display: block;
height: 0.7em; height: 0.7em;
@ -105,11 +105,18 @@ body {
} }
.main { .main {
background-color: $bg-gray;
width: calc(100% - #{$sidebar-width}); width: calc(100% - #{$sidebar-width});
} }
.main .main-inner { .main .main-inner {
margin: 2em; background-color: $white;
padding: 2em;
}
.main .footer {
margin: 0;
padding: 2em;
} }
.main table th { .main table th {
@ -117,7 +124,7 @@ body {
} }
.main .callout { .main .callout {
border-left: 0.25em solid white; border-left: 0.25em solid $white;
padding: 1em; padding: 1em;
a { a {