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

✨ add search function #4

Merged
merged 1 commit into from
Jun 21, 2024
Merged
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
13 changes: 11 additions & 2 deletions templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,17 @@
<a class="w3-bar-item w3-button w3-mobile w3-hover-green" href="/wisdom/templates/">範本</a>
</div>
</div>
<a class="w3-bar-item w3-button w3-mobile w3-large w3-teal w3-hover-green w3-padding-24 w3-right"
href="/about/">關於</a>
<a class="w3-bar-item w3-button w3-mobile w3-hover-green w3-large w3-teal w3-padding-24" href="/about/">關於</a>
<div class="w3-bar-item w3-right w3-padding-24">
<form action="https://www.google.com/search" method="get" target="_blank">
<input type="text" name="q" placeholder="搜尋..." class="w3-input w3-bar-item"
style="display:inline-block; width:auto;">
<input type="hidden" name="sitesearch" value="{{ config.base_url }}">
<button type="submit" class="w3-button w3-teal" style="display:inline-block; padding:6px;">
<i class="fa fa-search"></i>
</button>
</form>
</div>
</nav>
</header>
<main id="root" class="body-zone flex juistify-between flex-1 main-inner">
Expand Down