Skip to content

Commit

Permalink
fix whitespace and draft icon
Browse files Browse the repository at this point in the history
  • Loading branch information
marioortizmanero committed Aug 12, 2024
1 parent edbde2f commit 3131d63
Showing 1 changed file with 20 additions and 11 deletions.
31 changes: 20 additions & 11 deletions layouts/_default/list.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,13 @@ <h1>
</h1>

{{- if .Description }}
{{/* CUSTOM: `p` instead of `div` for consistency */}}
{{- /* CUSTOM: `p` instead of `div` for consistency */}}
<p class="post-description post-content">
{{ .Description | markdownify }}
{{- .Description | markdownify -}}
</p>
{{- end }}

{{/* CUSTOM: finished series */}}
{{- /* CUSTOM: finished series */}}
{{- if ne .Params.isFinished nil }}
{{- if .Params.isFinished }}
<p class="post-description post-content">
Expand Down Expand Up @@ -67,7 +67,7 @@ <h1>
{{- end }}

{{- $term := .Data.Term }}
{{/* CUSTOM: reverse-ordered lists */}}
{{- /* CUSTOM: reverse-ordered lists */}}
{{- $pages := $paginator.Pages }}
{{- if .Params.reverseOrder }}
{{- $pages = $pages.Reverse }}
Expand All @@ -83,11 +83,10 @@ <h1>
{{- $class = "post-entry tag-entry" }}
{{- end }}

{{/* CUSTOM: hidden articles */}}
{{ if not .Params.hidden }}
{{- /* CUSTOM: hidden articles */}}
{{- if not .Params.hidden }}
<article class="{{ $class }}">

{{/* CUSTOM: this adds post previews */}}
{{- /* CUSTOM: this adds post previews */}}
{{- $isPreviewHidden := (site.Params.cover.hidden | default site.Params.cover.hiddenInList) }}
{{- partial "preview.html" (dict "cxt" . "IsHome" true "isPreviewHidden" $isPreviewHidden) }}

Expand All @@ -96,10 +95,20 @@ <h1>
<div class="entry-group">
<header class="entry-header">
<h2>
{{/* CUSTOM: numbered items */}}
{{ if $.Params.numbered }}<span class="entry-number">{{ add $index 1 }}.&nbsp;</span>{{- end }}
{{- /* CUSTOM: numbered items */}}
{{- if $.Params.numbered }}
<span class="entry-number">{{ add $index 1 }}.&nbsp;</span>
{{- end -}}

{{- .Title }}
{{- if .Draft }}<sup><span class="entry-isdraft">&nbsp;&nbsp;[draft]</span></sup>{{- end }}
{{- if .Draft }}
<span class="entry-hint" title="Draft">
<svg xmlns="http://www.w3.org/2000/svg" height="20" viewBox="0 -960 960 960" fill="currentColor">
<path
d="M160-410v-60h300v60H160Zm0-165v-60h470v60H160Zm0-165v-60h470v60H160Zm360 580v-123l221-220q9-9 20-13t22-4q12 0 23 4.5t20 13.5l37 37q9 9 13 20t4 22q0 11-4.5 22.5T862.09-380L643-160H520Zm300-263-37-37 37 37ZM580-220h38l121-122-18-19-19-18-122 121v38Zm141-141-19-18 37 37-18-19Z" />
</svg>
</span>
{{- end -}}
</h2>
</header>
{{- if (ne (.Param "hideSummary") true) }}
Expand Down

0 comments on commit 3131d63

Please sign in to comment.