diff --git a/exampleSite/content/docs/guide/configuration.fa.md b/exampleSite/content/docs/guide/configuration.fa.md index 580eb0d..56dd74b 100644 --- a/exampleSite/content/docs/guide/configuration.fa.md +++ b/exampleSite/content/docs/guide/configuration.fa.md @@ -64,6 +64,12 @@ menu: params: icon: github ``` +5. تبديل السمة + ```yaml + - name: Theme Toggle + params: + type: theme-toggle + ``` این آیتمهای منو را میتوان با تنظیم پارامتر `weight` مرتب کرد. diff --git a/exampleSite/content/docs/guide/configuration.ja.md b/exampleSite/content/docs/guide/configuration.ja.md index 4a26143..b34e1c6 100644 --- a/exampleSite/content/docs/guide/configuration.ja.md +++ b/exampleSite/content/docs/guide/configuration.ja.md @@ -64,6 +64,12 @@ menu: params: icon: github ``` +5. テーマ切り替え + ```yaml + - name: Theme Toggle + params: + type: theme-toggle + ``` これらのメニュー項目は `weight` パラメータを設定することで並べ替えられます。 diff --git a/exampleSite/content/docs/guide/configuration.md b/exampleSite/content/docs/guide/configuration.md index 85d758c..a452c33 100644 --- a/exampleSite/content/docs/guide/configuration.md +++ b/exampleSite/content/docs/guide/configuration.md @@ -64,6 +64,12 @@ There are different types of menu items: params: icon: github ``` +5. Theme Toggle + ```yaml + - name: Theme Toggle + params: + type: theme-toggle + ``` These menu items can be sorted by setting the `weight` parameter. diff --git a/exampleSite/content/docs/guide/configuration.zh-cn.md b/exampleSite/content/docs/guide/configuration.zh-cn.md index 0796b91..02b4f9f 100644 --- a/exampleSite/content/docs/guide/configuration.zh-cn.md +++ b/exampleSite/content/docs/guide/configuration.zh-cn.md @@ -64,6 +64,12 @@ menu: params: icon: github ``` +5. 主题切换 + ```yaml + - name: Theme Toggle + params: + type: theme-toggle + ``` 通过设置 `weight` 参数可以调整菜单项的排序。 diff --git a/layouts/_partials/navbar.html b/layouts/_partials/navbar.html index 007768c..c69b8ae 100644 --- a/layouts/_partials/navbar.html +++ b/layouts/_partials/navbar.html @@ -7,6 +7,7 @@ {{ end -}} {{- end -}} +{{- $iconHeight := 24 -}}