Add pencil icon to drafts
This commit is contained in:
parent
4c54e7a425
commit
6e0b0b6fc7
@ -3,12 +3,12 @@
|
|||||||
{{ .Content }}
|
{{ .Content }}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<h1 class="post-title{{ if .Params.favorite }} favorite{{end}}">{{ i18n .Title }}</h1>
|
<h1 class="post-title">{{ i18n .Title }}</h1>
|
||||||
{{ $pages := where site.RegularPages "Type" "in" site.Params.mainSections }}
|
{{ $pages := where site.RegularPages "Type" "in" site.Params.mainSections }}
|
||||||
{{ range $pages }}
|
{{ range $pages }}
|
||||||
<div class="post-short-list">
|
<div class="post-short-list">
|
||||||
<header>
|
<header>
|
||||||
<h2 class="post-title{{ if .Params.favorite }} favorite{{end}}"><a href="{{ .RelPermalink }}">{{ trim .Title " " }}</a></h2>
|
<h2 class="post-title{{ if .Params.favorite }} favorite{{end}}{{ if .Params.draft }} draft{{end}}"><a href="{{ .RelPermalink }}">{{ trim .Title " " }}</a></h2>
|
||||||
</header>
|
</header>
|
||||||
{{ partial "postInfo.html" . }}
|
{{ partial "postInfo.html" . }}
|
||||||
</div>
|
</div>
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
<article class="post">
|
<article class="post">
|
||||||
<header>
|
<header>
|
||||||
<h1 class="post-title{{ if .Params.favorite }} favorite{{end}}">{{ trim .Title " " }}</h1>
|
<h1 class="post-title{{ if .Params.favorite }} favorite{{end}}{{ if .Params.draft }} draft{{end}}">{{ trim .Title " " }}</h1>
|
||||||
</header>
|
</header>
|
||||||
<div class="content">
|
<div class="content">
|
||||||
{{ .Content }}
|
{{ .Content }}
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
<article class="post-list">
|
<article class="post-list">
|
||||||
<header>
|
<header>
|
||||||
<h1 class="post-title{{ if .Params.favorite }} favorite{{end}}"><a href="{{ .RelPermalink }}">{{ trim .Title " " }}</a></h1>
|
<h1 class="post-title{{ if .Params.favorite }} favorite{{end}}{{ if .Params.draft }} draft{{end}}"><a href="{{ .RelPermalink }}">{{ trim .Title " " }}</a></h1>
|
||||||
</header>
|
</header>
|
||||||
|
|
||||||
<div class="content post-summary">
|
<div class="content post-summary">
|
||||||
|
@ -221,6 +221,17 @@ main h1 {
|
|||||||
margin-left: 0.2em;
|
margin-left: 0.2em;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.post-title.draft::after {
|
||||||
|
content: "✎";
|
||||||
|
display: inline-block;
|
||||||
|
margin-left: 0.2em;
|
||||||
|
}
|
||||||
|
|
||||||
|
.post-title.favorite.draft::after {
|
||||||
|
content: "★ ✎";
|
||||||
|
display: inline-block;
|
||||||
|
margin-left: 0.2em;
|
||||||
|
}
|
||||||
|
|
||||||
article:not(:last-of-type) {
|
article:not(:last-of-type) {
|
||||||
border-bottom: thin solid #f1f1f1;
|
border-bottom: thin solid #f1f1f1;
|
||||||
|
Loading…
Reference in New Issue
Block a user