diff options
author | Loek Le Blansch <loek@pipeframe.xyz> | 2025-01-25 11:56:23 +0100 |
---|---|---|
committer | Loek Le Blansch <loek@pipeframe.xyz> | 2025-01-25 11:56:23 +0100 |
commit | f509e410bca55ff04b79b38a73e3751eff848c95 (patch) | |
tree | 20a4ba126d57512affbc06ffc06df69cfc4e5706 /_includes/posts.html | |
parent | c782351577faa451edb0eb386694d9db211200f8 (diff) |
add search bar to posts
Diffstat (limited to '_includes/posts.html')
-rw-r--r-- | _includes/posts.html | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/_includes/posts.html b/_includes/posts.html index 5385d1f..05eebe7 100644 --- a/_includes/posts.html +++ b/_includes/posts.html @@ -1,4 +1,12 @@ -<table class="plainlink" width="100%"> +<link rel="stylesheet" href="style.css"> + +<form id="search" method="get" action="https://google.com/search"> + <input type="text" placeholder="search" name="q" spellcheck="false" autocomplete="off"> + <input type="hidden" name="q" value="site:{{ site.domain }}"> + <input type="submit"> +</form> + +<table id="posts" class="plainlink"> <tr> <th><a href="by-date" class="{% if include.sort == "date" %}sortcolumn{% endif %}">date</a></th> <th><a href="by-title" class="{% if include.sort == "title" %}sortcolumn{% endif %}">title</a></th> @@ -11,3 +19,4 @@ </tr> {% endfor %} </table> + |