Add cover image support and improve meta tags

This commit is contained in:
Elnu 2022-06-10 18:40:21 -07:00
parent 5787b8d114
commit cdc7e072f2
4 changed files with 49 additions and 6 deletions

View file

@ -1,7 +1,9 @@
{{ with .Resources.GetMatch "{cover.*,*.jpg,*.png,*.jpeg}" }}
<img src="{{ .Permalink }}">
{{ end }}
Posted by {{ .Site.Params.author }} on {{ partial "time.html" . }}
<p>
<br>
{{ range $i, $e := .Params.tags -}}
{{- if $i -}}, {{ end -}}
<a href="{{ "/tags/" | relLangURL }}{{ . | urlize }}" rel="tag">#{{ $e }}</a>
{{- if $i -}}, {{ end -}}
<a href="{{ "/tags/" | relLangURL }}{{ . | urlize }}" rel="tag">#{{ $e }}</a>
{{- end -}}
</p>