Skip to content

Commit

Permalink
fix syntax highlighting
Browse files Browse the repository at this point in the history
  • Loading branch information
Ze7111 committed Jul 14, 2024
1 parent 7ed410d commit 86370f6
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
Binary file modified bun.lockb
Binary file not shown.
2 changes: 1 addition & 1 deletion src/content/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const blogCollection = defineCollection({
alt: z.string(),
}),
publishDate: z.string().transform((str) => new Date(str)),
author: z.string().default("YourCompany"),
author: z.string().default("Neorain"),
category: z.string(),
tags: z.array(z.string()),
}),
Expand Down
8 changes: 4 additions & 4 deletions src/content/docs/docs/getting-started/hello-world.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ Next, create a new source file and call it `main.hlx`. Helix files use the `.hlx

Open the `main.hlx` file you just created and enter the following code:

```Helix title="main.hlx"
```helix title="main.hlx"
fn main() {
print("Hello, World!");
}
Expand Down Expand Up @@ -68,7 +68,7 @@ Helix provides a feature that allows you to write programs without explicitly de

Create a new file called `hello_no_entry.hlx` and enter the following code:

```Helix title="hello_no_entry.hlx"
```helix title="hello_no_entry.hlx"
#[no-entry]
print("Hello, World!");
Expand Down Expand Up @@ -113,7 +113,7 @@ Let's review the "Hello, World!" program in detail:
### The Main Function
```Helix
```helix
fn main() {
}
```
Expand All @@ -124,7 +124,7 @@ The function body is wrapped in `{}`. Helix requires curly brackets around all f

### The Print Statement

```Helix
```helix
print("Hello, World!");
```

Expand Down

0 comments on commit 86370f6

Please sign in to comment.