@lexho111/plainblog 0.3.6 → 0.3.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/Blog.js +5 -0
  2. package/README.md +1 -1
  3. package/package.json +1 -1
package/Blog.js CHANGED
@@ -237,6 +237,11 @@ export default class Blog {
237
237
  if (this.#isExternalAPI) await postData(this.#apiUrl, newArticleData);
238
238
  // Add the article to the local list for immediate display
239
239
  this.articles.unshift(new Article(title, content, new Date()));
240
+ // remove sample entries
241
+ this.articles = this.articles.filter(
242
+ (art) =>
243
+ art.title !== "Sample Entry #1" && art.title !== "Sample Entry #2"
244
+ );
240
245
  } catch (error) {
241
246
  console.error("Failed to post new article to API:", error);
242
247
  }
package/README.md CHANGED
@@ -63,7 +63,7 @@ const blog = new Blog();
63
63
  blog.title = "My Blog";
64
64
  blog.style = "body { font-family: Arial, sans-serif; } h1 { color: #333; }";
65
65
  blog.password = "mypassword";
66
- blog.stylesheetPath = ["my-assets/styles.scss"];
66
+ blog.stylesheetPath = "my-assets/styles.scss";
67
67
 
68
68
  blog.startServer(8080);
69
69
  ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lexho111/plainblog",
3
- "version": "0.3.6",
3
+ "version": "0.3.7",
4
4
  "description": "A tool for creating and serving a minimalist, single-page blog.",
5
5
  "main": "index.js",
6
6
  "type": "module",