fix: update permalink handling in subpath setting

This commit is contained in:
geekifan
2025-05-11 17:58:59 +08:00
parent 102129f36a
commit f615f3bd8a
6 changed files with 89 additions and 88 deletions

View File

@ -1,7 +1,7 @@
{{ $origin := cond (eq .Site.Params.assets.self_host true) "basic" "cors" }}
{{ $data := index .Site.Data.origin $origin }}
{{ $is_home := false }}
{{ if or (eq .RelPermalink "/") (eq .RelPermalink (relLangURL "/")) }}
{{ if or (eq .RelPermalink "/") (eq .RelPermalink (relLangURL "/")) (eq .RelPermalink (.Site.Home.RelPermalink)) }}
{{ $is_home = true }}
{{ end }}
{{ $is_categories := and (eq .Kind "taxonomy") (eq .Type "categories") }}