Skip to content

Commit

Permalink
fix(archives): correct the year and month parsing when defaultContent…
Browse files Browse the repository at this point in the history
…LanguageInSubdir is false (#428)

Closes #427
  • Loading branch information
razonyang committed Oct 23, 2023
1 parent 1d559bb commit 9d0027a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion layouts/archives/list.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{{- define "title" }}
{{- $pages := sort site.RegularPages "Date" "desc" }}
{{- $path := replace .RelPermalink site.Home.RelPermalink "" }}
{{- $path := replace .Permalink site.Home.Permalink "" }}
{{- $paths := split $path "/" }}
{{- $year := default "" (index $paths 1) }}
{{- $month := default "" (index $paths 2) }}
Expand Down

0 comments on commit 9d0027a

Please sign in to comment.