new feature: external link post

This commit is contained in:
Mivinci 2022-01-30 15:12:29 +08:00
parent e664d42571
commit b4031adcd6
8 changed files with 53 additions and 5 deletions

View file

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