baseof: archive to use body class list

This commit is contained in:
Aditya Telange 2020-07-25 13:15:32 +05:30
parent 5e129bde1d
commit c76ab82a3c
1 changed files with 1 additions and 1 deletions

View File

@ -6,7 +6,7 @@
</head> </head>
<body <body
class="{{ if eq .Kind `page` }}single{{ else }}list{{ if .IsHome }} home {{ end }}{{ end }}{{ if eq $.Site.Params.defaultTheme `dark` }} dark {{ end }}"> 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 }}">
{{- partial "header.html" . }} {{- partial "header.html" . }}
<main class=" main"> <main class=" main">
{{- block "main" . }} {{- block "main" . }}