summaryrefslogtreecommitdiff
path: root/layouts/_default/baseof.html
diff options
context:
space:
mode:
authorAditya Telange <21258296+adityatelange@users.noreply.github.com>2020-11-28 22:33:57 +0530
committerAditya Telange <21258296+adityatelange@users.noreply.github.com>2020-11-28 22:33:57 +0530
commit673f7ccc969298efa0507f44037a60bd71f88eed (patch)
tree5e485290448c356cb4b621a4f8c23d115dbc9d91 /layouts/_default/baseof.html
parentb301d60f032879af25dc9c5747c868db9bf7cc6c (diff)
baseof: rm unused classes
single, home
Diffstat (limited to 'layouts/_default/baseof.html')
-rw-r--r--layouts/_default/baseof.html10
1 files changed, 8 insertions, 2 deletions
diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html
index f28e12b..6036e19 100644
--- a/layouts/_default/baseof.html
+++ b/layouts/_default/baseof.html
@@ -5,8 +5,14 @@
{{- partial "head.html" . }}
</head>
-<body class="{{ if (and (eq .Kind `page` ) (ne .Layout `archives`)) }}single{{ else }}list
- {{- if .IsHome }} home{{ end }}{{ end }}{{- if eq $.Site.Params.defaultTheme `dark` }} dark{{ end }}" id="top">
+<body class="
+{{- if (or (ne .Kind `page` ) (eq .Layout `archives`)) -}}
+{{- print "list" -}}
+{{- end -}}
+{{- if eq $.Site.Params.defaultTheme `dark` -}}
+{{- print " dark" }}
+{{- end -}}
+" id="top">
{{- partialCached "header.html" . .Page}}
<main class="main">
{{- block "main" . }}