Skip to content

Commit

Permalink
[BS5.3] Replace text-muted by text-body-secondary (#1892)
Browse files Browse the repository at this point in the history
  • Loading branch information
chalin committed Mar 13, 2024
1 parent 42dc4ca commit 5fddc02
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion assets/js/offline-search.js
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@
const $entry = $('<div>').addClass('mt-4');

$entry.append(
$('<small>').addClass('d-block text-muted').text(r.ref)
$('<small>').addClass('d-block text-body-secondary').text(r.ref)
);

$entry.append(
Expand Down
2 changes: 1 addition & 1 deletion assets/scss/_pageinfo.scss
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

.td-page-meta {
&__lastmod {
@extend .text-muted;
@extend .text-body-secondary;
@extend .border-top;
margin-top: map-get($spacers, 5) !important;
padding-top: map-get($spacers, 3) !important;
Expand Down
2 changes: 1 addition & 1 deletion layouts/blog/content.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ <h1>{{ .Title }}</h1>
{{ with .Params.description }}<div class="lead">{{ . | markdownify }}</div>{{ end }}
<div class="td-byline mb-4">
{{ with .Params.author }}{{ T "post_byline_by" }} <b>{{ . | markdownify }}</b> |{{ end}}
<time datetime="{{ $.Date.Format "2006-01-02" }}" class="text-muted">{{ $.Date.Format $.Site.Params.time_format_blog }}</time>
<time datetime="{{ $.Date.Format "2006-01-02" }}" class="text-body-secondary">{{ $.Date.Format $.Site.Params.time_format_blog }}</time>
</div>
<header class="article-meta">
{{ partial "taxonomy_terms_article_wrapper.html" . -}}
Expand Down
2 changes: 1 addition & 1 deletion layouts/blog/list.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<li class="td-blog-posts-list__item">
<div class="td-blog-posts-list__body">
<h5 class="mt-0 mb-1"><a href="{{ .RelPermalink }}">{{ .Title }}</a></h5>
<p class="mb-2 mb-md-3"><small class="text-muted">{{ .Date.Format ($.Param "time_format_blog") }} {{ T "ui_in"}} {{ .CurrentSection.LinkTitle }}</small></p>
<p class="mb-2 mb-md-3"><small class="text-body-secondary">{{ .Date.Format ($.Param "time_format_blog") }} {{ T "ui_in"}} {{ .CurrentSection.LinkTitle }}</small></p>
<header class="article-meta">
{{ partial "taxonomy_terms_article_wrapper.html" . -}}
{{ if (and (not .Params.hide_readingtime) (.Site.Params.ui.readingtime.enable)) -}}
Expand Down
2 changes: 1 addition & 1 deletion layouts/partials/featured-image.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<figure class="{{ $class }}" style="width: {{ $image.Width }}px">
<img src="{{ $image.RelPermalink }}" alt="Featured Image for {{ $p.Title }}" width="{{ $image.Width }}" height="{{ $image.Height }}">
{{ with $image.Params.byline }}
<figcaption class="mt-2 mt-md-0"><small class="text-muted">{{ . | html }}</small></figcaption>
<figcaption class="mt-2 mt-md-0"><small class="text-body-secondary">{{ . | html }}</small></figcaption>
{{ end }}
</figure>
{{ end }}
2 changes: 1 addition & 1 deletion layouts/partials/print/content-blog.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ <h1 id="pg-{{ .Page.File.UniqueID }}">{{ .Title }}</h1>
<div class="td-byline mb-4">
{{ with .Params.author }}{{ T "post_byline_by" }} <b>{{ . | markdownify }}</b> |{{ end}}
{{if .Date }}
<time datetime="{{ .Date.Format "2006-01-02" }}" class="text-muted">{{ .Date.Format .Site.Params.time_format_blog }}</time>
<time datetime="{{ .Date.Format "2006-01-02" }}" class="text-body-secondary">{{ .Date.Format .Site.Params.time_format_blog }}</time>
{{ end }}
</div>
{{ .Content }}
Expand Down
2 changes: 1 addition & 1 deletion layouts/shortcodes/card.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ <h5 class="card-title">
</h5>
{{ end -}}
{{ with $.Get "subtitle" -}}
<h6 class="card-title ms-2 text-muted">
<h6 class="card-title ms-2 text-body-secondary">
{{ . | markdownify -}}
</h6>
{{ end -}}
Expand Down
2 changes: 1 addition & 1 deletion layouts/shortcodes/imgproc.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
<figcaption class="card-body px-0 pt-2 pb-0">
<p class="card-text">
{{/* Do **not** remove this comment! It ends above html block! See https://spec.commonmark.org/0.30/#html-blocks, 7. */}}
{{ . }}{{ with $image.Params.byline }}<small class="text-muted"><br/>{{ . }}</small>{{ end }}
{{ . }}{{ with $image.Params.byline }}<small class="text-body-secondary"><br/>{{ . }}</small>{{ end }}
</p>
</figcaption>
{{ end -}}
Expand Down

0 comments on commit 5fddc02

Please sign in to comment.