CLASS Theme
- Namespace: SuCoS.Models
- Source File: Theme.cs
Representation of the theme.
Properties
Title
(string) { get; set } = string.Empty: Theme name
Path
(string) { get; set } = string.Empty: Theme name
StaticFolder
(string): The path of the static content (that will be copied as is)
DefaultLayoutFolder
(string): folder that contains default layout files.
Folders
(IEnumerable
Public Methods
Create
public static Theme Create(Site site, string data)
Create a Theme from a given front matter content.
Parameters:
site(Site)data(string)
Returns: Theme
CreateFromSite
public static Theme? CreateFromSite(Site site)
Create a Theme from a given front matter file path.
Parameters:
site(Site)
Returns: Theme?