mirror of
https://github.com/BBaoVanC/bobatheme.git
synced 2025-08-31 00:57:33 -05:00
31 lines
741 B
HTML
31 lines
741 B
HTML
{{ define "main" }}
|
|
<section>
|
|
{{ if .Content }}<article>{{ end }}
|
|
|
|
<h1>
|
|
{{ partial "icon.html" "user-circle" }}
|
|
{{ .Title | markdownify }}
|
|
</h1>
|
|
|
|
{{ with .Content }}
|
|
{{ . }}
|
|
{{ end }}
|
|
|
|
{{ if .Content }}</article>{{ end }}
|
|
|
|
<section class="page-list">
|
|
{{ with .Paginator.Pages }}
|
|
{{ range . }}
|
|
<article class="page">
|
|
{{ .Render "summary" }}
|
|
</article>
|
|
{{ end }}
|
|
{{ else }}
|
|
<div>
|
|
{{ i18n "no_posts" }}
|
|
</div>
|
|
{{ end }}
|
|
</section>
|
|
</section>
|
|
{{ end }}
|