Skip to content

Commit

Permalink
Merge pull request #73 from cloud-native-nordics/72-add-cloudflare-tu…
Browse files Browse the repository at this point in the history
…rnstile-to-site

Added turnstile code
  • Loading branch information
rhjensen79 authored Jan 25, 2024
2 parents ba0e02a + e4a5294 commit a13d16f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions layouts/partials/head.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,6 @@
{{ $scss := resources.Get "scss/main.scss" }}
{{ $style := $scss| toCSS $options | resources.Minify | resources.Fingerprint }}
<link rel="stylesheet" type="text/css" href="{{ $style.Permalink | relURL }}">
<script src="https://challenges.cloudflare.com/turnstile/v0/api.js" async defer></script>
</head>
<body>
2 changes: 1 addition & 1 deletion layouts/partials/slack.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@ <h3>Join our Slack community</h3>
<button type="submit" class="btn btn-secondary" type="button">Invite</button>
</div>
</div>
<div class="cf-turnstile" data-sitekey="0x4AAAAAAAQkG-a3pcOC8Ic1"></div>
</form>
<p id="status"></p>
</div>
</div>
</div>
</section>

<script>
(() => {
const form = document.querySelector('form');
Expand Down

0 comments on commit a13d16f

Please sign in to comment.