🏗️ Finish the header attributes redesign.

This commit is contained in:
凡梦星尘
2022-06-01 11:44:06 +08:00
parent f2ff0a5299
commit cea7bd3bc0
5 changed files with 29 additions and 29 deletions

View File

@@ -5,7 +5,7 @@
{{- $pluginVen := $P.vendors.plugins -}}
{{- $pluginCDN := index $vendors $pluginVen -}}
{{- .Scratch.Set "pluginCDN" $pluginCDN -}}
{{ $posts := len .Site.RegularPages }}
{{ $posts := len (where .Page.Site.RegularPages "Section" "in" .Site.Params.mainSections) }}
{{- .Scratch.Set "posts" $posts -}}
<!DOCTYPE html>
<html lang="{{ $lang }}">
@@ -31,7 +31,7 @@
<main class="main">
<header class="header" itemscope itemtype="http://schema.org/WPHeader">
<div class="header-inner">
{{- partial "header" (dict "P" $P "Page" .Page "Scratch" .Scratch) }}
{{- partial "header.html" . }}
</div>
<!-- Sidebar -->
{{- if ne $P.sidebar.display "remove" }}