From a5cd62f14864dee796bbff514f9f1b6c597f5fcd Mon Sep 17 00:00:00 2001 From: Shaun Hoffer Date: Tue, 11 Jun 2024 21:43:16 -0400 Subject: [PATCH] added code blocks post Signed-off-by: Shaun Hoffer --- _posts/2024-06-11-code-blocks.md | 60 ++++++++++++++++++++++++++++++++ 1 file changed, 60 insertions(+) create mode 100644 _posts/2024-06-11-code-blocks.md diff --git a/_posts/2024-06-11-code-blocks.md b/_posts/2024-06-11-code-blocks.md new file mode 100644 index 0000000..7d59e23 --- /dev/null +++ b/_posts/2024-06-11-code-blocks.md @@ -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 +

Test only

+
+``` + +```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** +``` \ No newline at end of file