From eb97bd9c3e88ebfdd4fd0e9ea76aa24ab159e43a Mon Sep 17 00:00:00 2001 From: Danila Fedorin Date: Sun, 27 Dec 2020 20:09:05 -0800 Subject: [PATCH] Add search box to main page. --- themes/vanilla/layouts/index.html | 12 ++++++++++++ themes/vanilla/layouts/partials/head.html | 2 ++ 2 files changed, 14 insertions(+) diff --git a/themes/vanilla/layouts/index.html b/themes/vanilla/layouts/index.html index f0c3101..606d466 100644 --- a/themes/vanilla/layouts/index.html +++ b/themes/vanilla/layouts/index.html @@ -1,10 +1,22 @@ {{ define "main" }} {{ .Content }} +

+

+
+ +
+
+
+

+ Recent posts: + + + {{ end }} diff --git a/themes/vanilla/layouts/partials/head.html b/themes/vanilla/layouts/partials/head.html index fc33d23..43dea0c 100644 --- a/themes/vanilla/layouts/partials/head.html +++ b/themes/vanilla/layouts/partials/head.html @@ -11,11 +11,13 @@ {{ $style := resources.Get "scss/style.scss" | resources.ToCSS | resources.Minify }} {{ $sidenotes := resources.Get "scss/sidenotes.scss" | resources.ToCSS | resources.Minify }} {{ $code := resources.Get "scss/code.scss" | resources.ToCSS | resources.Minify }} + {{ $search := resources.Get "scss/search.scss" | resources.ToCSS | resources.Minify }} {{ $icon := resources.Get "img/favicon.png" }} {{- partial "sidenotes.html" . -}} +