aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVidhu Kant Sharma <vidhukant@vidhukant.xyz>2023-01-05 20:29:44 +0530
committerVidhu Kant Sharma <vidhukant@vidhukant.xyz>2023-01-05 20:29:44 +0530
commitfd85ad04cc5686560e8f4e1c501b6136b324f635 (patch)
tree741c421af2142884668f80d55612b406e15ed93e
parent58974666f1a35aeae72c8b7adb2ef1dd8c98c319 (diff)
properly centered docs page title
-rw-r--r--layouts/docs/single.html2
-rw-r--r--static/scss/docs.scss4
2 files changed, 5 insertions, 1 deletions
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 "<div class='table-wrapper'> ${1} </div>" }}
<div>
- <h1 style="text-align: center;" class="title">{{ .Title }}</h1>
+ <h1 class="title centered">{{ .Title }}</h1>
<!--p style="text-align: center;">{{ .Summary }}</p-->
{{ .Content | replaceRE "(<table>(?:.|\n)+?</table>)" $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;