Skip to content

Commit

Permalink
edit first-post.md, added some things
Browse files Browse the repository at this point in the history
  • Loading branch information
koiyakiya committed Jul 22, 2024
1 parent 30a0915 commit 67e9c21
Show file tree
Hide file tree
Showing 2 changed files with 69 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .vitepress/config.mts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,10 @@ export default defineConfig({
lastUpdated: true,
markdown: {
lineNumbers: true,
math: true
math: true,
image: {
lazyLoading: true
},
},
lang: 'en-US',
title: "koiya.me",
Expand All @@ -30,6 +33,7 @@ export default defineConfig({
provider: 'local'
},
socialLinks: [
{ icon: 'github', link: 'https://github.com/koiyakiya'},
{ icon: 'twitter', link: 'https://x.com/koiyakiya/'},
{ icon: 'instagram', link: 'https://instagram.com/koiyakiya9/'},
{ icon: 'youtube', link: 'https://youtube.com/@koiyakiya'},
Expand Down
64 changes: 64 additions & 0 deletions first-post.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# First Post

## Capabilities

This is my first post testing out the capabilities of [Vitepress](https://vitepress.dev/).

```
Expand Down Expand Up @@ -48,6 +50,8 @@ We can also have [code groups](https://vitepress.dev/guide/markdown#code-groups)

<<< @/code-snippets/pyramid.c

:::

## Math!

I just added the ability to use LaTeX in the website, by putting the following in `config.mts`:
Expand Down Expand Up @@ -79,8 +83,68 @@ $$a^2+b^2=c^2$$

...etc.

## Badges & Containers

<Badge type="info" text="hi!" /> As you can see to the left, that's a badge.
<br>
<Badge type="warning" text="WARNING" /> I can add stuff like this...
<br>
<Badge type="danger" text="ERROR" /> ...and this!

For example...

<Badge type="danger" text="!" /> *This code will not compile!*

```py
def ur mother:
wef
```

But, I can go one step further with *containers*:

:::danger Incorrect
```py
def ur mother:
wef
```
:::

:::details Tip below!

**The first one to move is gay**

:::




## 最後に

Anyways, it's like 1 am right now. I should probably head to bed. I think Vitepress is pretty cooool

What I need to do tomorrow or some other day is to try to see if I can change the default Japanese font, since I'll probably be using it. Let's see how a normal Japanese sentence looks like, taken from [massif.la](https://massif.la/ja):

俺の言葉を聞いて、二人は怪訝そうな表情を浮かべる。

...doesn't look too bad, huh. Anyways. Goodnight! おやすみ!!

OH WAIT

lmao, just realized something that happened.

So I had this markdown to enable code groups as seen above:

```
::: code-group
<<< @/code-snippets/sort.js
<<< @/code-snippets/pyramid.c
```

But, I forgot to add the `:::` at the end, so stuff other things populated the tabs with nothing inside them lmao. Now *that's* why the code snippets I put after the code groups weren't working.

I guess we'll end off with a lesson:

*ALWAYS END YOUR (CODE) STATEMENTS!*

0 comments on commit 67e9c21

Please sign in to comment.