From 020a8fdbcc94234f4301f969ce0b484353298a31 Mon Sep 17 00:00:00 2001 From: Cell <1024@lruihao.cn> Date: Mon, 6 May 2024 16:32:33 +0800 Subject: [PATCH] :sparkles: Feat: add titleIcon font matter (#421) --- layouts/_default/section.html | 10 +++++++--- layouts/posts/rss.xml | 4 ++-- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/layouts/_default/section.html b/layouts/_default/section.html index 7272b21e..35681dd3 100644 --- a/layouts/_default/section.html +++ b/layouts/_default/section.html @@ -1,5 +1,5 @@ {{- define "title" -}} - {{- .Params.Title | default (T .Section) | default .Section | dict "Some" | T "allSome" -}} + {{- title (.Params.Title | default ((T .Section) | default .Section | dict "Some" | T "allSome")) -}} {{- if .Site.Params.withSiteTitle }} {{ .Site.Params.titleDelimiter }} {{ .Site.Title }}{{- end -}} {{- end -}} @@ -8,8 +8,12 @@