Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding Search functionality to EPIC Guide #59

Closed
wants to merge 22 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions _includes/google-search.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<script>
(function() {
const cx = 'e20a3e7ce37c2454c';
const gcse = document.createElement('script');
gcse.async = true;
gcse.src = 'https://cse.google.com/cse.js?cx=' + cx;
vinitra marked this conversation as resolved.
Show resolved Hide resolved
var s = document.getElementsByTagName('script')[0];
vinitra marked this conversation as resolved.
Show resolved Hide resolved
s.parentNode.insertBefore(gcse, s);
})();
</script>
<gcse:search></gcse:search>
3 changes: 3 additions & 0 deletions index.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ category: home
This guide is put together by PhD students in Computer & Communication Sciences at EPFL to help you navigate your research career at EPFL, from applying to graduating.
This information is provided by students, for students, and does not officially represent the views of EPFL or any of its departments.

✨ **Search the EPIC Guide** ✨
{% include google-search.html %}

## Call for contributions

We try to keep the guide up to date, but if you notice any inconsistencies, please tell us at `epic [at] groupes [dot] epfl [dot] ch`,
Expand Down