Skip to content

fedek6/articles

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Articles

My blog articles.

Post structure

Frontmatter

---
title: Newest article
date: "2023-03-08"
slug: /hello-world
tags: ["markdown", "code", "features"]
summary: Example of a markdown file with code blocks and syntax highlighting
---

Content

A sample post with markdown.

## Inline Highlighting

Sample of inline highlighting `sum = parseInt(num1) + parseInt(num2)`

![my image](./test.jpg)

## Code Blocks

Some Javascript code

\`\`\`javascript
var num1, num2, sum;
num1 = prompt("Enter first number");
num2 = prompt("Enter second number");
sum = parseInt(num1) + parseInt(num2); // "+" means "add"
alert("Sum = " + sum); // "+" means combine into a string
\`\`\`

Some Python code 🐍

\`\`\`python
def fib():
a, b = 0, 1
while True: # First iteration:
yield a # yield 0 to start with and then
a, b = b, a + b # a will now be 1, and b will also be 1, (0 + 1)

for index, fibonacci_number in zip(range(10), fib()):
print('{i:3}: {f:3}'.format(i=index, f=fibonacci_number))
\`\`\`

About

Blog articles

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages