From fd85ad04cc5686560e8f4e1c501b6136b324f635 Mon Sep 17 00:00:00 2001 From: Vidhu Kant Sharma Date: Thu, 5 Jan 2023 20:29:44 +0530 Subject: properly centered docs page title --- layouts/docs/single.html | 2 +- static/scss/docs.scss | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/layouts/docs/single.html b/layouts/docs/single.html index 64a74e4..1823c5d 100644 --- a/layouts/docs/single.html +++ b/layouts/docs/single.html @@ -1,7 +1,7 @@ {{ define "main" }} {{ $wrappedTable := printf "
${1}
" }}
-

{{ .Title }}

+

{{ .Title }}

{{ .Content | replaceRE "((?:.|\n)+?
)" $wrappedTable | safeHTML }} diff --git a/static/scss/docs.scss b/static/scss/docs.scss index b382476..5203ca1 100644 --- a/static/scss/docs.scss +++ b/static/scss/docs.scss @@ -49,6 +49,10 @@ pre code { display: block; } +.centered { + text-align: center; +} + img { display: block; margin-left: auto; -- cgit v1.2.3