feature: hidding date in the home page

This commit is contained in:
Mivinci 2021-10-29 00:01:17 +08:00
parent abfdf50d6f
commit 125a569697
2 changed files with 5 additions and 1 deletions

View file

@ -1,4 +1,6 @@
<div class="flex sm:flex-col my-5 sm:mb-6 sm:mt-3">
{{ if .Params.displayDate }}
<div class="min-w-32 sm:mb-2 sm:text-sm">{{ dateFormat .Site.Params.timeformat .Date }}</div>
{{ end }}
<a class="self-start" href="{{ .RelPermalink }}">{{ .Title }}</a>
</div>