Commit 2a70b11b authored by eternal-flame-AD's avatar eternal-flame-AD

sort tool by priority

parent 495eb2e1
......@@ -4,7 +4,7 @@
<h1 class="display-4">Toolkit</h1>
<p class="lead" data-font="chanyu.ttf">小工具~</p>
{{ range .Paginator.Pages }}
{{ range (.Paginate ( sort .Pages "Params.priority" "desc")).Pages}}
<div class="list-item {{if .Draft}}warning{{end}}">
<h1>{{.Title}}<a href="{{.Permalink}}"><i class="fas fa-link" style="font-size: 30px;padding-left: 5px;"></i></a></h1>
{{ .Content }}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment