Skip to content

Commit

Permalink
Feat: 更新标题规则,保持和 FixIt 主题一致
Browse files Browse the repository at this point in the history
  • Loading branch information
Lruihao committed May 6, 2024
1 parent 9d3ce2e commit 32a509b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions layouts/section/projects.html
Original file line number Diff line number Diff line change
@@ -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 -}}

Expand All @@ -17,10 +17,10 @@
<div class="header">
{{- /* Title */ -}}
<h1 class="single-title animate__animated animate__pulse animate__faster">
{{- with $params.titleIcon -}}
{{- with .Params.titleIcon -}}
{{- dict "Class" (add . " fa-fw me-1") | partial "plugin/icon.html" -}}
{{- end -}}
{{- .Params.Title | default ((T .Section) | default .Section | dict "Some" | T "allSome") }}
{{- title (.Params.Title | default ((T .Section) | default .Section | dict "Some" | T "allSome")) }}
</h1>
{{- /* Subtitle */ -}}
{{- with $params.subtitle -}}<p class="single-subtitle animate__animated animate__fadeIn">{{ . | $.RenderString }}</p>{{- end -}}
Expand Down

0 comments on commit 32a509b

Please sign in to comment.