aboutsummaryrefslogtreecommitdiff
path: root/layouts/partials/list.html
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/partials/list.html')
-rw-r--r--layouts/partials/list.html51
1 files changed, 26 insertions, 25 deletions
diff --git a/layouts/partials/list.html b/layouts/partials/list.html
index cd62507..920f9c5 100644
--- a/layouts/partials/list.html
+++ b/layouts/partials/list.html
@@ -1,26 +1,27 @@
-<article>
- <header>
- <div class="row between-xs">
- <a href="{{ .RelPermalink }}">{{ .LinkTitle }}</a>
- {{ if .Date }}
- <span>
- {{- .Date | time.Format (or .Site.Params.dateFormat.published "02 Jan 2006") -}}
- </span>
- {{ end }}
- </div>
- </header>
- {{ if .Params.Image }}
- <img src="{{ .RelPermalink }}{{.Params.Image}}" />
+<div class="post">
+ <h1 class="post-title fw-semibold"><a href="{{ .RelPermalink }}">{{ .LinkTitle }}</a></h1>
+ {{ if .Date }}
+ <div class="d-flex align-items-center mb-4 text-muted">
+ <span class="d-flex align-items-center ms-3" title="{{- .Date | time.Format (or .Site.Params.dateFormat.published "02 Jan 2006") -}}">
+ <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" class="me-2" viewBox="0 0 16 16">
+ <path d="M11 6.5a.5.5 0 0 1 .5-.5h1a.5.5 0 0 1 .5.5v1a.5.5 0 0 1-.5.5h-1a.5.5 0 0 1-.5-.5z"></path>
+ <path d="M3.5 0a.5.5 0 0 1 .5.5V1h8V.5a.5.5 0 0 1 1 0V1h1a2 2 0 0 1 2 2v11a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V3a2 2 0 0 1 2-2h1V.5a.5.5 0 0 1 .5-.5M1 4v10a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1V4z"></path>
+ </svg>
+ {{- .Date | time.Format (or .Site.Params.dateFormat.published "02 Jan 2006") -}}
+ </span>
+ </div>
+ {{ end }}
+ {{ if .Params.Image }}
+ <img class="d-block img-fluid mb-2 rounded border shadow" max-width="800" loading="lazy" src="{{ .RelPermalink }}{{.Params.Image}}" />
+ {{ end }}
+ {{ if .Description }}
+ {{ .Description }}
+ {{ else }}
+ {{ .Summary }}
+ {{ if .Truncated }}
+ <div><a href="{{ .RelPermalink }}">Далее...</a></div>
{{ end }}
- {{ if .Description }}
- {{ .Description }}
- {{ else }}
- {{ .Summary }}
- {{ if .Truncated }}
- <a href="{{ .RelPermalink }}">Далее...</a>
- {{ end }}
- {{ end }}
- <footer>
- {{ partial "terms.html" (dict "taxonomy" "tags" "page" .) }}
- </footer>
-</article> \ No newline at end of file
+ {{ end }}
+
+ {{ partial "terms.html" (dict "taxonomy" "tags" "page" .) }}
+</div> \ No newline at end of file