feat: add draft label for draft posts
This commit is contained in:
parent
6e5bf0c053
commit
a6070f5408
@ -7,7 +7,7 @@
|
|||||||
|
|
||||||
<div class="post-header">
|
<div class="post-header">
|
||||||
<h1 class="title">{{ .Title }}</h1>
|
<h1 class="title">{{ .Title }}</h1>
|
||||||
<div class="meta">Posted at — {{ dateFormat "Jan 2, 2006" .Date }}</div>
|
<div class="meta">Posted at — {{ dateFormat "Jan 2, 2006" .Date }}{{ if .Draft }} <span class="draft-label">DRAFT</span> {{ end }}</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="markdown">
|
<div class="markdown">
|
||||||
|
@ -284,6 +284,15 @@ ul {
|
|||||||
margin-top: 10px;
|
margin-top: 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.post .draft-label {
|
||||||
|
color: #a00;
|
||||||
|
text-decoration: none;
|
||||||
|
padding: 2px 4px;
|
||||||
|
border-radius: 4px;
|
||||||
|
margin-left: 6px;
|
||||||
|
background-color: #f9f2f4;
|
||||||
|
}
|
||||||
|
|
||||||
.list .posts .post .meta {
|
.list .posts .post .meta {
|
||||||
margin-bottom: 0;
|
margin-bottom: 0;
|
||||||
margin-left: 5px;
|
margin-left: 5px;
|
||||||
|
Loading…
Reference in New Issue
Block a user