Skip to content

Commit

Permalink
fix: use relative path for search page. closes #34
Browse files Browse the repository at this point in the history
  • Loading branch information
tomowang committed Mar 30, 2024
1 parent 469c789 commit 9dc72c5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion layouts/partials/header.html
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
<div class="flex-none mx-1"></div>
{{ end }}
<div class="flex-none md:hidden">
<a href={{ relLangURL "/search/" }} class="inline-flex items-center p-2 text-sm text-slate-800 dark:text-slate-200 rounded-lg" aria-controls="navbar-menu" aria-expanded="false">
<a href={{ relLangURL "search/" }} class="inline-flex items-center p-2 text-sm text-slate-800 dark:text-slate-200 rounded-lg" aria-controls="navbar-menu" aria-expanded="false">
<span class="sr-only">{{ T "search.title" }}</span>
<i class="w-8 h-8">
{{ partial "icon.html" "search" }}
Expand Down
2 changes: 1 addition & 1 deletion layouts/partials/sidebar.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<section class="pl-6 mt-6 w-full max-w-4xl lg:max-w-5xl">
<form class="" action={{ relLangURL "/search/" }} method="get">
<form class="" action={{ relLangURL "search/" }} method="get">
<div class="flex">
<input type="text" name="search" id="search-input" required placeholder="{{ T "search.placeholder" }}" class="rounded-none rounded-s-lg border border-gray-300 text-slate-800 focus:outline-none focus:ring-blue-500 focus:border-blue-500 block flex-1 min-w-0 w-full text-sm p-3 dark:bg-slate-700 dark:border-slate-600 dark:placeholder-slate-400 dark:text-slate-200 dark:focus:ring-blue-500 dark:focus:border-blue-500">
<button class="inline-flex items-center px-3 text-sm text-slate-900 bg-slate-200 border border-e-0 border-gray-300 rounded-e-lg dark:bg-slate-600 dark:text-slate-400 dark:border-slate-600">
Expand Down

0 comments on commit 9dc72c5

Please sign in to comment.