{{ .Content | markdownify }}
+ {{- trim .Content "\n" | markdownify -}}diff --git a/assets/css/common/post-entry.css b/assets/css/common/post-entry.css index 2602ec5..17f8712 100644 --- a/assets/css/common/post-entry.css +++ b/assets/css/common/post-entry.css @@ -1,8 +1,5 @@ .first-entry { position: relative; - display: flex; - flex-direction: column; - justify-content: center; min-height: 320px; margin: var(--gap) 0 calc(var(--gap) * 2) 0; } @@ -12,6 +9,7 @@ display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; + margin: 1.5em 0; } .first-entry .entry-header h1 { @@ -22,7 +20,14 @@ .first-entry .entry-content { margin: 14px 0; font-size: 16px; - -webkit-line-clamp: 3; + color: var(--primary); + line-height: 1.5em; + display: block; +} + +.first-entry .entry-content p, +.first-entry .entry-content li { + margin-bottom: .8em; } .first-entry .entry-footer { diff --git a/layouts/partials/home_info.html b/layouts/partials/home_info.html index b9d7df9..21b9046 100644 --- a/layouts/partials/home_info.html +++ b/layouts/partials/home_info.html @@ -4,7 +4,7 @@
{{ .Content | markdownify }}
+ {{- trim .Content "\n" | markdownify -}}