Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/eddiewebb/hugo-resume.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKaushal Modi <kaushal.modi@gmail.com>2018-03-09 17:58:01 +0300
committerGitHub <noreply@github.com>2018-03-09 17:58:01 +0300
commitde7bffa167f68d1b22fdc8bf520cd6704946765c (patch)
tree3eb683349a9de4a78f48be306764f69c7f5ce8e2
parent597d5b54ad7121d665ab7a676eb1ba911f08def4 (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.html2
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">