Add icon to drafts

Fix #23
This commit is contained in:
2021-10-10 17:28:05 -05:00
parent 6ce4cdad32
commit f0cddf7e42
2 changed files with 5 additions and 1 deletions

View File

@ -1,6 +1,9 @@
{{ define "main" }}
<div class="post-title">
<h1>{{ .Title | markdownify }}</h1>
<h1>
{{ .Title | markdownify }}
{{ if .Draft }}{{ partial "icon.html" "edit" }}{{ end }}
</h1>
</div>
{{ partial "post-metadata.html" . }}