diff --git a/assets/css/099_page_summary.css b/assets/css/099_page_summary.css index c7d4ca8..04a675c 100644 --- a/assets/css/099_page_summary.css +++ b/assets/css/099_page_summary.css @@ -3,7 +3,9 @@ **************************/ .page-summary { - &:not(:first-child) { + grid-column: main-start / main-end; + + p + & { margin-block-start: var(--space-xl); } @@ -12,23 +14,38 @@ } .page-summary__date { - font-weight: normal; + color: var(--text-color-secondary); + display: block; + font-size: var(--text-s); + line-height: 1; } .page-summary__title { + font-size: var(--text-l); + line-height: 1; margin-block: 0; + + a { + color: var(--text-color-body); + + &:hover { + color: var(--text-color-link); + } + } } .page-summary__subtitle { + color: var(--text-color-secondary); font-family: var(--font-family-heading); font-weight: normal; } - .page-summary__content { - margin-block-end: var(--space-m); - } - - :is(.page-summary__title, .page-summary__subtitle, .page-summary__date):last-child { + :is( + .page-summary__heading, + .page-summary__subtitle, + .page-summary__content, + .page-summary__date + ):not(:last-child) { margin-block-end: var(--space-xs); } } diff --git a/layouts/_default/page_summary.html b/layouts/_default/page_summary.html index a09b60d..a7e2076 100644 --- a/layouts/_default/page_summary.html +++ b/layouts/_default/page_summary.html @@ -1,16 +1,13 @@
-
-

{{ .Title }}

- {{ with .Params.subtitle | default .Description | markdownify }} -

{{ . }}

- {{ end }} +
+

{{ .LinkTitle }}

{{ if (.Params.rendersSummary | default true) -}} -
- {{ .Summary }} -
+ {{ with .Description }} +
{{ . | markdownify }}
+ {{ end }} {{- end }} - + {{ with .Date }} + + {{ end }}