...
This commit is contained in:
@@ -82,6 +82,19 @@ public class DocsService
|
||||
|
||||
if (frontmatterLines.Count > 0)
|
||||
{
|
||||
foreach (var line in frontmatterLines)
|
||||
{
|
||||
var colonIdx = line.IndexOf(':');
|
||||
if (colonIdx > 0)
|
||||
{
|
||||
var key = line[..colonIdx].Trim();
|
||||
if (string.Equals(key, "category", StringComparison.OrdinalIgnoreCase))
|
||||
{
|
||||
doc.Category = line[(colonIdx + 1)..].Trim().Trim('"');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
var fmHtml = new System.Text.StringBuilder();
|
||||
fmHtml.Append("<table class=\"frontmatter\">");
|
||||
foreach (var line in frontmatterLines)
|
||||
|
||||
Reference in New Issue
Block a user