* Beginning of hugo driven theming
This commit is contained in:
10
themes/shockrah.xyz/layouts/partials/metadata.html
Normal file
10
themes/shockrah.xyz/layouts/partials/metadata.html
Normal file
@@ -0,0 +1,10 @@
|
||||
{{ $dateTime := .PublishDate.Format "2017-01-01" }}
|
||||
{{ $dateFormat := .Site.Params.dateFormat | default "Jan 2, 2006" }}
|
||||
<time datetime="{{ $dateTime }}">{{ .PublishDate.Format $dateFormat }}</time>
|
||||
{{ with .Params.tags }}
|
||||
{{ range . }}
|
||||
{{ $href := print (absURL "tags/") (urlize .) }}
|
||||
<a class="btn btn-sm btn-outline-dark tag-btn" href="{{ $href }}">{{ . }}</a>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
|
||||
Reference in New Issue
Block a user