diff --git a/src/Directory.Build.targets b/src/Directory.Build.targets index 8c119d5..1461fac 100644 --- a/src/Directory.Build.targets +++ b/src/Directory.Build.targets @@ -1,2 +1,4 @@ + + diff --git a/src/app/MZikmund.App/Assets/PostPreviewTemplate.html b/src/app/MZikmund.App/Assets/PostPreviewTemplate.html new file mode 100644 index 0000000..9fd39bd --- /dev/null +++ b/src/app/MZikmund.App/Assets/PostPreviewTemplate.html @@ -0,0 +1,25 @@ + + + + + + + + + + + + + +
+
+
+ +
+ {POSTCONTENT} +
+
+
+
+ + diff --git a/src/app/MZikmund.App/Views/Admin/PostEditorView.xaml.cs b/src/app/MZikmund.App/Views/Admin/PostEditorView.xaml.cs index 419fc95..c0a1e6d 100644 --- a/src/app/MZikmund.App/Views/Admin/PostEditorView.xaml.cs +++ b/src/app/MZikmund.App/Views/Admin/PostEditorView.xaml.cs @@ -14,7 +14,7 @@ public PostEditorView() { InitializeComponent(); // Read the template from the embedded resource - _postPreviewTemplate = typeof(PostEditorView).GetAssembly().GetManifestResourceStream("MZikmund.Assets.PostPreviewTemplate.html")?.ReadToEnd()!; + _postPreviewTemplate = typeof(PostEditorView).Assembly.GetManifestResourceStream("MZikmund.App.Assets.PostPreviewTemplate.html")!.ReadToEnd()!; PreviewWebViewContainer.Content = _previewWebView = new WebView2(); this.Loaded += PostEditorView_Loaded; this.Unloaded += PostEditorView_Unloaded; diff --git a/src/app/MZikmund.App/Views/PostView.xaml.cs b/src/app/MZikmund.App/Views/PostView.xaml.cs index bfc01b4..f215183 100644 --- a/src/app/MZikmund.App/Views/PostView.xaml.cs +++ b/src/app/MZikmund.App/Views/PostView.xaml.cs @@ -27,7 +27,7 @@ public PostView() { InitializeComponent(); // Read the template from the embedded resource - _postPreviewTemplate = typeof(PostView).GetAssembly().GetManifestResourceStream("MZikmund.Assets.PostPreviewTemplate.html")?.ReadToEnd()!; + _postPreviewTemplate = typeof(PostView).Assembly.GetManifestResourceStream("MZikmund.App.Assets.PostPreviewTemplate.html")?.ReadToEnd()!; PreviewWebViewContainer.Content = _previewWebView = new WebView2(); this.Loaded += PostEditorView_Loaded; this.Unloaded += PostEditorView_Unloaded;