mirror of
https://github.com/privacy-scaling-explorations/pse.dev.git
synced 2026-01-08 21:58:05 -05:00
2.8 KiB
2.8 KiB
Adding New Articles
This document explains how to add new articles to into pse.dev blog section.
Step 1: Create the Article File
- Duplicate the
_article-template.mdfile in thecontent/articlesdirectory - 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: "/articles/articles-name-folder/cover.webp" # Image used as cover, Keep in mind the image size, where possible use .webp format, possibly images less then 200/300kb
tldr: "A brief summary of your article" #Short summary
date: "YYYY-MM-DD" # Publication date in ISO format
canonical: "mirror.xyz/my-new-article" # (Optional) The original source URL, this tells search engines the primary version of the content
tags: ["tag1", "tag2"] # (Optional) Add relevant tags as an array of strings to categorize the article
projects: ["project-1"] # (Optional) Link to related projects by their id
---
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:
 - For LaTeX math formulas:
- Use single dollar signs for inline math:
$E=mc^2$will render asE=mc^2 - Use double dollar signs for block math:
Will render as a centered math equation block
$$ F(x) = \int_{-\infty}^{x} f(t) dt $$
- Use single dollar signs for inline math:
Step 3: Add Images
-
Create a new folder in the
/public/articlesdirectory 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 namedmy-new-article
- Example: If your article is named
-
Add your images to this folder:
- Any additional images you want to use in your article should be placed in this folder
Step 4: Preview Your Article
Before submitting, make sure to:
- Check that your markdown formatting is correct
- Verify all images are displaying properly
Step 5: PR Review process
Open Pull request following the previews step and for any help
- Suggest to tag: @kalidiagne, @psedesign for PR review.
- If question, please reach out in discord channel #website-pse
Important Notes
- The folder name in
/public/articlesmust exactly match your markdown filename (without the .md extension) - Use descriptive file names for your additional images
- Optimize your images for web before adding them to keep page load times fast