Skip to content

Commit

Permalink
Use class names for better configurability
Browse files Browse the repository at this point in the history
  • Loading branch information
chalin committed Feb 2, 2024
1 parent 040202e commit b514797
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 5 deletions.
9 changes: 9 additions & 0 deletions assets/scss/_pageinfo.scss
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,12 @@
}
}
}

.td-page-meta {
&__lastmod {
@extend .text-muted;
@extend .border-top;
margin-top: map-get($spacers, 5) !important;
padding-top: map-get($spacers, 3) !important;
}
}
4 changes: 1 addition & 3 deletions assets/scss/_sidebar-toc.scss
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,8 @@
padding-top: 0.75rem;
padding-bottom: 1.5rem;
vertical-align: top;
}

.td-page-meta {
a {
.td-page-meta a {
display: block;
font-weight: $font-weight-medium;
}
Expand Down
4 changes: 2 additions & 2 deletions layouts/partials/page-meta-lastmod.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{{ if and (.GitInfo) (.Site.Params.github_repo) -}}
<div class="text-muted mt-5 pt-3 border-top">
{{ if and .GitInfo .Site.Params.github_repo -}}
<div class="td-page-meta__lastmod">
{{ T "post_last_mod" }} {{ .Lastmod.Format .Site.Params.time_format_default -}}
{{ with .GitInfo }}: {{/* Trim WS */ -}}
<a href="{{ $.Site.Params.github_repo }}/commit/{{ .Hash }}">
Expand Down

0 comments on commit b514797

Please sign in to comment.