some fixes of styles

This commit is contained in:
Mivinci 2021-11-09 00:46:22 +08:00
parent f33403abe2
commit cf9df47ac7
3 changed files with 5 additions and 5 deletions

View file

@ -29,7 +29,7 @@ subtitle = ""
# e.g. disqus, ovo. # e.g. disqus, ovo.
comment = "disqus" comment = "disqus"
# timeformat # timeformat
timeformat = "Jan 2, 2006" timeformat = "Jan 02, 2006"
# switch for turning on/off lights. # switch for turning on/off lights.
switch = ["🌚", "🌝"] switch = ["🌚", "🌝"]
# if true, date of posts will be displayed in the homepage. # if true, date of posts will be displayed in the homepage.

View file

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

View file

@ -1,6 +1,6 @@
{{ $page := $.Paginator }} {{ $page := $.Paginator }}
{{ if gt $page.TotalPages 1 }} {{ if gt $page.TotalPages 1 }}
<div class="my-6 flex justify-between"> <div class="my-8 flex justify-between">
{{ if $page.HasPrev }} {{ if $page.HasPrev }}
<a href="{{ $page.Prev.URL }}">← Newer</a> <a href="{{ $page.Prev.URL }}">← Newer</a>
{{ end }} {{ end }}