feat: support self host static assets

This commit is contained in:
geekifan
2025-05-07 11:27:15 +08:00
parent 7adc9fd396
commit 623f913912
6 changed files with 30 additions and 19 deletions

View File

@ -1,4 +1,4 @@
{{ $origin := cond (eq .Site.Params.self_host true) "basic" "cors" }}
{{ $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 "/")) }}