Update index.html

This commit is contained in:
kuoi 2021-12-29 17:32:32 +00:00 committed by GitHub
parent 8a0f5253ab
commit bf13f70e49
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -8,7 +8,7 @@
{{ $pages := where .Site.RegularPages "Type" "in" .Site.Params.mainSections }}
{{range first (default 4 .Site.Params.recentMax) (where $pages "Section" "ne" .Site.Params.microBlogSection)}}
<div class="list-item">
<a class="entry-title" href="{{ .URL }}">{{ .Title }}</a>
<a class="entry-title" href="{{ .Permalink }}">{{ .Title }}</a>
{{$page := .}}
{{with .Description}}
<p>{{.}}</p>
@ -38,7 +38,7 @@
<div class="post-content">
{{.Content}}
</div>
<div class="meta post-footer"> <span>{{.Date.Format "Jan 2 2006 03:04 UTC-07"}}</span> <a href="{{.URL}}"><i class="fas fa-link"></i> link</a></div>
<div class="meta post-footer"> <span>{{.Date.Format "Jan 2 2006 03:04 UTC-07"}}</span> <a href="{{.Permalink}}"><i class="fas fa-link"></i> link</a></div>
</div>
{{ end }}
{{ range where (where site.RegularPages "Type" "in" site.Params.microBlogSection) "Params.pinned" "ne" true}}
@ -49,10 +49,10 @@
<div class="post-content">
{{.Content}}
</div>
<div class="meta post-footer"> <span>{{.Date.Format "Jan 2 2006 03:04 UTC-07"}}</span> <a href="{{.URL}}"><i class="fas fa-link"></i> link</a></div>
<div class="meta post-footer"> <span>{{.Date.Format "Jan 2 2006 03:04 UTC-07"}}</span> <a href="{{.Permalink}}"><i class="fas fa-link"></i> link</a></div>
</div>
{{ end }}
</div>
</div>
{{end}}
{{end }}
{{end }}