baseddata.io/layouts/partials/main-article.html

16 lines
403 B
HTML

<article class="main-article">
<header>
<h1>{{ .Title }}</h1>
<div class="author-row">
{{ with .Params.author }}
<strong><p class="author-name">{{ .name }}</p></strong>
<p class="author-name">on</p>
{{ end }}
{{ if isset .Params "date" }}
<time>{{ .Date.Format "January 2, 2006" }}</time>
{{ end }}
</div>
</header>
{{ .Content }}
</article>