Files
pse.dev/articles
2025-04-08 17:31:52 +03:00
..
2025-04-08 17:21:41 +03:00
2025-04-08 17:21:41 +03:00
2025-04-08 17:31:52 +03:00

Adding New Articles

This document explains how to add new articles to into pse.dev blog section.

Step 1: Create the Article File

  1. Duplicate the article-template.md file in the articles directory
  2. Rename it to match your article's title using kebab-case (e.g., my-new-article.md)

Step 2: Fill in the Article Information

Edit the frontmatter section at the top of the file:

---
authors: ["Your Name"] # Add your name or multiple authors in an array
title: "Your Article Title" # The title of your article
image: "cover.png" # This should always be "cover.png"
tldr: "A brief summary of your article" # Optional short summary
date: "YYYY-MM-DD" # Publication date in ISO format
---

Write your article content using Markdown formatting:

  • Use # for main headings (H1), ## for subheadings (H2), etc.
  • Use *italic* for italic text and **bold** for bold text
  • For code blocks, use triple backticks with optional language specification:
    // Your code here
    
  • For images, use the Markdown image syntax: ![Alt text](/articles/your-article-name/image-name.png)

Step 3: Add Images

  1. Create a new folder in the /public/articles directory with exactly the same name as your markdown file (without the .md extension)

    • Example: If your article is named my-new-article.md, create a folder named my-new-article
  2. Add your images to this folder:

    • Any additional images you want to use in your article should be placed in this folder
    • Reference images in your article using just the file name and the extensions of it

Step 4: Preview Your Article

Before submitting, make sure to:

  1. Check that your markdown formatting is correct
  2. Verify all images are displaying properly

Important Notes

  • The folder name in /public/articles must exactly match your markdown filename (without the .md extension)
  • Images will be automatically pulled from the matching folder when rendering the article
  • Use descriptive file names for your additional images
  • Optimize your images for web before adding them to keep page load times fast