Skip to content

Commit 7514dc8

Browse files
committed
refactor
1 parent a5d550f commit 7514dc8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Elastic.Markdown/IO/MarkdownFile.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ private void ReadDocumentInstructions(MarkdownDocument document)
133133

134134
// set title on yaml front matter manually.
135135
// frontmatter gets passed around as page information throughout
136-
YamlFrontMatter.Title = TitleRaw;
136+
YamlFrontMatter.Title = Title;
137137

138138
NavigationTitle = YamlFrontMatter.NavigationTitle;
139139
if (!string.IsNullOrEmpty(NavigationTitle))
@@ -156,7 +156,7 @@ private void ReadDocumentInstructions(MarkdownDocument document)
156156
}
157157
}
158158
else
159-
YamlFrontMatter = new YamlFrontMatter { Title = TitleRaw };
159+
YamlFrontMatter = new YamlFrontMatter { Title = Title };
160160

161161
if (string.IsNullOrEmpty(TitleRaw))
162162
{

0 commit comments

Comments
 (0)