Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: correct the example of fonts #984

Merged
merged 3 commits into from
Oct 27, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion exampleSite/content/docs/look-and-feel/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ You can use other web fonts easily, such as [Google Fonts](https://fonts.google.
First of all, we import the font, and then override the `body-font-family` variable in `assets/main/scss/_custom.scss`:

```scss {title="assets/main/scss/_custom.scss"}
@import 'https://fonts.googleapis.com/css2?family=Roboto&display=swap';
@import url('https://fonts.googleapis.com/css2?family=Roboto&display=swap');
:root {
--#{$prefix}body-font-family: 'Roboto', sans-serif;
}
Expand Down
2 changes: 1 addition & 1 deletion exampleSite/content/docs/look-and-feel/index.zh-hans.md
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ $palette-blue: darkblue;
首先,我们导入字体,然后在 `assets/main/scss/_custom.scss` 覆盖 `body-font-family` 变量:

```scss {title="assets/main/scss/_custom.scss"}
@import 'https://fonts.googleapis.com/css2?family=Roboto&display=swap';
@import url('https://fonts.googleapis.com/css2?family=Roboto&display=swap');
:root {
--#{$prefix}body-font-family: 'Roboto', sans-serif;
}
Expand Down
2 changes: 1 addition & 1 deletion exampleSite/content/docs/look-and-feel/index.zh-hant.md
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ $palette-blue: darkblue;
首先,我們導入字體,然後在 `assets/main/scss/_custom.scss` 覆蓋 `body-font-family` 變量:

```scss {title="assets/main/scss/_custom.scss"}
@import 'https://fonts.googleapis.com/css2?family=Roboto&display=swap';
@import url('https://fonts.googleapis.com/css2?family=Roboto&display=swap');
:root {
--#{$prefix}body-font-family: 'Roboto', sans-serif;
}
Expand Down