diff --git a/src/managed/OpenLiveWriter.PostEditor/Configuration/StaticSiteAdvanced/FrontMatterPanel.cs b/src/managed/OpenLiveWriter.PostEditor/Configuration/StaticSiteAdvanced/FrontMatterPanel.cs index d554d3e0..dc2a5a32 100644 --- a/src/managed/OpenLiveWriter.PostEditor/Configuration/StaticSiteAdvanced/FrontMatterPanel.cs +++ b/src/managed/OpenLiveWriter.PostEditor/Configuration/StaticSiteAdvanced/FrontMatterPanel.cs @@ -71,8 +71,22 @@ namespace OpenLiveWriter.PostEditor.Configuration.StaticSiteAdvanced dataGridView.Rows.Add(_keyRowMap[keyIdentifier]); } + private string GetTableRow(KeyIdentifier keyIdentifier) + => _keyRowMap[keyIdentifier].Cells[1].Value as string; + public StaticSiteConfigFrontMatterKeys Keys { + get => new StaticSiteConfigFrontMatterKeys() + { + IdKey = GetTableRow(KeyIdentifier.Id), + TitleKey = GetTableRow(KeyIdentifier.Title), + DateKey = GetTableRow(KeyIdentifier.Date), + LayoutKey = GetTableRow(KeyIdentifier.Layout), + TagsKey = GetTableRow(KeyIdentifier.Tags), + PermalinkKey = GetTableRow(KeyIdentifier.Permalink), + ParentIdKey = GetTableRow(KeyIdentifier.ParentId) + }; + set { _keyRowMap = new Dictionary();