Browse Source

Tweak placement of DRAFT status

main
Jez Cope 3 months ago
parent
commit
c3be616e1e
  1. 1
      layouts/_default/frag/metadata.html
  2. 1
      layouts/_default/single.html
  3. 1
      layouts/_default/summary.html
  4. 1
      layouts/page/frag/metadata.html
  5. 2
      layouts/partials/status.html

1
layouts/_default/frag/metadata.html

@ -1,3 +1,4 @@
{{ partial "status" . }}
<div class="page-date">
<strong>Date:</strong>
<time>{{ .Date.Format .Site.Params.DateFormat }}</time>

1
layouts/_default/single.html

@ -9,7 +9,6 @@
<div class="columns">
<div class="column is-2">
{{ .Render "frag/metadata" }}
{{ partial "status" . }}
</div>
<div class="column is-8">
{{ partial "series-items" . }}

1
layouts/_default/summary.html

@ -11,7 +11,6 @@
<div class="columns">
<div class="column is-2">
{{ .Render "frag/metadata" }}
{{ partial "status" . }}
</div>
<div class="column is-8 content">
{{ .Render "frag/summary-content" }}

1
layouts/page/frag/metadata.html

@ -1 +1,2 @@
{{ partial "status" . }}
{{ partial "tags" .Params.tags }}

2
layouts/partials/status.html

@ -1 +1 @@
{{ if .Params.draft }}<p><em>DRAFT ✏️</em></p>{{ end }}
{{ if .Params.draft }}<div><strong>Status:</strong> DRAFT ✏️</div>{{ end }}
Loading…
Cancel
Save