From 2886dea8266f0586f0fbad016305a01aaf93921b Mon Sep 17 00:00:00 2001 From: ZhenShuo Leo <98386542+ZhenShuo2021@users.noreply.github.com> Date: Wed, 18 Jun 2025 19:47:17 +0800 Subject: [PATCH] style(header): run prettier format --- .prettierignore | 1 - layouts/partials/header/basic.html | 320 +++++++++++++++-------------- 2 files changed, 166 insertions(+), 155 deletions(-) diff --git a/.prettierignore b/.prettierignore index 694b1bf2..b243ca55 100644 --- a/.prettierignore +++ b/.prettierignore @@ -31,7 +31,6 @@ layouts/_default/list.html layouts/partials/article-link/card-related.html layouts/partials/article-link/card.html layouts/partials/article-link/simple.html -layouts/partials/header/basic.html layouts/partials/hero/background.html layouts/partials/head.html layouts/shortcodes/screenshot.html diff --git a/layouts/partials/header/basic.html b/layouts/partials/header/basic.html index b829f197..a4b92bcd 100644 --- a/layouts/partials/header/basic.html +++ b/layouts/partials/header/basic.html @@ -1,197 +1,209 @@ {{/* Logo section */}} {{ define "HeaderLogo" }} - {{ if .Site.Params.Logo }} + {{ if .Site.Params.Logo }} {{ $logo := resources.Get .Site.Params.Logo }} {{ if $logo }} -
{{ end }} - {{- end }} + {{- end }} {{ end }} {{/* Desktop navigation */}} {{ define "HeaderDesktopNavigation" }} - {{ end }} {{/* Mobile navigation */}} {{ define "HeaderMobileNavigation" }} -