Skip to content

Commit a05bcab

Browse files
Moved Algolia code
1 parent 7632603 commit a05bcab

File tree

2 files changed

+15
-17
lines changed

2 files changed

+15
-17
lines changed

_includes/layouts/wants.njk

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,20 @@ pagination:
1313

1414
{{ layoutContent | safe }}
1515

16+
<div id="search"><p>Search existing wants:</p></div>
17+
18+
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@algolia/algoliasearch-netlify-frontend@1/dist/algoliasearchNetlify.css" />
19+
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/@algolia/algoliasearch-netlify-frontend@1/dist/algoliasearchNetlify.js"></script>
20+
<script type="text/javascript">
21+
algoliasearchNetlify({
22+
appId: 'DHNCDDF8RA',
23+
apiKey: 'b8b628b83ba4b077f0d1225dd553f18f',
24+
siteId: '770267f7-c04f-4418-aca2-3a377b1059e0',
25+
branch: 'main',
26+
selector: 'div#search',
27+
});
28+
</script>
29+
1630
{% if wants.length > 0 %}
1731
{% include "components/wants.njk" %}
1832
{{ paginate( "Page", pagination ) }}

pages/wants.md

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -2,27 +2,11 @@
22
layout: layouts/wants.njk
33
title: What We Want
44
description: Here is a run-down of all of the “wants” submitted as part of this program.
5-
date: 2019-01-02T00:00:00.000Z
5+
date: "2019-01-02T00:00:00.000Z"
66
navtitle: Wants
77
tags:
88
- nav
99
includeInSitemap: true
1010
---
1111

1212
Here is a run-down of the {{ collections.wants.length }} "wants" submitted as part of this program. Check ’em out and if there’s something you want, [send it in](/#submit)!
13-
14-
<div id="search">
15-
<p>Search existing wants:</p>
16-
</div>
17-
18-
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@algolia/algoliasearch-netlify-frontend@1/dist/algoliasearchNetlify.css" />
19-
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/@algolia/algoliasearch-netlify-frontend@1/dist/algoliasearchNetlify.js"></script>
20-
<script type="text/javascript">
21-
algoliasearchNetlify({
22-
appId: 'DHNCDDF8RA',
23-
apiKey: 'b8b628b83ba4b077f0d1225dd553f18f',
24-
siteId: '770267f7-c04f-4418-aca2-3a377b1059e0',
25-
branch: 'main',
26-
selector: 'div#search',
27-
});
28-
</script>

0 commit comments

Comments
 (0)