Add cover image support and improve meta tags
This commit is contained in:
parent
5787b8d114
commit
cdc7e072f2
4 changed files with 49 additions and 6 deletions
|
@ -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>
|
||||
|
|
Reference in a new issue