Add basic scaffolding for site.
This commit is contained in:
commit
d95126dca8
109 changed files with 10750 additions and 0 deletions
13
themes/mainroad/layouts/partials/post_meta/date.html
Normal file
13
themes/mainroad/layouts/partials/post_meta/date.html
Normal file
|
@ -0,0 +1,13 @@
|
|||
{{- if not .Date.IsZero }}
|
||||
<div class="meta__item-datetime meta__item">
|
||||
{{ partial "svg/time.svg" (dict "class" "meta__icon") -}}
|
||||
<time class="meta__text" datetime="{{ .Date.Format "2006-01-02T15:04:05Z07:00" }}">
|
||||
{{- .Date | dateFormat (.Site.Params.dateformat | default "January 02, 2006") -}}
|
||||
</time>
|
||||
{{- if ne .Date .Lastmod }}
|
||||
<time class="meta__text" datetime="{{ .Lastmod.Format "2006-01-02T15:04:05Z07:00" }}">(
|
||||
{{- T "meta_lastmod" }}: {{ .Lastmod | dateFormat (.Site.Params.dateformat | default "January 02, 2006") -}}
|
||||
)</time>
|
||||
{{- end -}}
|
||||
</div>
|
||||
{{- end }}
|
Loading…
Add table
Add a link
Reference in a new issue