diff options
author | weru <fromweru@gmail.com> | 2022-05-14 22:30:38 +0300 |
---|---|---|
committer | weru <16350351+onweru@users.noreply.github.com> | 2022-05-17 02:38:18 +0300 |
commit | 7bb33d753a2252d817217cd44b7e8bcf66528a39 (patch) | |
tree | 674de7d327444051b8c97288a33ab10d7aa719bf /layouts | |
parent | cad1992c41bd58375c96b541d992d76cfe63b39b (diff) |
format attributes for better readability
Signed-off-by: weru <fromweru@gmail.com>
Diffstat (limited to 'layouts')
-rw-r--r-- | layouts/_default/baseof.html | 23 |
1 files changed, 21 insertions, 2 deletions
diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index da9a1db..20b1365 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -2,12 +2,31 @@ {{- $p := .Params }} {{- $codeBlockConfig := partial "func/getCodeBlockSettings" . }} <!DOCTYPE html> -<html lang="{{ .Lang }}" data-figures="{{ $p.figurePositionShow }}"{{ if .IsPage }} class="page"{{ end }}{{ if .IsHome }} class="home"{{ end }}{{ with $s.enforceLightMode }} data-mode="lit"{{ end }}{{ with $s.enforceDarkMode }} data-mode="dim"{{ end }}> +<html + lang="{{ .Lang }}" + data-figures="{{ $p.figurePositionShow }}" + {{ if .IsPage }} + class="page" + {{ end }} + {{ if .IsHome }} + class="home" + {{ end }} + {{ with $s.enforceLightMode }} + data-mode="lit" + {{ end }} + {{ with $s.enforceDarkMode }} + data-mode="dim" + {{ end -}} +> <head> {{- partial "head" . }} {{- partial "hooks/head-end" . }} </head> - <body data-code="{{ $codeBlockConfig.max }}" data-lines="{{ $codeBlockConfig.lines }}" id="documentTop"> + <body + data-code="{{ $codeBlockConfig.max }}" + data-lines="{{ $codeBlockConfig.lines }}" + id="documentTop" + > {{- partial "header" . }} <main> {{- block "main" . }}{{ end }} |