public Task DownloadJekyllPosts()
        {
            var publisher = new LocalJekyllPublisher(Model.ActivePostMetadata, Model.ActiveWeblogInfo, null);

            StatusBar.ShowStatusProgress($"Downloading last {Model.NumberOfPostsToRetrieve} posts...");

            var posts = publisher.GetRecentPosts(Model.NumberOfPostsToRetrieve)?.ToList();

            if (posts == null)
            {
                StatusBar.ShowStatusError($"An error occurred trying to retrieve posts: {publisher.ErrorMessage}");
            }

            Dispatcher.Invoke(() =>
            {
                StatusBar.ShowStatusSuccess($"{posts.Count} posts downloaded.");
                Model.PostList = posts;
            });

            return(Task.CompletedTask);
        }
        public void GetPosts()
        {
            var webLogInfo = new WeblogInfo
            {
                ApiUrl = STR_JEKYLL_PROJECT_FOLDER,
                Name   = "Jekyll Test Blog"
            };

            var rawMd = System.IO.File.ReadAllText(STR_MM_POST_FILE_NAME);

            var post = new Post();  // filled from meta data but not used here
            var meta = WeblogPostMetadata.GetPostYamlConfigFromMarkdown(rawMd, post);


            var pub   = new LocalJekyllPublisher(meta, webLogInfo, null);
            var posts = pub.GetRecentPosts(20).ToList();

            Console.WriteLine(posts.Count);

            foreach (var pst in posts)
            {
                Console.WriteLine($"{pst.Title} -  {pst.mt_excerpt}");
            }
        }