diff options
author | Jimmy Cai <github@jimmycai.com> | 2022-03-04 01:36:17 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-04 01:36:17 +0300 |
commit | 8abaa444c1d6d6a1ea9f5019f76d8dbd6f30948a (patch) | |
tree | aa44205122dd2753d9a8b6a6a00ebff64fa572df /layouts | |
parent | 04cdbcfedfe3f200013e05aecbb96dc3313424b3 (diff) |
refactor: add flexbox gap to .article-details
Diffstat (limited to 'layouts')
-rw-r--r-- | layouts/partials/article/components/details.html | 24 |
1 files changed, 13 insertions, 11 deletions
diff --git a/layouts/partials/article/components/details.html b/layouts/partials/article/components/details.html index 2ec1241..4cd26e3 100644 --- a/layouts/partials/article/components/details.html +++ b/layouts/partials/article/components/details.html @@ -9,17 +9,19 @@ </header> {{ end }} - <h2 class="article-title"> - <a href="{{ .RelPermalink }}"> - {{- .Title -}} - </a> - </h2> - - {{ with .Params.description }} - <h3 class="article-subtitle"> - {{ . }} - </h3> - {{ end }} + <div class="article-title-wrapper"> + <h2 class="article-title"> + <a href="{{ .RelPermalink }}"> + {{- .Title -}} + </a> + </h2> + + {{ with .Params.description }} + <h3 class="article-subtitle"> + {{ . }} + </h3> + {{ end }} + </div> {{ if or (not .Date.IsZero) (.Site.Params.article.readingTime) }} <footer class="article-time"> |