FolderMetadata Pennington.Content
Metadata for a content folder discovered from a _meta.yml sidecar. Lets a folder declare its own display title, its position in the parent's nav level, and (optionally) its participation in the llms.txt sidecar.
Properties
FolderUrlPrefixstring- Canonical URL prefix in
/foo/bar/form (always leading and trailing slash) identifying the folder this metadata applies to. LlmsDescriptionstring- When non-null, opts the subtree into
llms.txtgeneration; the value is the subtree blurb. Orderint?- Sort order of the folder within its parent level; overrides emergent
min(children)and anyindex.mdorder when set. Titlestring- Display title for the folder; overrides
FormatSectionTitleand anyindex.mdtitle when set.
Constructors
FolderMetadata
#public FolderMetadata(string FolderUrlPrefix, string Title, int? Order, string LlmsDescription)
Metadata for a content folder discovered from a _meta.yml sidecar. Lets a folder declare its own display title, its position in the parent's nav level, and (optionally) its participation in the llms.txt sidecar.
Parameters
FolderUrlPrefixstring- Canonical URL prefix in
/foo/bar/form (always leading and trailing slash) identifying the folder this metadata applies to. Titlestring- Display title for the folder; overrides
FormatSectionTitleand anyindex.mdtitle when set. Orderint?- Sort order of the folder within its parent level; overrides emergent
min(children)and anyindex.mdorder when set. LlmsDescriptionstring- When non-null, opts the subtree into
llms.txtgeneration; the value is the subtree blurb.
Pennington.Content.FolderMetadata
namespace Pennington.Content;
/// Metadata for a content folder discovered from a _meta.yml sidecar. Lets a folder declare its own display title, its position in the parent's nav level, and (optionally) its participation in the llms.txt sidecar.
public record FolderMetadata
{
/// Metadata for a content folder discovered from a _meta.yml sidecar. Lets a folder declare its own display title, its position in the parent's nav level, and (optionally) its participation in the llms.txt sidecar.
public FolderMetadata(string FolderUrlPrefix, string Title, int? Order, string LlmsDescription)
;
/// Canonical URL prefix in /foo/bar/ form (always leading and trailing slash) identifying the folder this metadata applies to.
public string FolderUrlPrefix { get; set; }
/// When non-null, opts the subtree into llms.txt generation; the value is the subtree blurb.
public string LlmsDescription { get; set; }
/// Sort order of the folder within its parent level; overrides emergent min(children) and any index.md order when set.
public int? Order { get; set; }
/// Display title for the folder; overrides FormatSectionTitle and any index.md title when set.
public string Title { get; set; }
}