Skip to content

Commit d19deba

Browse files
committed
Search
1 parent ef991ab commit d19deba

2 files changed

Lines changed: 20 additions & 1 deletion

File tree

_config.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,7 @@ future: false
55
remote_theme: pages-themes/midnight@v0.2.0
66
plugins:
77
- jekyll-remote-theme # add this line to the plugins list if you already have one
8-
- jekyll-feed
8+
- jekyll-feed
9+
10+
# Google Custom Search
11+
google_cse_id: "2790ac76adc02472b" # Replace with actual ID

search.html

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
---
2+
title: "Search"
3+
layout: default
4+
permalink: /search/
5+
sitemap: false
6+
---
7+
8+
<article>
9+
<header><h1>Search</h1></header>
10+
11+
<div class="gcse-search"></div>
12+
13+
{% if site.google_cse_id %}
14+
<script async src="https://cse.google.com/cse.js?cx={{ site.google_cse_id }}"></script>
15+
{% endif %}
16+
</article>

0 commit comments

Comments
 (0)