Adding Search To Jekyll Minima
I got the icon from this icons open project.
I added the svg
icon tag at _includes/header.html
(at the end of the for loop, inside the trigger
class div).
I added some CSS for the icon to be on the same line as the rest of the links, to adjust its position vertically, and also to prevent the underline happening on the icon.
<style>
.page-link nav{
width: 1.3rem;
display: inline-block;
}
.page-link nav svg {
position: relative;
top: 0.3rem;
}
.page-link-search:hover {
text-decoration: none;
}
</style>
The search is a script that runs on the client side using a JSON file.