mirror of
https://github.com/adityatelange/hugo-PaperMod.git
synced 2023-12-21 10:22:58 +01:00
add [draft] mark
- to identify drafts from other posts
This commit is contained in:
parent
523098f87e
commit
d005d7d2bb
@ -76,4 +76,10 @@
|
|||||||
right: 0;
|
right: 0;
|
||||||
top: 0;
|
top: 0;
|
||||||
bottom: 0;
|
bottom: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.entry-isdraft {
|
||||||
|
display: inline;
|
||||||
|
color: var(--secondary);
|
||||||
|
font-size: 14px;
|
||||||
|
}
|
||||||
|
@ -22,7 +22,10 @@
|
|||||||
{{- end }}
|
{{- end }}
|
||||||
<article class="{{ $class }}">
|
<article class="{{ $class }}">
|
||||||
<header class="entry-header">
|
<header class="entry-header">
|
||||||
<h2>{{ .Title }}</h2>
|
<h2>
|
||||||
|
{{ .Title }}
|
||||||
|
<div class="entry-isdraft">{{- if .Draft }}<sup>[draft]</sup>{{- end }}</div>
|
||||||
|
</h2>
|
||||||
</header>
|
</header>
|
||||||
<section class="entry-content">
|
<section class="entry-content">
|
||||||
<p>{{ .Summary | plainify | htmlUnescape }}...</p>
|
<p>{{ .Summary | plainify | htmlUnescape }}...</p>
|
||||||
|
@ -14,7 +14,10 @@
|
|||||||
{{- end }}
|
{{- end }}
|
||||||
<article class="{{ $class }}">
|
<article class="{{ $class }}">
|
||||||
<header class="entry-header">
|
<header class="entry-header">
|
||||||
<h2>{{ .Title }}</h2>
|
<h2>
|
||||||
|
{{ .Title }}
|
||||||
|
<div class="entry-isdraft">{{- if .Draft }}<sup>[draft]</sup>{{- end }}</div>
|
||||||
|
</h2>
|
||||||
</header>
|
</header>
|
||||||
<section class="entry-content">
|
<section class="entry-content">
|
||||||
<p>{{ .Summary | plainify | htmlUnescape }}...</p>
|
<p>{{ .Summary | plainify | htmlUnescape }}...</p>
|
||||||
|
@ -2,7 +2,10 @@
|
|||||||
|
|
||||||
<article class="post-single">
|
<article class="post-single">
|
||||||
<header class="post-header">
|
<header class="post-header">
|
||||||
<h1 class="post-title">{{ .Title }}</h1>
|
<h1 class="post-title">
|
||||||
|
{{ .Title }}
|
||||||
|
<div class="entry-isdraft">{{- if .Draft }}<sup>[draft]</sup>{{- end }}</div>
|
||||||
|
</h1>
|
||||||
<div class="post-meta">
|
<div class="post-meta">
|
||||||
{{- if or .Params.author .Site.Params.author }}
|
{{- if or .Params.author .Site.Params.author }}
|
||||||
{{- .Params.author | default .Site.Params.author }} · {{ end }}
|
{{- .Params.author | default .Site.Params.author }} · {{ end }}
|
||||||
|
Loading…
Reference in New Issue
Block a user