Add a pages content type and move page files
This commit is contained in:
parent
7087bbbb7f
commit
e1573ef072
38 changed files with 2 additions and 0 deletions
49
source/_pages/search.html.twig
Normal file
49
source/_pages/search.html.twig
Normal file
|
@ -0,0 +1,49 @@
|
|||
---
|
||||
layout: page
|
||||
title: Search
|
||||
common_searches:
|
||||
- Drupal
|
||||
- Test-Driven Development
|
||||
- Automated testing
|
||||
- Refactoring
|
||||
- PHP
|
||||
- Tailwind CSS
|
||||
- Neovim
|
||||
- Git
|
||||
- Linux
|
||||
---
|
||||
|
||||
<div>
|
||||
<form
|
||||
class="flex items-center space-x-6"
|
||||
action="https://www.google.com/search"
|
||||
method="get"
|
||||
>
|
||||
<div class="flex-1">
|
||||
<input
|
||||
type="hidden"
|
||||
name="q"
|
||||
value="site:https://www.oliverdavies.uk"
|
||||
/>
|
||||
<input class="w-full" type="text" name="q" alt="search" />
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<input class="cursor-pointer button" type="submit" value="Search" />
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
<aside>
|
||||
<h2>Common searches</h2>
|
||||
|
||||
<ul>
|
||||
{% for term in page.common_searches %}
|
||||
<li>
|
||||
<a href="https://duckduckgo.com/?q={{ term|replace({' ': '+'}) }}+site%3A{{ site.url|url_encode }}">
|
||||
{{ term }}
|
||||
</a>
|
||||
</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
</aside>
|
Loading…
Add table
Add a link
Reference in a new issue