feat: add individual post page (#4)
* chore: add markdown lint to ignore no h1 heading in markdown files * chore: update example settings * chore: update example development env file * fix: remove fixed 100% height on container * feat: add individual post page * chore: update README.md * feat: add links to headings in post and add copy button to code blocks * tests: add tests for get post async method * tests: remove heading for test blogs * fix: only add links to headings in markdown body * tests: add tests for post page * tests: add test to check for blog content * docs: add jsdoc comments * chore: fix incorrect env variable format in example * fix: don't render anything if blog post is null * fix: don't render anything until posts are fetched * chore: add docker compose file for prod
This commit is contained in:
@@ -0,0 +1,76 @@
|
||||
```json meta
|
||||
{
|
||||
"title": "Test Blog",
|
||||
"lead": "This is a test blog post.",
|
||||
"isPublished": true,
|
||||
"publishedAt": "2024-04-10"
|
||||
}
|
||||
```
|
||||
|
||||
Welcome to my Markdown blog post! In this post, I'll cover various Markdown elements to help you test styling.
|
||||
|
||||
## Text Formatting
|
||||
|
||||
This is a ""citation of someone""
|
||||
|
||||
Here are some examples of text formatting:
|
||||
|
||||
- *Italic Text*
|
||||
- **Bold Text**
|
||||
- ***Bold Italic Text***
|
||||
- ~~Strikethrough Text~~
|
||||
|
||||
## Lists
|
||||
|
||||
### Unordered List
|
||||
|
||||
- Item 1
|
||||
- Item 2
|
||||
- Subitem A
|
||||
- Subitem B
|
||||
- Item 3
|
||||
|
||||
### Ordered List
|
||||
|
||||
1. First item
|
||||
2. Second item
|
||||
3. Third item
|
||||
|
||||
## Links and Images
|
||||
|
||||
### Link
|
||||
|
||||
[OpenAI](https://openai.com) - An amazing AI research organization.
|
||||
|
||||
### Image
|
||||
|
||||

|
||||
|
||||
## Blockquotes
|
||||
|
||||
> Markdown is a lightweight markup language with plain-text formatting syntax.
|
||||
|
||||
## Code Blocks
|
||||
|
||||
```python
|
||||
def greet(name):
|
||||
print(f"Hello, {name}!")
|
||||
|
||||
greet("World")
|
||||
```
|
||||
|
||||
## Tables
|
||||
|
||||
| Name | Age |
|
||||
|-------|-----|
|
||||
| Alice | 30 |
|
||||
| Bob | 25 |
|
||||
| Carol | 35 |
|
||||
|
||||
## Horizontal Rule
|
||||
|
||||
---
|
||||
|
||||
## Conclusion
|
||||
|
||||
That's it for this Markdown blog post! Feel free to experiment with styling these elements further.
|
||||
Reference in New Issue
Block a user