diff options
author | Kaushal Modi <kaushal.modi@gmail.com> | 2018-03-09 17:58:01 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-03-09 17:58:01 +0300 |
commit | de7bffa167f68d1b22fdc8bf520cd6704946765c (patch) | |
tree | 3eb683349a9de4a78f48be306764f69c7f5ce8e2 | |
parent | 597d5b54ad7121d665ab7a676eb1ba911f08def4 (diff) |
Use .Permalink instead of hard-coding the search page
Using .Permalink, we do not have to worry if the user decides to rename search.md to foo.md.
-rw-r--r-- | layouts/_default/search.html | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/layouts/_default/search.html b/layouts/_default/search.html index aeef678..d6ce0c2 100644 --- a/layouts/_default/search.html +++ b/layouts/_default/search.html @@ -6,7 +6,7 @@ {{ define "main" }} <section class="resume-section p-3 p-lg-5 d-flex flex-column"> <div class="my-auto" > - <form action="{{ "search" | absURL }}"> + <form action="{{ .Permalink }}"> <input id="search-query" name="s"/> </form> <div id="search-results"> |