Skip to content

Commit

Permalink
Fixed deprecated .Site.IsServer
Browse files Browse the repository at this point in the history
Signed-off-by: Travis Beckham <[email protected]>
  • Loading branch information
travisbeckham committed May 16, 2024
1 parent 8b9b8c0 commit 6af2663
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion linkerd.io/layouts/_default/baseof.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
</head>

<body class="has-background-grey-light has-navbar-fixed-top ">
{{ if not .Site.IsServer }}
{{ if not hugo.IsServer }}
<!-- Google Tag Manager (noscript) -->
<noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-PXBDGKJ" height="0" width="0"
style="display:none;visibility:hidden"></iframe></noscript>
Expand Down
2 changes: 1 addition & 1 deletion linkerd.io/layouts/partials/css.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{{ $inServerMode := site.IsServer }}
{{ $inServerMode := hugo.IsServer }}
{{ $useMaterial := .Page.Params.use_material }}
{{ if $useMaterial }}
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-material-design/4.0.2/bootstrap-material-design.css" />
Expand Down
2 changes: 1 addition & 1 deletion linkerd.io/themes/buoyant/layouts/_default/baseof.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
</head>

<body class="has-background-grey-light">
{{ if not .Site.IsServer }}
{{ if not hugo.IsServer }}
<!-- Google Tag Manager (noscript) -->
<noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-PXBDGKJ" height="0" width="0"
style="display:none;visibility:hidden"></iframe></noscript>
Expand Down
2 changes: 1 addition & 1 deletion linkerd.io/themes/buoyant/layouts/partials/head.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
<script defer src="https://use.fontawesome.com/releases/v5.3.1/js/all.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/lazysizes/4.1.5/lazysizes.min.js"></script>

{{ if not .Site.IsServer }}
{{ if not hugo.IsServer }}
<!-- Google Tag Manager -->
<script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
Expand Down

0 comments on commit 6af2663

Please sign in to comment.