Skip to content

Commit 49f94a5

Browse files
authored
only load identity script on home page (#155)
1 parent 3519cb5 commit 49f94a5

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

site/layouts/partials/head.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,5 +28,7 @@
2828
<meta property="og:url" content="/">
2929
<meta property="og:image" content="/img/og-image.jpg">
3030

31-
<script src="https://identity.netlify.com/v1/netlify-identity-widget.js"></script>
31+
{{ if .IsHome }}
32+
<script src="https://identity.netlify.com/v1/netlify-identity-widget.js"></script>
33+
{{ end }}
3234
</head>

0 commit comments

Comments
 (0)