From 96d11d0505f1372673ff4fcdc8a1ebb5a04dc6ae Mon Sep 17 00:00:00 2001 From: Aditya Telange <21258296+adityatelange@users.noreply.github.com> Date: Fri, 21 Aug 2020 21:13:13 +0530 Subject: [PATCH] move-to-top : scroll to body start --- layouts/_default/baseof.html | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index 1d4ccc6..5daa4bf 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -6,9 +6,10 @@
+ class="{{ if (and (eq .Kind `page` ) (ne .Layout `archives`)) }}single{{ else }}list{{ if .IsHome }} home {{ end }}{{ end }}{{ if eq $.Site.Params.defaultTheme `dark` }} dark {{ end }}" + id="top"> {{- partial "header.html" . }} -