Skip to content

Commit

Permalink
Add search to Learn
Browse files Browse the repository at this point in the history
  • Loading branch information
frankstrater committed Nov 2, 2021
1 parent bbd8197 commit dc3f28e
Show file tree
Hide file tree
Showing 6 changed files with 22 additions and 18 deletions.
3 changes: 1 addition & 2 deletions _includes/header.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!doctype html>
<!DOCTYPE html>
<html lang="en" class="h-100">
<head>
<meta charset="utf-8">
Expand All @@ -15,7 +15,6 @@
<link rel="apple-touch-icon" sizes="256x256" href="{{ '/assets/img/icons/icon-256x256.png' | relative_url }}">
<link rel="apple-touch-icon" sizes="384x384" href="{{ '/assets/img/icons/icon-384x384.png' | relative_url }}">
<link rel="apple-touch-icon" sizes="512x512" href="{{ '/assets/img/icons/icon-512x512.png' | relative_url }}">
<script async src="https://cse.google.com/cse.js?cx=011774963394194117834:u9h9mjx3v0s"></script>
</head>
<body{% if page.id %} id="{{ page.id }}"{% endif %} class="d-flex flex-column h-100">

Expand Down
4 changes: 4 additions & 0 deletions _includes/nav_learn.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,9 @@
<li><li class="nav-item"><a class="nav-link" href="{{ item.url | relative_url }}">{{ item.title }}</a></li>
{% endfor %}
</ul>
<form class="form-inline" action="{{ '/learn/search' | relative_url }}">
<input id="search_input" name="q" pattern=".{3,}" class="form-control mr-sm-2 ml-sm-2" type="search" placeholder="" aria-label="Search">
<button id="search_button" class="btn btn-primary my-2 my-sm-0" type="submit">Search</button>
</form>
</div>
</nav>
1 change: 1 addition & 0 deletions _layouts/help_search.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
</div>
</div>
<div class="col-md-8">
<script async src="https://cse.google.com/cse.js?cx=011774963394194117834:u9h9mjx3v0s"></script>
<div class="gcse-searchresults-only"></div>
</div>
</div>
Expand Down
9 changes: 9 additions & 0 deletions _layouts/learn_search.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{% include header.html %}
<main role="main" class="flex-shrink-0 mb-5">
<div class="container">
{% include nav_learn.html %}
<script async src="https://cse.google.com/cse.js?cx=16a00e22d89c94a57"></script>
<div class="gcse-searchresults-only"></div>
</div>
</main>
{% include footer.html %}
16 changes: 0 additions & 16 deletions help_search.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,3 @@ position: 15
menu: help
layout: help_search
---

The CLARIAH Media Suite is intended primarily as a **research tool** for scholars interested in **data science** with media collections maintained at institutes in the Netherlands such as Netherlands Institute for Sound and Vision, National Library, Eye Film Institute, DANS, Meertens Institute, etc. The Media Suite provides specific tools for researchers to search, analyse and annotate these data collections. In this documentation section we aim to provide all the necessary information needed to work with the Media Suite, in the form of:

- [Quick Start Guide](/documentation/quick-start-guide)

- [Frequently Asked Questions](/documentation/faq)

- [Howtos](/documentation/howtos)

- [Troubleshooting information for known issues](/documentation/troubleshooting)

- [Glossary of terms](/documentation/glossary)

For **reporting issues, asking questions or providing feedback** we setup fora that can be found via the [Fora for Support & Discussion](/documentation/forum) page.

The **terms of use and privacy statement** of the Media Suite can be read [here](/documentation/privacy-statement).
7 changes: 7 additions & 0 deletions learn_search.markdown
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
title: Learn search
permalink: "/learn/search"
position: 30
menu: learn
layout: learn_search
---

0 comments on commit dc3f28e

Please sign in to comment.