🎨 Style: format code

This commit is contained in:
Cell
2022-08-26 23:57:42 +08:00
parent 19f7746516
commit e19b71cc6a
4 changed files with 4 additions and 9 deletions
+1
View File
@@ -11,6 +11,7 @@ All notable changes to this project will be documented in this file.
- :bug: Fix: use data attributes or class replace for custom attributes
- :art: Style: change the default icons of some social links
- :globe_with_meridians: Docs(i18n): update pt-br, de in i18n
- :mag: Perf(SEO): enhance SEO performance
- :wrench: Chore: modify babel config and optimize theme.js compilation and loading
- :wrench: Chore(deps-dev):
- Remove minimist
+1 -3
View File
@@ -12,9 +12,7 @@
{{- $hasTitle = true -}}
{{- end -}}
<article class="archive-item">
<a href="{{ .RelPermalink }}" class="archive-item-link">
{{- .Title -}}
</a>
<a href="{{ .RelPermalink }}" class="archive-item-link">{{- .Title -}}</a>
<span class="archive-item-date" title='{{ "2006-01-02 15:04:05" | .Lastmod.Format }}'>
{{- with .Site.Params.section.dateformat | default "01-02" | .Lastmod.Format -}}
{{- dict "Date" . | T "updatedOnDate" -}}
+1 -3
View File
@@ -31,9 +31,7 @@
<h3 class="group-title">{{ .Key }}</h3>
{{- range .Pages -}}
<article class="archive-item">
<a href="{{ .RelPermalink }}" class="archive-item-link">
{{- .Title -}}
</a>
<a href="{{ .RelPermalink }}" class="archive-item-link">{{- .Title -}}</a>
<span class="archive-item-date" title={{ "2006-01-02 15:04:05" | .Date.Format }}>
{{- $.Site.Params.list.dateFormat | default "01-02" | .Date.Format -}}
</span>
+1 -3
View File
@@ -31,9 +31,7 @@
</h3>
{{- range first 5 $pages -}}
<article class="archive-item">
<a href="{{ .RelPermalink }}" class="archive-item-link">
{{- .Title -}}
</a>
<a href="{{ .RelPermalink }}" class="archive-item-link">{{- .Title -}}</a>
</article>
{{- end -}}
{{- if gt (len $pages) 5 -}}