提交 b6155358 编写于 作者: D Deborah 提交者: Alexandros

Themes by tag - display by last mod (#61)

The main themes page sorts themes by last modified (from most recent to oldest). It would be useful if it did the same when you filter by tags.
Note: I couldn't work out how to run the themes site locally (no errors, just showed blank - guessing it needs another repo or sth to pull the themes in), so this change is a bit of a guess.
上级 68355e2c
{{ define "main" }}
{{ $section_to_display := .Data.Pages }}
{{ $section_to_display := .Data.Pages.ByLastmod.Reverse }}
{{ partial "pagelayout.html" (dict "context" . "section_to_display" $section_to_display) }}
{{ end }}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册