Skip to content

Commit

Permalink
fix: doc site script filter (#317)
Browse files Browse the repository at this point in the history
  • Loading branch information
DaveSkender authored Nov 12, 2023
1 parent 5427ad4 commit 5d66437
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/_layouts/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<link rel="preconnect" href="https://github.githubassets.com">
<link rel="preconnect" href="https://img.shields.io">

{% if site.github.source.branch != "main" or page.noindex == true %}
{% if jekyll.environment != 'production' or page.noindex == true %}
<!-- exclude from search indexing -->
<meta name="robots" content="noindex, nofollow">
{% endif %}
Expand All @@ -27,7 +27,7 @@
<link rel="apple-touch-icon" sizes="180x180" href="{{ '/assets/icons/apple-touch-icon.png' | relative_url }}">
<link rel="mask-icon" href="{{ '/assets/icons/safari-pinned-tab.svg' | relative_url }}" color="#424242">

{% if site.ga_tag and site.github.source.branch == 'main' %}
{% if site.ga_tag and jekyll.environment == 'production' %}
<script async src="https://www.googletagmanager.com/gtag/js?id={{site.ga_tag}}"></script>
<script>
window.dataLayer = window.dataLayer || [];
Expand Down

0 comments on commit 5d66437

Please sign in to comment.