aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVidhu Kant Sharma <vidhukant@vidhukant.xyz>2023-01-05 20:40:28 +0530
committerVidhu Kant Sharma <vidhukant@vidhukant.xyz>2023-01-05 20:40:28 +0530
commit945d4202362f5cea6b557ab5c7a82a377d1893ce (patch)
tree859280761eacd947d9140e24fbcb6301247e083b
parentfd85ad04cc5686560e8f4e1c501b6136b324f635 (diff)
using centered classs for h1 in /docs instead of inline style
-rw-r--r--layouts/docs/list.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/layouts/docs/list.html b/layouts/docs/list.html
index 998d504..03b3721 100644
--- a/layouts/docs/list.html
+++ b/layouts/docs/list.html
@@ -1,6 +1,6 @@
{{ define "main" }}
<div>
- <h1 class="title" style="{{ if eq (len .Pages) 0 }}text-align: center;{{ end }}">
+ <h1 class="title {{ if eq (len .Pages) 0 }}centered{{ end }}">
{{ if .Params.heading }}{{ .Params.heading }}{{ else }}{{ .Title }}{{ end }}
</h1>
{{ if ne (len .Pages) 0 }}