diff options
-rw-r--r-- | layouts/docs/single.html | 2 | ||||
-rw-r--r-- | static/scss/docs.scss | 4 |
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; |