IMarkdownContentService
interfaceNamespace: MyLittleContentEngine.Services.Content
Declaration
public interface IMarkdownContentService
Implements
MyLittleContentEngine.Services.Content.IContentService
Methods
GetAllContentPagesAsync
methodpublic abstract Task<ImmutableList<MarkdownContentPage<TFrontMatter>>> GetAllContentPagesAsync()
Gets an immutable list of all content.
Returns:
Task<ImmutableList<MarkdownContentPage<TFrontMatter>>>
GetRenderedContentPageByUrlOrDefault
methodpublic abstract Task<(MarkdownContentPage<TFrontMatter> Page, string HtmlContent)?> GetRenderedContentPageByUrlOrDefault(string url)
Gets content by its URL and renders the Markdown to HTML. Returns null if not found.
Returns:
Task<(MarkdownContentPage<TFrontMatter> Page, string HtmlContent)?>
url string | The URL identifier of the content page to retrieve |