Styled the post list and added updating of posts
This commit is contained in:
parent
e77cac2fd5
commit
aef3bb6a1e
31 changed files with 1230 additions and 118 deletions
|
|
@ -1 +1,17 @@
|
|||
<h1>Posts go here</h1>
|
||||
<main class="container">
|
||||
<div class="my-4">
|
||||
<a href="/sites/{{ .site.ID }}/posts/new" class="btn btn-success">New Post</a>
|
||||
</div>
|
||||
|
||||
{{ range $i, $p := .posts }}
|
||||
{{ if gt $i 0 }}<hr>{{ end }}
|
||||
<div class="my-4">
|
||||
{{ if $p.Title }}<h4 class="mb-3">{{ $p.Title }}</h4>{{ end }}
|
||||
{{ $p.Body | markdown }}
|
||||
<div class="mb-3">
|
||||
<a href="/sites/{{ $.site.ID }}/posts/{{ $p.ID }}/edit"
|
||||
class="link-secondary link-offset-2 link-underline link-underline-opacity-0 link-underline-opacity-75-hover">Edit</a>
|
||||
</div>
|
||||
</div>
|
||||
{{ end }}
|
||||
</main>
|
||||
Loading…
Add table
Add a link
Reference in a new issue