Skip to content

Commit

Permalink
Fix for bootstrap 5
Browse files Browse the repository at this point in the history
  • Loading branch information
cmahnke committed Feb 23, 2024
1 parent 392fb51 commit 8652d21
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion layouts/_default/archive.html
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ <h2 class="filter-header">{{ i18n "filter" }}</h2>
{{- range (seq $firstYear $lastYear) -}}
{{ $year := . }}
{{- if len (where $pages ".Date.Year" "==" $year) -}}
<a class="year collapse-header" aria-expanded="false" data-toggle="collapse" aria-controls="collapse-{{ $year }}" href="#year-{{ $year }}">
<a class="year collapse-header" aria-expanded="false" data-toggle="collapse" data-bs-toggle="collapse" aria-controls="collapse-{{ $year }}" href="#year-{{ $year }}">
<i class="fas fa-plus"></i>
<i class="fas fa-minus"></i>
<h2 class="year-header">{{ $year }} <span class="count">({{ len (where $pages ".Date.Year" "==" $year) }})</span></h2>
Expand Down
3 changes: 2 additions & 1 deletion layouts/partials/blogs.rss.xml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@
{{ end }}
{{ range where $pages "Page.Date" "ge" (now.AddDate 0 -1 0) }}
<item>
{{- $dir := split (string (path.Dir .Path)) "/" -}}
{{- $dir := substr (string (path.Dir .Path)) 1 -}}
{{- $dir = split $dir "/" -}}

{{- $displayName := "" -}}
{{- $postLink := "" -}}
Expand Down

0 comments on commit 8652d21

Please sign in to comment.