Skip to content

Commit

Permalink
style: allow wrapping on smaller screen
Browse files Browse the repository at this point in the history
  • Loading branch information
whiztech committed Dec 5, 2023
1 parent 3459d51 commit 2768c76
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions layouts/partials/hb/modules/revision/index.html
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
<div class="hb-module hb-revision text-body-secondary">
<div class="hb-module hb-revision text-body-secondary d-flex flex-wrap">
{{- $params := site.Params.hb.revision }}
{{- $format := default ":date_full" $params.date_format }}
{{- if ne .Lastmod .Date }}
{{- $lastmod := .Lastmod | time.Format $format }}
<span class="hb-revision-lastmod" title="{{ i18n `revised_at` (dict `Date` $lastmod) }}">
<span class="hb-revision-lastmod me-2" title="{{ i18n `revised_at` (dict `Date` $lastmod) }}">
{{ partial "icons/icon" (dict "vendor" "bs" "name" "pencil-square") }}
<span>{{ $lastmod }}</span>
</span>
{{- end }}
{{- $date := .Date | time.Format $format }}
<span class="hb-revision-date ms-2" title="{{ i18n `created_at` (dict `Date` $date) }}">
<span class="hb-revision-date" title="{{ i18n `created_at` (dict `Date` $date) }}">
{{ partial "icons/icon" (dict "vendor" "bs" "name" "calendar-plus") }}
<span>{{ $date }}</span>
</span>
Expand Down

0 comments on commit 2768c76

Please sign in to comment.