Add: Microposts, layout and config
This commit is contained in:
parent
ca0a9adea1
commit
4033108d3d
@ -33,13 +33,18 @@ menu:
|
||||
title: "Posts"
|
||||
url: "/posts/"
|
||||
weight: 10
|
||||
- identifier: "microposts"
|
||||
name: "Social"
|
||||
title: "Social"
|
||||
url: "/microposts/"
|
||||
weight: 20
|
||||
- identifier: "archive"
|
||||
name: "Archive"
|
||||
title: "Archive"
|
||||
url: "/archive/"
|
||||
weight: 20
|
||||
weight: 30
|
||||
- identifier: "about"
|
||||
name: "About"
|
||||
title: "About"
|
||||
url: "/about/"
|
||||
weight: 30
|
||||
weight: 40
|
||||
|
24
src/themes/oscar/layouts/microposts/list.html
Normal file
24
src/themes/oscar/layouts/microposts/list.html
Normal file
@ -0,0 +1,24 @@
|
||||
{{ define "main" }}
|
||||
|
||||
<main class="main wrapper">
|
||||
<h1>Microposts</h1>
|
||||
{{ .Content }}
|
||||
<div class="posts-container">
|
||||
<hr />
|
||||
{{ range (.Paginate (where .Pages "Type" "microposts")).Pages }}
|
||||
<div class="post-detail">
|
||||
<div class="post-detail-info">
|
||||
<time datetime="{{ .PublishDate }}" class="post-item-date">{{ i18n "publishdate" . }}</time>
|
||||
</div>
|
||||
{{ .Content }}
|
||||
</div>
|
||||
<hr />
|
||||
{{ end }}
|
||||
</div>
|
||||
<div class="pagination">
|
||||
{{ partial "pagination.html" . }}
|
||||
</div>
|
||||
</main>
|
||||
|
||||
{{ end }}
|
||||
|
Loading…
Reference in New Issue
Block a user