Update pos list styles, remove self link from post

This commit is contained in:
Alex Shpak 2024-10-02 13:25:16 +02:00
parent 35bf672b70
commit 2f64607bc9
7 changed files with 36 additions and 34 deletions

View File

@ -85,6 +85,12 @@ ul.pagination {
filter: var(--icon-filter); filter: var(--icon-filter);
} }
a .book-icon {
height: 1em;
width: 1em;
margin-inline-end: .5em;
}
.book-brand { .book-brand {
margin-top: 0; margin-top: 0;
margin-bottom: $padding-16; margin-bottom: $padding-16;
@ -168,7 +174,17 @@ body[dir="rtl"] .book-menu {
} }
.book-post { .book-post {
margin-bottom: $padding-16 * 3; margin-bottom: $padding-16 * 2;
.book-post-date img {
height: 1em;
width: 1em;
margin-inline-end: .5em;
}
.book-post-content > :first-child {
margin-top: $padding-16;
}
} }
.book-header { .book-header {
@ -250,12 +266,6 @@ body[dir="rtl"] .book-menu {
.book-footer { .book-footer {
padding-top: $padding-16; padding-top: $padding-16;
font-size: $font-size-14; font-size: $font-size-14;
img {
height: 1em;
width: 1em;
margin-inline-end: $padding-8;
}
} }
.book-comments { .book-comments {
@ -265,12 +275,6 @@ body[dir="rtl"] .book-menu {
.book-languages { .book-languages {
margin-block-end: $padding-16 * 2; margin-block-end: $padding-16 * 2;
.book-icon {
height: 1em;
width: 1em;
margin-inline-end: .5em;
}
ul { ul {
padding-inline-start: 1.5em; padding-inline-start: 1.5em;
} }
@ -296,7 +300,6 @@ body[dir="rtl"] .book-menu {
.book-menu { .book-menu {
visibility: hidden; visibility: hidden;
margin-inline-start: -$menu-width; margin-inline-start: -$menu-width;
font-size: $font-size-base;
z-index: 1; z-index: 1;
} }

View File

@ -50,6 +50,10 @@
text-align: right; text-align: right;
} }
.text-small {
font-size: .875em;
}
.hidden { .hidden {
display: none; display: none;
} }

File diff suppressed because one or more lines are too long

View File

@ -1 +1 @@
{"Target":"book.min.d2208918717d44dd763368798f932ba074fc5ac4c6432e3b5da36b1883005c59.css","MediaType":"text/css","Data":{"Integrity":"sha256-0iCJGHF9RN12M2h5j5MroHT8WsTGQy47XaNrGIMAXFk="}} {"Target":"book.min.a61cdb2979f3c2bece54ef69131fba427dd57d55c232d3bb5fdb62ac41aa8354.css","MediaType":"text/css","Data":{"Integrity":"sha256-phzbKXnzwr7OVO9pEx+6Qn3VfVXCMtO7X9tirEGqg1Q="}}

View File

@ -1,23 +1,16 @@
{{ with .Date }} {{ with .Date }}
<h5>{{ partial "docs/date" (dict "Date" . "Format" $.Site.Params.BookDateFormat) }}</h5> <div class="flex align-center text-small book-post-date">
<img src="{{ "svg/calendar.svg" | relURL }}" class="book-icon " alt="" />
<span>{{ partial "docs/date" (dict "Date" . "Format" $.Site.Params.BookDateFormat) }}</span>
</div>
{{ end }} {{ end }}
{{ range $taxonomy, $_ := .Site.Taxonomies }} {{ range $taxonomy, $_ := .Site.Taxonomies }}
{{ with $terms := $.GetTerms $taxonomy }} {{ with $terms := $.GetTerms $taxonomy }}
<div> <div class="text-small">
{{ range $n, $term := $terms }}{{ if $n }}, {{ end }} {{ range $n, $term := $terms }}{{ if $n }}, {{ end }}
<a href="{{ $term.RelPermalink }}">{{ $term.Title }}</a> <a href="{{ $term.RelPermalink }}">{{ $term.Title }}</a>
{{- end }} {{- end }}
</div> </div>
{{ end }} {{ end }}
{{ end }} {{ end }}
{{ if .Params.image }}
<p>
{{ with .Resources.GetMatch .Params.image }}
<img src={{ .RelPermalink }} />
{{ else }}
<img src={{ .Params.image | relURL }} />
{{ end }}
</p>
{{ end }}

View File

@ -5,12 +5,12 @@
<a href="{{ .RelPermalink }}">{{ partial "docs/title.html" . }}</a> <a href="{{ .RelPermalink }}">{{ partial "docs/title.html" . }}</a>
</h2> </h2>
{{ partial "docs/post-meta" . }} {{ partial "docs/post-meta" . }}
<p> <div class="book-post-content">
{{- .Summary -}} {{- .Summary -}}
{{ if .Truncated }} {{ if .Truncated }}
<a href="{{ .RelPermalink }}">...</a> <a href="{{ .RelPermalink }}">...</a>
{{ end }} {{ end }}
</p> </div>
</article> </article>
{{ end }} {{ end }}

View File

@ -1,10 +1,12 @@
{{ define "main" }} {{ define "main" }}
<article class="markdown book-post"> <article class="markdown book-post">
<h1> <h2>
<a href="{{ .RelPermalink }}">{{ partial "docs/title.html" . }}</a> {{ partial "docs/title.html" . }}
</h1> </h2>
{{ partial "docs/post-meta" . }} {{ partial "docs/post-meta" . }}
{{- .Content -}} <div class="book-post-content">
{{- .Content -}}
</div>
</article> </article>
{{ end }} {{ end }}