draft tag [draft] improve

This commit is contained in:
Aditya Telange 2020-07-28 12:36:53 +05:30
parent c4839ccfbe
commit 94eada156d
3 changed files with 3 additions and 3 deletions

View File

@ -24,7 +24,7 @@
<header class="entry-header">
<h2>
{{ .Title }}
<div class="entry-isdraft">{{- if .Draft }}<sup>&nbsp&nbsp[draft]</sup>{{- end }}</div>
{{- if .Draft }}<div class="entry-isdraft"><sup>&nbsp&nbsp[draft]</sup></div>{{- end }}
</h2>
</header>
<section class="entry-content">

View File

@ -19,7 +19,7 @@
<header class="entry-header">
<h2>
{{ .Title }}
<div class="entry-isdraft">{{- if .Draft }}<sup>&nbsp&nbsp[draft]</sup>{{- end }}</div>
{{- if .Draft }}<div class="entry-isdraft"><sup>&nbsp&nbsp[draft]</sup></div>{{- end }}
</h2>
</header>
<section class="entry-content">

View File

@ -4,7 +4,7 @@
<header class="post-header">
<h1 class="post-title">
{{ .Title }}
<div class="entry-isdraft">{{- if .Draft }}<sup>[draft]</sup>{{- end }}</div>
{{- if .Draft }}<div class="entry-isdraft"><sup>&nbsp;&nbsp;[draft]</sup></div>{{- end }}
</h1>
<div class="post-meta">
{{- if or .Params.author .Site.Params.author }}