refactors layouts for head, footer and post
This commit is contained in:
parent
e8e4ba4c3b
commit
e980cbedc8
21 changed files with 93 additions and 61 deletions
10
layouts/partials/page-single/post-related.html
Normal file
10
layouts/partials/page-single/post-related.html
Normal file
|
@ -0,0 +1,10 @@
|
|||
{{ $related := .Site.RegularPages.Related . | first 5 }}
|
||||
{{ with $related -}}
|
||||
<div class="post__related">
|
||||
<!-- related content -->
|
||||
<h2>Related Articles</h2>
|
||||
<ul class="related-posts">
|
||||
{{ partial "posts-list.html" . }}
|
||||
</ul>
|
||||
</div>
|
||||
{{- end }}
|
Loading…
Add table
Add a link
Reference in a new issue