diff --git a/assets/sass/_theme/sections/posts.sass b/assets/sass/_theme/sections/posts.sass index f8a3f4e9321a1003c53a26be2e20a39af171b6cf..100e1eb6ba0103b60ff78b0197ef9731f9f4fcd7 100644 --- a/assets/sass/_theme/sections/posts.sass +++ b/assets/sass/_theme/sections/posts.sass @@ -51,9 +51,11 @@ right: 0 top: 0 div:not(.media) + h2, p, a max-width: col(6, 9) + @else .posts @include grid(1) diff --git a/layouts/partials/posts/post.html b/layouts/partials/posts/post.html index c2d37aaddbe5d9cd71fbf30873122bedde3d1822..53e1daafef1621ca2384df95b2a685fbfe429b4e 100644 --- a/layouts/partials/posts/post.html +++ b/layouts/partials/posts/post.html @@ -1,7 +1,10 @@ <article class="post"> <div> {{- $title := partial "PrepareHTML" .Title -}} - <p class="title"><a href="{{ .Permalink }}" title="{{ safeHTML (i18n "commons.more_aria" (dict "Title" $title)) }}">{{ $title }}</a></p> + <h2 class="h4"><a href="{{ .Permalink }}" title="{{ safeHTML (i18n "commons.more_aria" (dict "Title" $title)) }}">{{ $title }}</a></h2> + {{- if (partial "GetTextFromHTML" .Params.description_short) -}} + <p>{{ partial "PrepareHTML" .Params.description_short }}</p> + {{- end -}} <time datetime="{{ .Date.Format "2006-01-02T15:04" }}">{{ .Date | time.Format ":date_long" }}</time> </div> <div class="media">