Skip to content

Commit c45d04c

Browse files
committed
generate json
1 parent 2856c6f commit c45d04c

File tree

9 files changed

+3337
-46
lines changed

9 files changed

+3337
-46
lines changed

.gitignore

Lines changed: 120 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@
2020
.LSOverride
2121

2222
# Icon must end with two \r
23-
Icon
23+
Icon
24+
2425

2526
# Thumbnails
2627
._*
@@ -79,3 +80,121 @@ $RECYCLE.BIN/
7980

8081
# .nfs files are created when an open file is removed but is still being accessed
8182
.nfs*
83+
84+
# Logs
85+
logs
86+
*.log
87+
npm-debug.log*
88+
yarn-debug.log*
89+
yarn-error.log*
90+
lerna-debug.log*
91+
92+
# Diagnostic reports (https://nodejs.org/api/report.html)
93+
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
94+
95+
# Runtime data
96+
pids
97+
*.pid
98+
*.seed
99+
*.pid.lock
100+
101+
# Directory for instrumented libs generated by jscoverage/JSCover
102+
lib-cov
103+
104+
# Coverage directory used by tools like istanbul
105+
coverage
106+
*.lcov
107+
108+
# nyc test coverage
109+
.nyc_output
110+
111+
# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
112+
.grunt
113+
114+
# Bower dependency directory (https://bower.io/)
115+
bower_components
116+
117+
# node-waf configuration
118+
.lock-wscript
119+
120+
# Compiled binary addons (https://nodejs.org/api/addons.html)
121+
build/Release
122+
123+
# Dependency directories
124+
node_modules/
125+
jspm_packages/
126+
127+
# Snowpack dependency directory (https://snowpack.dev/)
128+
web_modules/
129+
130+
# TypeScript cache
131+
*.tsbuildinfo
132+
133+
# Optional npm cache directory
134+
.npm
135+
136+
# Optional eslint cache
137+
.eslintcache
138+
139+
# Microbundle cache
140+
.rpt2_cache/
141+
.rts2_cache_cjs/
142+
.rts2_cache_es/
143+
.rts2_cache_umd/
144+
145+
# Optional REPL history
146+
.node_repl_history
147+
148+
# Output of 'npm pack'
149+
*.tgz
150+
151+
# Yarn Integrity file
152+
.yarn-integrity
153+
154+
# dotenv environment variables file
155+
.env
156+
.env.test
157+
158+
# parcel-bundler cache (https://parceljs.org/)
159+
.cache
160+
.parcel-cache
161+
162+
# Next.js build output
163+
.next
164+
165+
# Nuxt.js build / generate output
166+
.nuxt
167+
dist
168+
169+
# Gatsby files
170+
.cache/
171+
# Comment in the public line in if your project uses Gatsby and not Next.js
172+
# https://nextjs.org/blog/next-9-1#public-directory-support
173+
# public
174+
175+
# vuepress build output
176+
.vuepress/dist
177+
178+
# Serverless directories
179+
.serverless/
180+
181+
# FuseBox cache
182+
.fusebox/
183+
184+
# DynamoDB Local files
185+
.dynamodb/
186+
187+
# TernJS port file
188+
.tern-port
189+
190+
# Stores VSCode versions used for testing VSCode extensions
191+
.vscode-test
192+
193+
# yarn v2
194+
195+
.yarn/cache
196+
.yarn/unplugged
197+
.yarn/build-state.yml
198+
.pnp.*
199+
200+
/public

config.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,13 @@ params:
4242
params:
4343
- "categories"
4444
- "tags"
45+
options:
46+
appId: NQED3STBQT
47+
apiKey: 5b7ac3f0c287018586467528f312e255
48+
indexName: "kausalflow-research-tools"
49+
hitsPerPage: 10
50+
routing: true
51+
4552

4653

4754
outputFormats:
@@ -51,3 +58,8 @@ outputFormats:
5158
mediaType: "application/json"
5259
notAlternative: true
5360

61+
outputs:
62+
home:
63+
- "HTML"
64+
- "RSS"
65+
- "Algolia"

content/search/_index.md

Whitespace-only changes.

layouts/search/list.html

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
{{ define "header" }}
2+
{{ partial "menu" . }}
3+
<div class="hero" style="margin-bottom:2em;">
4+
<div class="hero-body">
5+
<div class="container">
6+
<div class="container has-text-centered">
7+
<h1 class="title is-2 has-text-centered">Research Tools</h1>
8+
</div>
9+
</div>
10+
</div>
11+
</div>
12+
13+
{{ end }}
14+
15+
16+
{{ define "main" }}
17+
<div class="is-divider" data-content="TOOLS"
18+
style="border-top:.1rem dashed #dbdbdb57 !important;margin: 1rem 0 !important;">
19+
</div>
20+
<main class="container" aria-label="Content">
21+
<div class="columns">
22+
<div class="column is-3">
23+
{{ partial "list/menu.html" .}}
24+
</div>
25+
<div class="column">
26+
<div class="columns is-multiline">
27+
{{ range .Paginator.Pages }}
28+
<div class="column is-one-third">
29+
{{ partial "list/card.html" .}}
30+
</div>
31+
{{ end }}
32+
</div>
33+
</div>
34+
</div>
35+
36+
<div class="is-divider" style="border-top:.1rem dashed #dbdbdb57 !important;margin: 1rem 0 !important;"></div>
37+
38+
<div class="container">
39+
<div class="columns">
40+
<div class="column" style="margin-bottom: 2em;padding-bottom:1em;">
41+
{{ partial "pagination" . }}
42+
</div>
43+
</div>
44+
</div>
45+
</main>
46+
{{ end }}
47+
{{ define "footer" }}
48+
{{ partial "footer" . }}
49+
{{ end }}

0 commit comments

Comments
 (0)