How to Write a Blog
Play some background music:
We can write our blogs using the Markdown framework. Markdown, similar to HTML, is a markup language.
Using # Makes Headers, Useful to Section Content
More ## Creates Subheadings
11ty allows us to link from these headings too
We can embed links, or we can also use regular HTML.
I can also link to another section of the page.
You can write code in code blocks, using ```
// this is a command
function myCommand() {
let counter = 0;
counter++;
}
// Test with a line break above this line.
console.log('Test');
Or you can write inline code like this
Running Locally
To run our blog for local testing:
- Open terminal in VS Code
- Type
npm run start - Open the localhost link in your browser. It should look something like
http://localhost:8080/ - It will live update, so every time you press save on your blog post it will be uploaded!
Publishing to the Web
Now I am at the bottom!
- Next →
my first class blog