2021-01-05 21:05:40 +08:00
|
|
|
// Copyright 2020 The Gitea Authors. All rights reserved.
|
2022-11-27 13:20:29 -05:00
|
|
|
// SPDX-License-Identifier: MIT
|
2021-01-05 21:05:40 +08:00
|
|
|
|
|
|
|
|
package templates
|
|
|
|
|
|
|
|
|
|
import (
|
2023-04-12 18:16:45 +08:00
|
|
|
"code.gitea.io/gitea/modules/assetfs"
|
2021-01-05 21:05:40 +08:00
|
|
|
"code.gitea.io/gitea/modules/setting"
|
|
|
|
|
)
|
|
|
|
|
|
2023-04-12 18:16:45 +08:00
|
|
|
func AssetFS() *assetfs.LayeredFS {
|
|
|
|
|
return assetfs.Layered(CustomAssets(), BuiltinAssets())
|
2022-08-28 10:43:25 +01:00
|
|
|
}
|
|
|
|
|
|
2023-04-12 18:16:45 +08:00
|
|
|
func CustomAssets() *assetfs.Layer {
|
|
|
|
|
return assetfs.Local("custom", setting.CustomPath, "templates")
|
|
|
|
|
}
|