From 8de51043c3b5d75ba648649fdd3381c8055827f5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=87=A1=E6=A2=A6=E6=98=9F=E5=B0=98?= Date: Tue, 24 May 2022 21:39:45 +0800 Subject: [PATCH] :art: Formatter use more friendly code and style. --- layouts/_default/baseof.html | 2 +- layouts/partials/head/meta.html | 12 ++++++++++-- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index 170bd74..68721f4 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -7,7 +7,7 @@ - + {{ hugo.Generator }} diff --git a/layouts/partials/head/meta.html b/layouts/partials/head/meta.html index 0bd0ce6..d5d7ea9 100644 --- a/layouts/partials/head/meta.html +++ b/layouts/partials/head/meta.html @@ -3,8 +3,8 @@ {{- else }} {{- end }} -{{- if .P.googleSiteVerification }} - +{{- with .P.googleSiteVerification }} + {{- end }} {{- with .P.bingSiteVerification }} @@ -23,11 +23,19 @@ + + + + + {{- if not $Page.IsHome }} + + + {{- end }} {{- with .twitter }} {{- range $attr, $val := . }}