added code blocks post
Signed-off-by: Shaun Hoffer <shoffer@ttnrtsite.me>
This commit is contained in:
parent
5e3cc0f1a0
commit
a5cd62f148
60
_posts/2024-06-11-code-blocks.md
Normal file
60
_posts/2024-06-11-code-blocks.md
Normal file
@ -0,0 +1,60 @@
|
|||||||
|
---
|
||||||
|
layout: post
|
||||||
|
title: "Code blocks"
|
||||||
|
date: 2024-06-11 21:42:00 -0400
|
||||||
|
---
|
||||||
|
|
||||||
|
A few code blocks you might like
|
||||||
|
|
||||||
|
```html
|
||||||
|
<p>Test only</p>
|
||||||
|
<div id="hi"><span></span></div>
|
||||||
|
```
|
||||||
|
|
||||||
|
```bash
|
||||||
|
echo "hello world" > testfile.txt
|
||||||
|
cat testfile.txt
|
||||||
|
```
|
||||||
|
|
||||||
|
```javascript
|
||||||
|
console.log("Hello world");
|
||||||
|
console.error("Something happened");
|
||||||
|
```
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
steps:
|
||||||
|
testmessage:
|
||||||
|
image: ubuntu
|
||||||
|
commands:
|
||||||
|
- echo "Hello world"
|
||||||
|
- echo "I run on TTGit"
|
||||||
|
```
|
||||||
|
|
||||||
|
```json
|
||||||
|
[
|
||||||
|
{
|
||||||
|
"id": "0",
|
||||||
|
"name": "shaun",
|
||||||
|
"website": "https://www.ttnrtsite.me"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
```
|
||||||
|
|
||||||
|
```css
|
||||||
|
html {
|
||||||
|
background-color: black;
|
||||||
|
color: white;
|
||||||
|
user-select: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
body {
|
||||||
|
height: 100vh;
|
||||||
|
margin: 0;
|
||||||
|
padding: 0;
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
```markdown
|
||||||
|
# Heading 1
|
||||||
|
Something **NEW**
|
||||||
|
```
|
Loading…
Reference in New Issue
Block a user