Refine [draft] tag display

This commit is contained in:
Aditya Telange 2021-09-04 12:03:12 +05:30
parent 9a20b2e54c
commit 7072a79f71
No known key found for this signature in database
GPG Key ID: 82E844EF3DA99E77
4 changed files with 3 additions and 7 deletions

View File

@ -86,10 +86,6 @@
color: var(--secondary); color: var(--secondary);
} }
.entry-isdraft {
display: inline;
}
.entry-cover { .entry-cover {
margin-bottom: var(--gap); margin-bottom: var(--gap);
text-align: center; text-align: center;

View File

@ -30,7 +30,7 @@
<div class="archive-entry"> <div class="archive-entry">
<h3 class="archive-entry-title"> <h3 class="archive-entry-title">
{{- .Title | markdownify }} {{- .Title | markdownify }}
{{- if .Draft }}<div class="entry-isdraft"><sup>&nbsp;&nbsp;[draft]</sup></div>{{- end }} {{- if .Draft }}<sup><span class="entry-isdraft">&nbsp;&nbsp;[draft]</span></sup>{{- end }}
</h3> </h3>
<div class="archive-meta"> <div class="archive-meta">
{{- partial "post_meta.html" . -}} {{- partial "post_meta.html" . -}}

View File

@ -54,7 +54,7 @@
<header class="entry-header"> <header class="entry-header">
<h2> <h2>
{{- .Title }} {{- .Title }}
{{- if .Draft }}<div class="entry-isdraft"><sup>&nbsp;&nbsp;[draft]</sup></div>{{ end -}} {{- if .Draft }}<sup><span class="entry-isdraft">&nbsp;&nbsp;[draft]</span></sup>{{- end }}
</h2> </h2>
</header> </header>
{{- if (ne (.Param "hideSummary") true) }} {{- if (ne (.Param "hideSummary") true) }}

View File

@ -5,7 +5,7 @@
{{ partial "breadcrumbs.html" . }} {{ partial "breadcrumbs.html" . }}
<h1 class="post-title"> <h1 class="post-title">
{{ .Title }} {{ .Title }}
{{- if .Draft }}<div class="entry-isdraft"><sup>&nbsp;&nbsp;[draft]</sup></div>{{- end }} {{- if .Draft }}<sup><span class="entry-isdraft">&nbsp;&nbsp;[draft]</span></sup>{{- end }}
</h1> </h1>
{{- if .Description }} {{- if .Description }}
<div class="post-description"> <div class="post-description">