mirror of
https://github.com/BBaoVanC/bobatheme.git
synced 2025-08-31 00:57:33 -05:00
WIP
This commit is contained in:
@@ -1,24 +1,26 @@
|
|||||||
{{ define "main" }}
|
{{ define "main" }}
|
||||||
<h1>
|
<section class="body-module--center">
|
||||||
{{ partial "icon.html" "user-circle" }}
|
<h1>
|
||||||
{{ .Title | markdownify }}
|
{{ partial "icon.html" "user-circle" }}
|
||||||
</h1>
|
{{ .Title | markdownify }}
|
||||||
|
</h1>
|
||||||
|
|
||||||
{{ with .Content }}
|
{{ with .Content }}
|
||||||
{{ . }}
|
{{ . }}
|
||||||
{{ end }}
|
|
||||||
|
|
||||||
<div class="page-list">
|
|
||||||
{{ with .Paginator.Pages }}
|
|
||||||
{{ range . }}
|
|
||||||
<article class="page">
|
|
||||||
{{ .Render "summary" }}
|
|
||||||
</article>
|
|
||||||
{{ end }}
|
|
||||||
{{ else }}
|
|
||||||
<div>
|
|
||||||
{{ i18n "no_posts" }}
|
|
||||||
</div>
|
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</div>
|
|
||||||
|
<div class="page-list">
|
||||||
|
{{ with .Paginator.Pages }}
|
||||||
|
{{ range . }}
|
||||||
|
<article class="page">
|
||||||
|
{{ .Render "summary" }}
|
||||||
|
</article>
|
||||||
|
{{ end }}
|
||||||
|
{{ else }}
|
||||||
|
<div>
|
||||||
|
{{ i18n "no_posts" }}
|
||||||
|
</div>
|
||||||
|
{{ end }}
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
@@ -20,9 +20,7 @@
|
|||||||
{{ end }}
|
{{ end }}
|
||||||
</main>
|
</main>
|
||||||
|
|
||||||
{{ block "post-body" . }}
|
{{ block "post-body" . }}{{ end }}
|
||||||
{{/* currently this is only used for related posts */}}
|
|
||||||
{{ end }}
|
|
||||||
|
|
||||||
{{ if or .Site.Copyright .Site.Params.footer }}
|
{{ if or .Site.Copyright .Site.Params.footer }}
|
||||||
<footer class="body-module--center">
|
<footer class="body-module--center">
|
||||||
|
@@ -77,7 +77,7 @@
|
|||||||
{{ define "post-body" }}
|
{{ define "post-body" }}
|
||||||
{{ $related := .Site.RegularPages.Related . | first 10 }}
|
{{ $related := .Site.RegularPages.Related . | first 10 }}
|
||||||
{{ with $related }}
|
{{ with $related }}
|
||||||
<div class="related-posts body-module--full-width">
|
<div class="body-module--full-width related-posts">
|
||||||
<hr>
|
<hr>
|
||||||
<h1>{{ i18n "related_posts" }}</h1>
|
<h1>{{ i18n "related_posts" }}</h1>
|
||||||
{{ partial "page-list.html" . }}
|
{{ partial "page-list.html" . }}
|
||||||
|
Reference in New Issue
Block a user