Record
public record BlogFeatureConfig : System.IEquatable<Moka.Docs.Core.Configuration.BlogFeatureConfig>
Namespace: Moka.Docs.Core.Configuration
Blog feature configuration.
Inheritance
Implements: System.IEquatable<Moka.Docs.Core.Configuration.BlogFeatureConfig>
Properties
| Name | Description |
|---|---|
Enabled |
Whether the blog is enabled. |
PostsPerPage |
Number of posts per page. |
ShowAuthors |
Show author information on posts. |
Enabled
bool BlogFeatureConfig.Enabled { get; init; }
Whether the blog is enabled.
PostsPerPage
int BlogFeatureConfig.PostsPerPage { get; init; }
Number of posts per page.
ShowAuthors
bool BlogFeatureConfig.ShowAuthors { get; init; }
Show author information on posts.
Type Relationships
classDiagram
style BlogFeatureConfig fill:#f9f,stroke:#333,stroke-width:2px
BlogFeatureConfig ..|> BlogFeatureConfig~ : implements
View Source
/// <summary>Blog feature configuration.</summary>
public sealed record BlogFeatureConfig
{
/// <summary>Whether the blog is enabled.</summary>
public bool Enabled { get; init; }
/// <summary>Number of posts per page.</summary>
public int PostsPerPage { get; init; } = 10;
/// <summary>Show author information on posts.</summary>
public bool ShowAuthors { get; init; } = true;
}