Skip to content

Commit

Permalink
fix: import issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Max D committed Nov 17, 2024
1 parent e085fb9 commit cf1c40d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions posts/how_to_use_google_font.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,13 @@ The benefits of using Google Font are:
Go to [Google Fonts](https://fonts.google.com/?preview.text=Arcane%20Tome).
Type what you want to display in the textarea, and find the font you like. For example, I choose [Grenze](https://fonts.google.com/?preview.text=Arcane%20Tome&query=Grenze). It's a serif font, a little vintage style, I think it's suitable for my blog.

![google front](/static/posts/google_font_01.png)
![google front](/posts/google_font_01.png)

### Step 2: Add the font to your project

Click the "Get font" button, and select "Get embed code". You can select what styles do you want to use, and copy the code. In my fresh project, I put the codes in `_layout.tsx` like this:

![google front](/static/posts/google_font_02.png)
![google front](/posts/google_font_02.png)

```tsx
import { type PageProps } from "$fresh/server.ts";
Expand Down

0 comments on commit cf1c40d

Please sign in to comment.