Skip to content
This repository was archived by the owner on Sep 2, 2024. It is now read-only.

3. Create a content page

danilomartinss edited this page Mar 7, 2024 · 16 revisions

1. On branch "dev_v1.1" click in "src" folder

image

so navigate to src/content/news/

image

2. Create a New Markdown File:

Create a new file with a .mdx extension, for example, "news_article.mdx" in src/content/news/2024/.

image

3. Add Header Information:

Start the file by adding the header information in YAML front matter format:

---
title: 'News Example'
description: A short description the news example
img: '/images/news/2024/news_example_image.jpg'
date: '2024-01-15'
---

4. Compose Content:

Below the header, you can freely compose your content.

4.1. Here are some types to using Markdown syntax.

For text formatting:

Bold Text: **Your text here** Your text here

Italic Text: *Your text here* Your text here

Headers: # Header 1, ## Header 2, ...

Header 1

Header 2

Lists: - Item 1, - Item 2, ...

  • Item 1
  • Item 2

Quotes: > Your quoted text

Your quoted text

4.2. Adding Links:

For adding links:

Inline Link: [Link Text](http://yourlink.com)

Link Text

Reference Link: [Link Text][1] and later in the document [1]: http://yourlink.com

[Link Text][1] and later in the document [1]: http://yourlink.com

4.3. Adding Images:

For adding images:

Inline Image: ![image](https://cdn.pixabay.com/photo/2014/06/03/19/38/board-361516_1280.jpg)

image

4.3.1 Image Recommendations for Organization Pages:

To prevent images from appearing distorted, it's recommended to upload images with a 1:1 aspect ratio or with a resolution of 220x220 pixels. This ensures that all images maintain a standardized size and appearance across the organization pages.

5. Finish edit/add content:

After add or edit the file, save the changes in "commit changes":

image

5.1. Create a title and a description for you changes and confirm in "commit changes"

image

5.2 After commit, go to the "actions" page to see if your changes were made correctly

image