diff options
author | Bjørn Erik Pedersen <[email protected]> | 2024-03-17 11:12:33 +0100 |
---|---|---|
committer | Bjørn Erik Pedersen <[email protected]> | 2024-05-14 13:12:08 +0200 |
commit | e2d66e3218e180bbfca06ca3a29ce01957c513e9 (patch) | |
tree | ed29bb99cf16b75b6334e2fc618d31e80203e5d5 /resources/resource | |
parent | 55dea41c1ab703f13b841389c6888815a033cf86 (diff) | |
download | hugo-e2d66e3218e180bbfca06ca3a29ce01957c513e9.tar.gz hugo-e2d66e3218e180bbfca06ca3a29ce01957c513e9.zip |
Create pages from _content.gotmpl
Closes #12427
Closes #12485
Closes #6310
Closes #5074
Diffstat (limited to 'resources/resource')
-rw-r--r-- | resources/resource/resourcetypes.go | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/resources/resource/resourcetypes.go b/resources/resource/resourcetypes.go index 5d9533223..8d982b00a 100644 --- a/resources/resource/resourcetypes.go +++ b/resources/resource/resourcetypes.go @@ -74,15 +74,23 @@ type ErrProvider interface { // Resource represents a linkable resource, i.e. a content page, image etc. type Resource interface { + ResourceWithoutMeta + ResourceMetaProvider +} + +type ResourceWithoutMeta interface { ResourceTypeProvider MediaTypeProvider ResourceLinksProvider - ResourceNameTitleProvider - ResourceParamsProvider ResourceDataProvider ErrProvider } +type ResourceWrapper interface { + UnwrappedResource() Resource + WrapResource(Resource) ResourceWrapper +} + type ResourceTypeProvider interface { // ResourceType is the resource type. For most file types, this is the main // part of the MIME type, e.g. "image", "application", "text" etc. |