summaryrefslogtreecommitdiffstats
path: root/layouts/shortcodes
diff options
context:
space:
mode:
authorSerghei Iakovlev <egrep@protonmail.ch>2022-07-31 00:05:43 +0200
committerSerghei Iakovlev <egrep@protonmail.ch>2022-07-31 00:06:34 +0200
commit83925df1efc115b3f12a53ee834863fd5881b0df (patch)
treeac2c0ead408ec052628b48e306e4ab441fe90a9a /layouts/shortcodes
parent56ee7b58bf0261cef6bfefc6ace20dc9e033c5f1 (diff)
downloadgohugo-theme-ed-83925df1efc115b3f12a53ee834863fd5881b0df.tar.gz
Use HTML5 template to render search results
Diffstat (limited to 'layouts/shortcodes')
-rw-r--r--layouts/shortcodes/form-search.html9
1 files changed, 9 insertions, 0 deletions
diff --git a/layouts/shortcodes/form-search.html b/layouts/shortcodes/form-search.html
index 9276030..bab117a 100644
--- a/layouts/shortcodes/form-search.html
+++ b/layouts/shortcodes/form-search.html
@@ -32,6 +32,15 @@
<div id="search-results-body" class="post-list"></div>
</section>
+<template>
+ <article class="post" data-score="">
+ <header>
+ <h2 class="post-title"><a href="#" class="search-result-page-title"></a></h2>
+ </header>
+ <p class="post-content"></p>
+ </article>
+</template>
+
{{- $isProduction := (or (eq (getenv "HUGO_ENV") "production") (eq site.Params.env "production")) -}}
{{- /* Add lunr.js. */ -}}