mirror of
https://github.com/imfing/hextra.git
synced 2025-07-01 10:37:23 -04:00
Compare commits
3 Commits
main
...
codex/impl
Author | SHA1 | Date | |
---|---|---|---|
54032eb238 | |||
cf4d334da3 | |||
43c930f1ac |
File diff suppressed because one or more lines are too long
@ -1,20 +1,50 @@
|
|||||||
document.querySelectorAll('.hextra-tabs-toggle').forEach(function (button) {
|
(function () {
|
||||||
button.addEventListener('click', function (e) {
|
function updateGroup(container, index) {
|
||||||
// set parent tabs to unselected
|
const tabs = Array.from(container.querySelectorAll('.hextra-tabs-toggle'));
|
||||||
const tabs = Array.from(e.target.parentElement.querySelectorAll('.hextra-tabs-toggle'));
|
tabs.forEach((tab, i) => {
|
||||||
tabs.map(tab => tab.dataset.state = '');
|
tab.dataset.state = i === index ? 'selected' : '';
|
||||||
|
if (i === index) {
|
||||||
// set current tab to selected
|
tab.setAttribute('aria-selected', 'true');
|
||||||
e.target.dataset.state = 'selected';
|
tab.tabIndex = 0;
|
||||||
|
} else {
|
||||||
// set all panels to unselected
|
tab.removeAttribute('aria-selected');
|
||||||
const panelsContainer = e.target.parentElement.parentElement.nextElementSibling;
|
tab.removeAttribute('tabindex');
|
||||||
Array.from(panelsContainer.children).forEach(function (panel) {
|
}
|
||||||
panel.dataset.state = '';
|
|
||||||
});
|
});
|
||||||
|
const panelsContainer = container.parentElement.nextElementSibling;
|
||||||
|
Array.from(panelsContainer.children).forEach((panel, i) => {
|
||||||
|
panel.dataset.state = i === index ? 'selected' : '';
|
||||||
|
if (i === index) {
|
||||||
|
panel.tabIndex = 0;
|
||||||
|
} else {
|
||||||
|
panel.removeAttribute('tabindex');
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
const panelId = e.target.getAttribute('aria-controls');
|
const groups = document.querySelectorAll('[data-tab-group]');
|
||||||
const panel = panelsContainer.querySelector(`#${panelId}`);
|
|
||||||
panel.dataset.state = 'selected';
|
groups.forEach((group) => {
|
||||||
|
const key = group.dataset.tabGroup;
|
||||||
|
const saved = localStorage.getItem('hextra-tab-' + key);
|
||||||
|
if (saved !== null) {
|
||||||
|
updateGroup(group, parseInt(saved, 10));
|
||||||
|
}
|
||||||
});
|
});
|
||||||
});
|
|
||||||
|
document.querySelectorAll('.hextra-tabs-toggle').forEach((button) => {
|
||||||
|
button.addEventListener('click', function (e) {
|
||||||
|
const container = e.target.parentElement;
|
||||||
|
const index = Array.from(container.querySelectorAll('.hextra-tabs-toggle')).indexOf(
|
||||||
|
e.target
|
||||||
|
);
|
||||||
|
const key = container.dataset.tabGroup;
|
||||||
|
document
|
||||||
|
.querySelectorAll('[data-tab-group="' + key + '"]')
|
||||||
|
.forEach((grp) => updateGroup(grp, index));
|
||||||
|
if (key) {
|
||||||
|
localStorage.setItem('hextra-tab-' + key, index.toString());
|
||||||
|
}
|
||||||
|
});
|
||||||
|
});
|
||||||
|
})();
|
||||||
|
2
dev.toml
2
dev.toml
@ -1,5 +1,5 @@
|
|||||||
# Theme development config for exampleSite
|
# Theme development config for exampleSite
|
||||||
# https://gohugo.io/configuration/build/#cache-busters
|
# https://gohugo.io/getting-started/configuration/#configure-cache-busters
|
||||||
[build]
|
[build]
|
||||||
[build.buildStats]
|
[build.buildStats]
|
||||||
enable = true
|
enable = true
|
||||||
|
@ -4,10 +4,6 @@ date: 2020-01-01
|
|||||||
authors:
|
authors:
|
||||||
- name: John Doe
|
- name: John Doe
|
||||||
link: https://example.com/johndoe
|
link: https://example.com/johndoe
|
||||||
tags:
|
|
||||||
- Markdown
|
|
||||||
- 示例
|
|
||||||
- 指南
|
|
||||||
excludeSearch: true
|
excludeSearch: true
|
||||||
---
|
---
|
||||||
|
|
||||||
|
@ -1,9 +1,6 @@
|
|||||||
---
|
---
|
||||||
title: شروع کنید
|
title: شروع کنید
|
||||||
weight: 1
|
weight: 1
|
||||||
tags:
|
|
||||||
- مستندات
|
|
||||||
- راهنما
|
|
||||||
next: /docs/guide
|
next: /docs/guide
|
||||||
prev: /docs
|
prev: /docs
|
||||||
---
|
---
|
||||||
|
@ -1,9 +1,6 @@
|
|||||||
---
|
---
|
||||||
title: はじめに
|
title: はじめに
|
||||||
weight: 1
|
weight: 1
|
||||||
tags:
|
|
||||||
- ドキュメント
|
|
||||||
- ガイド
|
|
||||||
next: /docs/guide
|
next: /docs/guide
|
||||||
prev: /docs
|
prev: /docs
|
||||||
---
|
---
|
||||||
|
@ -1,9 +1,6 @@
|
|||||||
---
|
---
|
||||||
title: Getting Started
|
title: Getting Started
|
||||||
weight: 1
|
weight: 1
|
||||||
tags:
|
|
||||||
- Docs
|
|
||||||
- Guide
|
|
||||||
next: /docs/guide
|
next: /docs/guide
|
||||||
prev: /docs
|
prev: /docs
|
||||||
---
|
---
|
||||||
|
@ -1,9 +1,6 @@
|
|||||||
---
|
---
|
||||||
title: 入门指南
|
title: 入门指南
|
||||||
weight: 1
|
weight: 1
|
||||||
tags:
|
|
||||||
- 文档
|
|
||||||
- 指南
|
|
||||||
next: /docs/guide
|
next: /docs/guide
|
||||||
prev: /docs
|
prev: /docs
|
||||||
---
|
---
|
||||||
|
@ -212,19 +212,6 @@ params:
|
|||||||
پارامتر `theme.displayToggle` به شما این امکان را میدهد که یک دکمه جابجایی برای تغییر حالت تمها نمایش دهید.
|
پارامتر `theme.displayToggle` به شما این امکان را میدهد که یک دکمه جابجایی برای تغییر حالت تمها نمایش دهید.
|
||||||
وقتی روی `true` تنظیم شود، بازدیدکنندگان میتوانند بین حالت روشن یا تیره جابهجا شوند و تنظیمات پیشفرض را نادیده بگیرند.
|
وقتی روی `true` تنظیم شود، بازدیدکنندگان میتوانند بین حالت روشن یا تیره جابهجا شوند و تنظیمات پیشفرض را نادیده بگیرند.
|
||||||
|
|
||||||
### برچسبها
|
|
||||||
|
|
||||||
برای نمایش برچسبهای صفحه، گزینههای زیر را در فایل پیکربندی تنظیم کنید:
|
|
||||||
|
|
||||||
```yaml {filename="hugo.yaml"}
|
|
||||||
params:
|
|
||||||
blog:
|
|
||||||
list:
|
|
||||||
displayTags: true
|
|
||||||
toc:
|
|
||||||
displayTags: true
|
|
||||||
```
|
|
||||||
|
|
||||||
### عرض صفحه
|
### عرض صفحه
|
||||||
|
|
||||||
عرض صفحه را میتوان با پارامتر `params.page.width` در پرونده پیکربندی سفارشی کرد:
|
عرض صفحه را میتوان با پارامتر `params.page.width` در پرونده پیکربندی سفارشی کرد:
|
||||||
|
@ -212,19 +212,6 @@ params:
|
|||||||
`theme.displayToggle`パラメータを使用して、テーマを変更するためのトグルボタンを表示できます。
|
`theme.displayToggle`パラメータを使用して、テーマを変更するためのトグルボタンを表示できます。
|
||||||
`true`に設定すると、訪問者はデフォルト設定を上書きしてライトモードとダークモードを切り替えることができます。
|
`true`に設定すると、訪問者はデフォルト設定を上書きしてライトモードとダークモードを切り替えることができます。
|
||||||
|
|
||||||
### タグ
|
|
||||||
|
|
||||||
ページのタグを表示するには、設定ファイルで次のフラグを設定してください:
|
|
||||||
|
|
||||||
```yaml {filename="hugo.yaml"}
|
|
||||||
params:
|
|
||||||
blog:
|
|
||||||
list:
|
|
||||||
displayTags: true
|
|
||||||
toc:
|
|
||||||
displayTags: true
|
|
||||||
```
|
|
||||||
|
|
||||||
### ページ幅
|
### ページ幅
|
||||||
|
|
||||||
ページの幅は、設定ファイルの`params.page.width`パラメータでカスタマイズできます:
|
ページの幅は、設定ファイルの`params.page.width`パラメータでカスタマイズできます:
|
||||||
|
@ -1,8 +1,6 @@
|
|||||||
---
|
---
|
||||||
title: Configuration
|
title: Configuration
|
||||||
weight: 2
|
weight: 2
|
||||||
tags:
|
|
||||||
- Config
|
|
||||||
---
|
---
|
||||||
|
|
||||||
Hugo reads its configuration from `hugo.yaml` in the root of your Hugo site.
|
Hugo reads its configuration from `hugo.yaml` in the root of your Hugo site.
|
||||||
@ -230,19 +228,6 @@ params:
|
|||||||
dateFormat: "January 2, 2006"
|
dateFormat: "January 2, 2006"
|
||||||
```
|
```
|
||||||
|
|
||||||
### Tags
|
|
||||||
|
|
||||||
To display page tags, set following flags in the config file:
|
|
||||||
|
|
||||||
```yaml {filename="hugo.yaml"}
|
|
||||||
params:
|
|
||||||
blog:
|
|
||||||
list:
|
|
||||||
displayTags: true
|
|
||||||
toc:
|
|
||||||
displayTags: true
|
|
||||||
```
|
|
||||||
|
|
||||||
### Page Width
|
### Page Width
|
||||||
|
|
||||||
The width of the page can be customized by the `params.page.width` parameter in the config file:
|
The width of the page can be customized by the `params.page.width` parameter in the config file:
|
||||||
@ -334,18 +319,3 @@ To exclude an entire directory, use the [`cascade`](https://gohugo.io/configurat
|
|||||||
> To block search crawlers, you can make a [`robots.txt` template](https://gohugo.io/templates/robots/).
|
> To block search crawlers, you can make a [`robots.txt` template](https://gohugo.io/templates/robots/).
|
||||||
> However, `robots.txt` instructions do not necessarily keep a page out of Google search results.
|
> However, `robots.txt` instructions do not necessarily keep a page out of Google search results.
|
||||||
|
|
||||||
### Open Graph
|
|
||||||
|
|
||||||
To add [Open Graph](https://ogp.me/) metadata to a page, add values in the frontmatter params.
|
|
||||||
|
|
||||||
As a page can have multiple `image` and `video` tags, place their values in an array.
|
|
||||||
Other Open Graph properties can have only one value.
|
|
||||||
For example, this page has an `og:image` tag (which configures an image to preview on social shares) and an `og:audio` tag.
|
|
||||||
|
|
||||||
```yaml {filename="content/docs/guide/configuration.md"}
|
|
||||||
title: "Configuration"
|
|
||||||
params:
|
|
||||||
images:
|
|
||||||
- "/img/config-image.jpg"
|
|
||||||
audio: "config-talk.mp3"
|
|
||||||
```
|
|
||||||
|
@ -212,19 +212,6 @@ params:
|
|||||||
`theme.displayToggle` 参数允许您显示一个切换按钮以更改主题。
|
`theme.displayToggle` 参数允许您显示一个切换按钮以更改主题。
|
||||||
当设置为 `true` 时,访问者可以在浅色或深色模式之间切换,覆盖默认设置。
|
当设置为 `true` 时,访问者可以在浅色或深色模式之间切换,覆盖默认设置。
|
||||||
|
|
||||||
### 标签
|
|
||||||
|
|
||||||
要显示页面标签,请在配置文件中设置以下标志:
|
|
||||||
|
|
||||||
```yaml {filename="hugo.yaml"}
|
|
||||||
params:
|
|
||||||
blog:
|
|
||||||
list:
|
|
||||||
displayTags: true
|
|
||||||
toc:
|
|
||||||
displayTags: true
|
|
||||||
```
|
|
||||||
|
|
||||||
### 页面宽度
|
### 页面宽度
|
||||||
|
|
||||||
页面的宽度可以通过配置文件中的 `params.page.width` 参数进行自定义:
|
页面的宽度可以通过配置文件中的 `params.page.width` 参数进行自定义:
|
||||||
|
@ -1,10 +1,22 @@
|
|||||||
---
|
---
|
||||||
title: "LaTeX"
|
title: "LaTeX"
|
||||||
weight: 4
|
weight: 4
|
||||||
|
math: true
|
||||||
---
|
---
|
||||||
|
|
||||||
به طور پیشفرض، \(\KaTeX\) برای رندر کردن عبارتهای ریاضی LaTeX استفاده میشود.
|
\(\KaTeX\) برای رندر کردن عبارتهای ریاضی LaTeX استفاده میشود. میتوان آن را در هر صفحه با تنظیم `math` روی `true` در قسمت بالای صفحه فعال کرد.
|
||||||
نیازی به فعالسازی دستی نیست، میتوانید فوراً از عبارتهای ریاضی LaTeX در محتوای مارکداون خود استفاده کنید.
|
|
||||||
|
<!--more-->
|
||||||
|
|
||||||
|
```yaml {filename="Markdown"}
|
||||||
|
---
|
||||||
|
title: "صفحه من با LaTeX"
|
||||||
|
math: true
|
||||||
|
---
|
||||||
|
|
||||||
|
```
|
||||||
|
|
||||||
|
وقتی فعال باشد، اسکریپتها، شیوهنامهها و فونتهای KaTeX به طور خودکار در سایت شما قرار میگیرند. میتوانید از عبارتهای ریاضی LaTeX در محتوای مارکداون خود استفاده کنید.
|
||||||
|
|
||||||
## مثال
|
## مثال
|
||||||
|
|
||||||
@ -28,46 +40,6 @@ $$F(\omega) = \int_{-\infty}^{\infty} f(t) e^{-j\omega t} \, dt$$
|
|||||||
|
|
||||||
$$F(\omega) = \int_{-\infty}^{\infty} f(t) e^{-j\omega t} \, dt$$
|
$$F(\omega) = \int_{-\infty}^{\infty} f(t) e^{-j\omega t} \, dt$$
|
||||||
|
|
||||||
به عنوان مثال، استفاده از محیط همترازی:
|
|
||||||
|
|
||||||
```latex {filename="page.md"}
|
|
||||||
$$
|
|
||||||
\begin{aligned}
|
|
||||||
\nabla \cdot \mathbf{E} &= \frac{\rho}{\varepsilon_0} \\
|
|
||||||
\nabla \cdot \mathbf{B} &= 0 \\
|
|
||||||
\nabla \times \mathbf{E} &= -\frac{\partial \mathbf{B}}{\partial t} \\
|
|
||||||
\nabla \times \mathbf{B} &= \mu_0 \left( \mathbf{J} + \varepsilon_0 \frac{\partial \mathbf{E}}{\partial t} \right)
|
|
||||||
\end{aligned}
|
|
||||||
$$
|
|
||||||
```
|
|
||||||
|
|
||||||
به صورت زیر رندر خواهد شد:
|
|
||||||
|
|
||||||
$$
|
|
||||||
\begin{aligned}
|
|
||||||
\nabla \cdot \mathbf{E} &= \frac{\rho}{\varepsilon_0} \\
|
|
||||||
\nabla \cdot \mathbf{B} &= 0 \\
|
|
||||||
\nabla \times \mathbf{E} &= -\frac{\partial \mathbf{B}}{\partial t} \\
|
|
||||||
\nabla \times \mathbf{B} &= \mu_0 \left( \mathbf{J} + \varepsilon_0 \frac{\partial \mathbf{E}}{\partial t} \right)
|
|
||||||
\end{aligned}
|
|
||||||
$$
|
|
||||||
|
|
||||||
|
|
||||||
## پیکربندی
|
|
||||||
|
|
||||||
> [!IMPORTANT]
|
|
||||||
> لطفاً [افزونه passthrough](https://gohugo.io/content-management/mathematics/) را در فایل پیکربندی Hugo فعال و پیکربندی کنید تا Hugo بتواند عبارتهای ریاضی LaTeX را در محتوای مارکداون شما تشخیص دهد.
|
|
||||||
|
|
||||||
```yaml {filename="hugo.yaml"}
|
|
||||||
markup:
|
|
||||||
goldmark:
|
|
||||||
extensions:
|
|
||||||
passthrough:
|
|
||||||
delimiters:
|
|
||||||
block: [['\[', '\]'], ["$$", "$$"]]
|
|
||||||
inline: [['\(', '\)']]
|
|
||||||
enable: true
|
|
||||||
```
|
|
||||||
|
|
||||||
## توابع پشتیبانی شده
|
## توابع پشتیبانی شده
|
||||||
|
|
||||||
@ -85,25 +57,4 @@ markup:
|
|||||||
$$\ce{Hg^2+ ->[I-] HgI2 ->[I-] [Hg^{II}I4]^2-}$$
|
$$\ce{Hg^2+ ->[I-] HgI2 ->[I-] [Hg^{II}I4]^2-}$$
|
||||||
```
|
```
|
||||||
|
|
||||||
به صورت زیر رندر خواهد شد:
|
|
||||||
|
|
||||||
$$\ce{Hg^2+ ->[I-] HgI2 ->[I-] [Hg^{II}I4]^2-}$$
|
$$\ce{Hg^2+ ->[I-] HgI2 ->[I-] [Hg^{II}I4]^2-}$$
|
||||||
|
|
||||||
|
|
||||||
## موتور ریاضی
|
|
||||||
|
|
||||||
### MathJax
|
|
||||||
|
|
||||||
به طور پیشفرض، [KaTeX][katex] برای رندر کردن عبارتهای ریاضی LaTeX در طول فرآیند ساخت استفاده میشود که روش ترجیحی است.
|
|
||||||
به عنوان جایگزین، میتوانید از [MathJax][mathjax] برای رندر کردن عبارتهای ریاضی استفاده کنید.
|
|
||||||
|
|
||||||
برای استفاده از آن، موارد زیر را به فایل پیکربندی `hugo.yaml` اضافه کنید:
|
|
||||||
|
|
||||||
```yaml {filename="hugo.yaml"}
|
|
||||||
params:
|
|
||||||
math:
|
|
||||||
engine: mathjax
|
|
||||||
```
|
|
||||||
|
|
||||||
[katex]: https://katex.org/
|
|
||||||
[mathjax]: https://www.mathjax.org/
|
|
||||||
|
@ -1,10 +1,22 @@
|
|||||||
---
|
---
|
||||||
title: "LaTeX"
|
title: "LaTeX"
|
||||||
weight: 4
|
weight: 4
|
||||||
|
math: true
|
||||||
---
|
---
|
||||||
|
|
||||||
デフォルトでは、\(\KaTeX\) が LaTeX 数式のレンダリングに使用されます。
|
\(\KaTeX\) は LaTeX の数式をレンダリングするために使用されます。ページのフロントマターで `math` を `true` に設定することで、ページごとに有効にすることができます。
|
||||||
手動での有効化は不要で、Markdown コンテンツで LaTeX 数式をすぐに使い始めることができます。
|
|
||||||
|
<!--more-->
|
||||||
|
|
||||||
|
```yaml {filename="page.md"}
|
||||||
|
---
|
||||||
|
title: "LaTeX を使用した私のページ"
|
||||||
|
math: true
|
||||||
|
---
|
||||||
|
|
||||||
|
```
|
||||||
|
|
||||||
|
有効にすると、KaTeX のスクリプト、スタイルシート、フォントが自動的にサイトに含まれます。Markdown コンテンツ内で LaTeX 数式を使用できます。
|
||||||
|
|
||||||
## 例
|
## 例
|
||||||
|
|
||||||
@ -28,6 +40,20 @@ $$F(\omega) = \int_{-\infty}^{\infty} f(t) e^{-j\omega t} \, dt$$
|
|||||||
|
|
||||||
$$F(\omega) = \int_{-\infty}^{\infty} f(t) e^{-j\omega t} \, dt$$
|
$$F(\omega) = \int_{-\infty}^{\infty} f(t) e^{-j\omega t} \, dt$$
|
||||||
|
|
||||||
|
> [!IMPORTANT]
|
||||||
|
> Hugo 設定ファイルで [パススルー拡張機能](https://gohugo.io/content-management/mathematics/) を有効にして設定してください。これにより、複雑な式のレンダリング問題を回避するために、デリミタ内の生のコンテンツが保持されます。
|
||||||
|
|
||||||
|
```yaml {filename="hugo.yaml"}
|
||||||
|
markup:
|
||||||
|
goldmark:
|
||||||
|
extensions:
|
||||||
|
passthrough:
|
||||||
|
delimiters:
|
||||||
|
block: [['\[', '\]'], ['$$', '$$']]
|
||||||
|
inline: [['\(', '\)']]
|
||||||
|
enable: true
|
||||||
|
```
|
||||||
|
|
||||||
例えば、aligned 環境を使用する場合:
|
例えば、aligned 環境を使用する場合:
|
||||||
|
|
||||||
```latex {filename="page.md"}
|
```latex {filename="page.md"}
|
||||||
@ -52,23 +78,6 @@ $$
|
|||||||
\end{aligned}
|
\end{aligned}
|
||||||
$$
|
$$
|
||||||
|
|
||||||
|
|
||||||
## 設定
|
|
||||||
|
|
||||||
> [!IMPORTANT]
|
|
||||||
> Hugo が Markdown コンテンツ内の LaTeX 数式を検出できるように、Hugo 設定ファイルで [パススルー拡張機能](https://gohugo.io/content-management/mathematics/) を有効にして設定してください。
|
|
||||||
|
|
||||||
```yaml {filename="hugo.yaml"}
|
|
||||||
markup:
|
|
||||||
goldmark:
|
|
||||||
extensions:
|
|
||||||
passthrough:
|
|
||||||
delimiters:
|
|
||||||
block: [['\[', '\]'], ["$$", "$$"]]
|
|
||||||
inline: [['\(', '\)']]
|
|
||||||
enable: true
|
|
||||||
```
|
|
||||||
|
|
||||||
## サポートされている関数
|
## サポートされている関数
|
||||||
|
|
||||||
サポートされている関数の一覧については、[KaTeX サポートされている関数](https://katex.org/docs/supported.html) を参照してください。
|
サポートされている関数の一覧については、[KaTeX サポートされている関数](https://katex.org/docs/supported.html) を参照してください。
|
||||||
@ -85,25 +94,4 @@ markup:
|
|||||||
$$\ce{Hg^2+ ->[I-] HgI2 ->[I-] [Hg^{II}I4]^2-}$$
|
$$\ce{Hg^2+ ->[I-] HgI2 ->[I-] [Hg^{II}I4]^2-}$$
|
||||||
```
|
```
|
||||||
|
|
||||||
次のようにレンダリングされます:
|
$$\ce{Hg^2+ ->[I-] HgI2 ->[I-] [Hg^{II}I4]^2-}$$
|
||||||
|
|
||||||
$$\ce{Hg^2+ ->[I-] HgI2 ->[I-] [Hg^{II}I4]^2-}$$
|
|
||||||
|
|
||||||
|
|
||||||
## 数式エンジン
|
|
||||||
|
|
||||||
### MathJax
|
|
||||||
|
|
||||||
デフォルトでは、ビルドプロセス中に LaTeX 数式をレンダリングするために [KaTeX][katex] が使用されます(推奨)。
|
|
||||||
代替として、[MathJax][mathjax] を使用して数式をレンダリングすることもできます。
|
|
||||||
|
|
||||||
MathJax を使用するには、`hugo.yaml` 設定ファイルに以下を追加してください:
|
|
||||||
|
|
||||||
```yaml {filename="hugo.yaml"}
|
|
||||||
params:
|
|
||||||
math:
|
|
||||||
engine: mathjax
|
|
||||||
```
|
|
||||||
|
|
||||||
[katex]: https://katex.org/
|
|
||||||
[mathjax]: https://www.mathjax.org/
|
|
@ -1,10 +1,9 @@
|
|||||||
---
|
---
|
||||||
title: "LaTeX"
|
title: "LaTeX"
|
||||||
weight: 4
|
weight: 4
|
||||||
|
math: true
|
||||||
---
|
---
|
||||||
|
\(\KaTeX\) is used for rendering LaTeX math expressions. No manual activation is needed, you can start using LaTeX math expressions in your Markdown content right away.
|
||||||
By default, \(\KaTeX\) is used for rendering LaTeX math expressions.
|
|
||||||
No manual activation is needed, you can start using LaTeX math expressions in your Markdown content right away.
|
|
||||||
|
|
||||||
## Example
|
## Example
|
||||||
|
|
||||||
@ -16,7 +15,7 @@ Both inline and separate paragraph LaTeX math expressions are supported in the M
|
|||||||
This \(\sigma(z) = \frac{1}{1 + e^{-z}}\) is inline.
|
This \(\sigma(z) = \frac{1}{1 + e^{-z}}\) is inline.
|
||||||
```
|
```
|
||||||
|
|
||||||
This \( \sigma(z) = \frac{1}{1 + e^{-z}} \) is inline.
|
This \(\sigma(z) = \frac{1}{1 + e^{-z}}\) is inline.
|
||||||
|
|
||||||
### Separate Paragraph
|
### Separate Paragraph
|
||||||
|
|
||||||
@ -26,7 +25,21 @@ $$F(\omega) = \int_{-\infty}^{\infty} f(t) e^{-j\omega t} \, dt$$
|
|||||||
|
|
||||||
will be rendered as:
|
will be rendered as:
|
||||||
|
|
||||||
$$F(\omega) = \int\_{-\infty}^{\infty} f(t) e^{-j\omega t} \, dt$$
|
$$F(\omega) = \int_{-\infty}^{\infty} f(t) e^{-j\omega t} \, dt$$
|
||||||
|
|
||||||
|
> [!IMPORTANT]
|
||||||
|
> Please enable and configure the [passthrough extension](https://gohugo.io/content-management/mathematics/) in the Hugo configuration file. It preserves raw content within the delimiters to avoid rendering issues for complex expressions.
|
||||||
|
|
||||||
|
```yaml {filename="hugo.yaml"}
|
||||||
|
markup:
|
||||||
|
goldmark:
|
||||||
|
extensions:
|
||||||
|
passthrough:
|
||||||
|
delimiters:
|
||||||
|
block: [['\[', '\]'], ['$$', '$$']]
|
||||||
|
inline: [['\(', '\)']]
|
||||||
|
enable: true
|
||||||
|
```
|
||||||
|
|
||||||
For example, using the aligned environment:
|
For example, using the aligned environment:
|
||||||
|
|
||||||
@ -52,23 +65,6 @@ $$
|
|||||||
\end{aligned}
|
\end{aligned}
|
||||||
$$
|
$$
|
||||||
|
|
||||||
|
|
||||||
## Configuration
|
|
||||||
|
|
||||||
> [!IMPORTANT]
|
|
||||||
> Please enable and configure the [passthrough extension](https://gohugo.io/content-management/mathematics/) in the Hugo configuration file, so that Hugo can detect LaTeX math expressions in your Markdown content.
|
|
||||||
|
|
||||||
```yaml {filename="hugo.yaml"}
|
|
||||||
markup:
|
|
||||||
goldmark:
|
|
||||||
extensions:
|
|
||||||
passthrough:
|
|
||||||
delimiters:
|
|
||||||
block: [['\[', '\]'], ["$$", "$$"]]
|
|
||||||
inline: [['\(', '\)']]
|
|
||||||
enable: true
|
|
||||||
```
|
|
||||||
|
|
||||||
## Supported Functions
|
## Supported Functions
|
||||||
|
|
||||||
For a list of supported functions, see [KaTeX supported functions](https://katex.org/docs/supported.html).
|
For a list of supported functions, see [KaTeX supported functions](https://katex.org/docs/supported.html).
|
||||||
@ -85,25 +81,4 @@ Separate paragraph:
|
|||||||
$$\ce{Hg^2+ ->[I-] HgI2 ->[I-] [Hg^{II}I4]^2-}$$
|
$$\ce{Hg^2+ ->[I-] HgI2 ->[I-] [Hg^{II}I4]^2-}$$
|
||||||
```
|
```
|
||||||
|
|
||||||
will be rendered as:
|
|
||||||
|
|
||||||
$$\ce{Hg^2+ ->[I-] HgI2 ->[I-] [Hg^{II}I4]^2-}$$
|
$$\ce{Hg^2+ ->[I-] HgI2 ->[I-] [Hg^{II}I4]^2-}$$
|
||||||
|
|
||||||
|
|
||||||
## Math Engine
|
|
||||||
|
|
||||||
### MathJax
|
|
||||||
|
|
||||||
By default, [KaTeX][katex] is used for rendering LaTeX math expressions during the build process, which is preferred.
|
|
||||||
Alternatively, you can use [MathJax][mathjax] to render math expressions.
|
|
||||||
|
|
||||||
To use it instead, add the following to the configuration `hugo.yaml` file:
|
|
||||||
|
|
||||||
```yaml {filename="hugo.yaml"}
|
|
||||||
params:
|
|
||||||
math:
|
|
||||||
engine: mathjax
|
|
||||||
```
|
|
||||||
|
|
||||||
[katex]: https://katex.org/
|
|
||||||
[mathjax]: https://www.mathjax.org/
|
|
||||||
|
@ -4,8 +4,19 @@ weight: 4
|
|||||||
math: true
|
math: true
|
||||||
---
|
---
|
||||||
|
|
||||||
默认情况下,\(\KaTeX\) 用于渲染 LaTeX 数学表达式。
|
\(\KaTeX\) 用于渲染 LaTeX 数学表达式。可以通过在页面前置设置中将 `math` 设置为 `true` 来启用它。
|
||||||
无需手动激活,您可以直接在 Markdown 内容中开始使用 LaTeX 数学表达式。
|
|
||||||
|
<!--more-->
|
||||||
|
|
||||||
|
```yaml {filename="page.md"}
|
||||||
|
---
|
||||||
|
title: "我的页面包含 LaTeX"
|
||||||
|
math: true
|
||||||
|
---
|
||||||
|
|
||||||
|
```
|
||||||
|
|
||||||
|
启用后,KaTeX 的脚本、样式表和字体将自动包含在您的站点中。您可以在 Markdown 内容中开始使用 LaTeX 数学表达式。
|
||||||
|
|
||||||
## 示例
|
## 示例
|
||||||
|
|
||||||
@ -29,6 +40,20 @@ $$F(\omega) = \int_{-\infty}^{\infty} f(t) e^{-j\omega t} \, dt$$
|
|||||||
|
|
||||||
$$F(\omega) = \int_{-\infty}^{\infty} f(t) e^{-j\omega t} \, dt$$
|
$$F(\omega) = \int_{-\infty}^{\infty} f(t) e^{-j\omega t} \, dt$$
|
||||||
|
|
||||||
|
> [!IMPORTANT]
|
||||||
|
> 请在 Hugo 配置文件中启用并配置 [passthrough 扩展](https://gohugo.io/content-management/mathematics/)。它保留分隔符内的原始内容,以避免复杂表达式的渲染问题。
|
||||||
|
|
||||||
|
```yaml {filename="hugo.yaml"}
|
||||||
|
markup:
|
||||||
|
goldmark:
|
||||||
|
extensions:
|
||||||
|
passthrough:
|
||||||
|
delimiters:
|
||||||
|
block: [['\[', '\]'], ['$$', '$$']]
|
||||||
|
inline: [['\(', '\)']]
|
||||||
|
enable: true
|
||||||
|
```
|
||||||
|
|
||||||
例如,使用对齐环境:
|
例如,使用对齐环境:
|
||||||
|
|
||||||
```latex {filename="page.md"}
|
```latex {filename="page.md"}
|
||||||
@ -53,23 +78,6 @@ $$
|
|||||||
\end{aligned}
|
\end{aligned}
|
||||||
$$
|
$$
|
||||||
|
|
||||||
|
|
||||||
## 配置
|
|
||||||
|
|
||||||
> [!IMPORTANT]
|
|
||||||
> 请在 Hugo 配置文件中启用并配置 [passthrough 扩展](https://gohugo.io/content-management/mathematics/),以便 Hugo 可以检测 Markdown 内容中的 LaTeX 数学表达式。
|
|
||||||
|
|
||||||
```yaml {filename="hugo.yaml"}
|
|
||||||
markup:
|
|
||||||
goldmark:
|
|
||||||
extensions:
|
|
||||||
passthrough:
|
|
||||||
delimiters:
|
|
||||||
block: [['\[', '\]'], ["$$", "$$"]]
|
|
||||||
inline: [['\(', '\)']]
|
|
||||||
enable: true
|
|
||||||
```
|
|
||||||
|
|
||||||
## 支持的函数
|
## 支持的函数
|
||||||
|
|
||||||
有关支持的函数列表,请参阅 [KaTeX 支持的函数](https://katex.org/docs/supported.html)。
|
有关支持的函数列表,请参阅 [KaTeX 支持的函数](https://katex.org/docs/supported.html)。
|
||||||
@ -86,25 +94,4 @@ markup:
|
|||||||
$$\ce{Hg^2+ ->[I-] HgI2 ->[I-] [Hg^{II}I4]^2-}$$
|
$$\ce{Hg^2+ ->[I-] HgI2 ->[I-] [Hg^{II}I4]^2-}$$
|
||||||
```
|
```
|
||||||
|
|
||||||
将渲染为:
|
|
||||||
|
|
||||||
$$\ce{Hg^2+ ->[I-] HgI2 ->[I-] [Hg^{II}I4]^2-}$$
|
$$\ce{Hg^2+ ->[I-] HgI2 ->[I-] [Hg^{II}I4]^2-}$$
|
||||||
|
|
||||||
|
|
||||||
## 数学引擎
|
|
||||||
|
|
||||||
### MathJax
|
|
||||||
|
|
||||||
默认情况下,使用 [KaTeX][katex] 在构建过程中渲染 LaTeX 数学表达式,这是首选方式。
|
|
||||||
或者,您可以使用 [MathJax][mathjax] 来渲染数学表达式。
|
|
||||||
|
|
||||||
要使用 MathJax,请将以下内容添加到 `hugo.yaml` 配置文件中:
|
|
||||||
|
|
||||||
```yaml {filename="hugo.yaml"}
|
|
||||||
params:
|
|
||||||
math:
|
|
||||||
engine: mathjax
|
|
||||||
```
|
|
||||||
|
|
||||||
[katex]: https://katex.org/
|
|
||||||
[mathjax]: https://www.mathjax.org/
|
|
||||||
|
@ -13,6 +13,33 @@ next: /docs/guide/deploy-site
|
|||||||
|
|
||||||
{{< /tabs >}}
|
{{< /tabs >}}
|
||||||
|
|
||||||
|
### Sync Tabs
|
||||||
|
|
||||||
|
Tabs with the same list of `items` can be synchronized. When enabled, selecting a tab updates all other tabs with the same `items` and remembers the selection across pages.
|
||||||
|
|
||||||
|
Enable globally in your `hugo.yaml` under the `page` section:
|
||||||
|
|
||||||
|
```yaml {filename="hugo.yaml"}
|
||||||
|
params:
|
||||||
|
page:
|
||||||
|
tabs:
|
||||||
|
sync: true
|
||||||
|
```
|
||||||
|
|
||||||
|
With this enabled the following two tab blocks will always display the same selected item:
|
||||||
|
|
||||||
|
```markdown
|
||||||
|
{{</* tabs items="A,B" */>}}
|
||||||
|
{{</* tab */>}}A content{{</* /tab */>}}
|
||||||
|
{{</* tab */>}}B content{{</* /tab */>}}
|
||||||
|
{{</* /tabs */>}}
|
||||||
|
|
||||||
|
{{</* tabs items="A,B" */>}}
|
||||||
|
{{</* tab */>}}Second A content{{</* /tab */>}}
|
||||||
|
{{</* tab */>}}Second B content{{</* /tab */>}}
|
||||||
|
{{</* /tabs */>}}
|
||||||
|
```
|
||||||
|
|
||||||
## Usage
|
## Usage
|
||||||
|
|
||||||
### Default
|
### Default
|
||||||
|
@ -58,7 +58,7 @@ markup:
|
|||||||
extensions:
|
extensions:
|
||||||
passthrough:
|
passthrough:
|
||||||
delimiters:
|
delimiters:
|
||||||
block: [['\[', '\]'], ['$$', '$$']]
|
block: [['\[', '\]'], ["$$", "$$"]]
|
||||||
inline: [['\(', '\)']]
|
inline: [['\(', '\)']]
|
||||||
enable: true
|
enable: true
|
||||||
|
|
||||||
@ -132,10 +132,6 @@ params:
|
|||||||
# link: /
|
# link: /
|
||||||
width: wide
|
width: wide
|
||||||
|
|
||||||
page:
|
|
||||||
# full (100%), wide (90rem), normal (80rem)
|
|
||||||
width: normal
|
|
||||||
|
|
||||||
theme:
|
theme:
|
||||||
# light | dark | system
|
# light | dark | system
|
||||||
default: system
|
default: system
|
||||||
@ -178,15 +174,18 @@ params:
|
|||||||
article:
|
article:
|
||||||
displayPagination: true
|
displayPagination: true
|
||||||
|
|
||||||
toc:
|
|
||||||
displayTags: true
|
|
||||||
|
|
||||||
highlight:
|
highlight:
|
||||||
copy:
|
copy:
|
||||||
enable: true
|
enable: true
|
||||||
# hover | always
|
# hover | always
|
||||||
display: hover
|
display: hover
|
||||||
|
|
||||||
|
page:
|
||||||
|
# full (100%), wide (90rem), normal (80rem)
|
||||||
|
width: normal
|
||||||
|
tabs:
|
||||||
|
sync: true
|
||||||
|
|
||||||
comments:
|
comments:
|
||||||
enable: false
|
enable: false
|
||||||
type: giscus
|
type: giscus
|
||||||
|
@ -9,7 +9,6 @@ lastUpdated: "Naposledy změněno"
|
|||||||
light: "Světlý"
|
light: "Světlý"
|
||||||
noResultsFound: "Nebylo nic nalezeno."
|
noResultsFound: "Nebylo nic nalezeno."
|
||||||
onThisPage: "Na této stránce"
|
onThisPage: "Na této stránce"
|
||||||
tags: "Tagy"
|
|
||||||
poweredBy: "Powered by Hextra"
|
poweredBy: "Powered by Hextra"
|
||||||
readMore: "Přečíst víc →"
|
readMore: "Přečíst víc →"
|
||||||
searchPlaceholder: "Hledat..."
|
searchPlaceholder: "Hledat..."
|
||||||
|
@ -9,7 +9,6 @@ lastUpdated: "Zuletzt aktualisiert am"
|
|||||||
light: "Hell"
|
light: "Hell"
|
||||||
noResultsFound: "Keine Ergebnisse gefunden."
|
noResultsFound: "Keine Ergebnisse gefunden."
|
||||||
onThisPage: "Auf dieser Seite"
|
onThisPage: "Auf dieser Seite"
|
||||||
tags: "Schlagwörter"
|
|
||||||
poweredBy: "Unterstützt durch Hextra"
|
poweredBy: "Unterstützt durch Hextra"
|
||||||
readMore: "Mehr lesen →"
|
readMore: "Mehr lesen →"
|
||||||
searchPlaceholder: "Suchen..."
|
searchPlaceholder: "Suchen..."
|
||||||
|
@ -9,7 +9,6 @@ lastUpdated: "Last updated on"
|
|||||||
light: "Light"
|
light: "Light"
|
||||||
noResultsFound: "No results found."
|
noResultsFound: "No results found."
|
||||||
onThisPage: "On this page"
|
onThisPage: "On this page"
|
||||||
tags: "Tags"
|
|
||||||
poweredBy: "Powered by Hextra"
|
poweredBy: "Powered by Hextra"
|
||||||
readMore: "Read more →"
|
readMore: "Read more →"
|
||||||
searchPlaceholder: "Search..."
|
searchPlaceholder: "Search..."
|
||||||
|
@ -8,7 +8,6 @@ lastUpdated: "Última actualización"
|
|||||||
light: "Claro"
|
light: "Claro"
|
||||||
noResultsFound: "No hubo resultados."
|
noResultsFound: "No hubo resultados."
|
||||||
onThisPage: "En esta página"
|
onThisPage: "En esta página"
|
||||||
tags: "Etiquetas"
|
|
||||||
poweredBy: "Con tecnología de Hextra"
|
poweredBy: "Con tecnología de Hextra"
|
||||||
readMore: "Leer más →"
|
readMore: "Leer más →"
|
||||||
searchPlaceholder: "Buscar..."
|
searchPlaceholder: "Buscar..."
|
||||||
|
@ -9,7 +9,6 @@ lastUpdated: "آخرین بهروزرسانی در"
|
|||||||
light: "روشن"
|
light: "روشن"
|
||||||
noResultsFound: "هیچ نتیجهای پیدا نشد."
|
noResultsFound: "هیچ نتیجهای پیدا نشد."
|
||||||
onThisPage: "در این صفحه"
|
onThisPage: "در این صفحه"
|
||||||
tags: "برچسبها"
|
|
||||||
poweredBy: "طراحی شده توسط هگزترا"
|
poweredBy: "طراحی شده توسط هگزترا"
|
||||||
readMore: "ادامه مطلب ←"
|
readMore: "ادامه مطلب ←"
|
||||||
searchPlaceholder: "جستجو..."
|
searchPlaceholder: "جستجو..."
|
||||||
|
@ -8,7 +8,6 @@ lastUpdated: "Dernière modification"
|
|||||||
light: "Clair"
|
light: "Clair"
|
||||||
noResultsFound: "Pas de résultats trouvés"
|
noResultsFound: "Pas de résultats trouvés"
|
||||||
onThisPage: "Sur cette page"
|
onThisPage: "Sur cette page"
|
||||||
tags: "Étiquettes"
|
|
||||||
poweredBy: "Propulsé par Hextra"
|
poweredBy: "Propulsé par Hextra"
|
||||||
readMore: "Lire plus →"
|
readMore: "Lire plus →"
|
||||||
searchPlaceholder: "Rechercher..."
|
searchPlaceholder: "Rechercher..."
|
||||||
|
@ -9,7 +9,6 @@ lastUpdated: "עודכן לאחרונה ב"
|
|||||||
light: "בהיר"
|
light: "בהיר"
|
||||||
noResultsFound: "לא נמצאו תוצאות."
|
noResultsFound: "לא נמצאו תוצאות."
|
||||||
onThisPage: "בעמוד זה"
|
onThisPage: "בעמוד זה"
|
||||||
tags: "תגיות"
|
|
||||||
poweredBy: "Hextra מופעל על-ידי"
|
poweredBy: "Hextra מופעל על-ידי"
|
||||||
readMore: "← קרא עוד"
|
readMore: "← קרא עוד"
|
||||||
searchPlaceholder: "חיפוש..."
|
searchPlaceholder: "חיפוש..."
|
||||||
|
@ -8,7 +8,6 @@ lastUpdated: "最終更新日"
|
|||||||
light: "ライト"
|
light: "ライト"
|
||||||
noResultsFound: "結果が見つかりませんでした。"
|
noResultsFound: "結果が見つかりませんでした。"
|
||||||
onThisPage: "このページの内容"
|
onThisPage: "このページの内容"
|
||||||
tags: "タグ"
|
|
||||||
poweredBy: "提供元 Hextra"
|
poweredBy: "提供元 Hextra"
|
||||||
readMore: "もっと読む →"
|
readMore: "もっと読む →"
|
||||||
searchPlaceholder: "検索..."
|
searchPlaceholder: "検索..."
|
||||||
|
@ -8,7 +8,6 @@ lastUpdated: "마지막 수정일자"
|
|||||||
light: "밝은 테마"
|
light: "밝은 테마"
|
||||||
noResultsFound: "결과 없음"
|
noResultsFound: "결과 없음"
|
||||||
onThisPage: "페이지 목차"
|
onThisPage: "페이지 목차"
|
||||||
tags: "태그"
|
|
||||||
poweredBy: "제공 Hextra"
|
poweredBy: "제공 Hextra"
|
||||||
readMore: "더보기 →"
|
readMore: "더보기 →"
|
||||||
searchPlaceholder: "검색..."
|
searchPlaceholder: "검색..."
|
||||||
|
@ -8,7 +8,6 @@ lastUpdated: "Sist oppdatert"
|
|||||||
light: "Lys"
|
light: "Lys"
|
||||||
noResultsFound: "Fant ingen treff."
|
noResultsFound: "Fant ingen treff."
|
||||||
onThisPage: "På denne siden"
|
onThisPage: "På denne siden"
|
||||||
tags: "Stikkord"
|
|
||||||
poweredBy: "Powered by Hextra"
|
poweredBy: "Powered by Hextra"
|
||||||
readMore: "Les mer →"
|
readMore: "Les mer →"
|
||||||
searchPlaceholder: "Søk..."
|
searchPlaceholder: "Søk..."
|
||||||
|
@ -9,7 +9,6 @@ lastUpdated: "Laatst bijgewerkt op"
|
|||||||
light: "Licht"
|
light: "Licht"
|
||||||
noResultsFound: "Geen resultaten gevonden."
|
noResultsFound: "Geen resultaten gevonden."
|
||||||
onThisPage: "Op deze pagina"
|
onThisPage: "Op deze pagina"
|
||||||
tags: "Labels"
|
|
||||||
poweredBy: "Mogelijk gemaakt door Hextra"
|
poweredBy: "Mogelijk gemaakt door Hextra"
|
||||||
readMore: "Lees meer →"
|
readMore: "Lees meer →"
|
||||||
searchPlaceholder: "Zoeken..."
|
searchPlaceholder: "Zoeken..."
|
||||||
|
@ -8,7 +8,6 @@ lastUpdated: "Sist oppdatert"
|
|||||||
light: "Ljos"
|
light: "Ljos"
|
||||||
noResultsFound: "Fann ingen treff."
|
noResultsFound: "Fann ingen treff."
|
||||||
onThisPage: "På denne sida"
|
onThisPage: "På denne sida"
|
||||||
tags: "Stikkord"
|
|
||||||
poweredBy: "Powered by Hextra"
|
poweredBy: "Powered by Hextra"
|
||||||
readMore: "Les meir →"
|
readMore: "Les meir →"
|
||||||
searchPlaceholder: "Søk..."
|
searchPlaceholder: "Søk..."
|
||||||
|
@ -8,7 +8,6 @@ lastUpdated: "Última modificação"
|
|||||||
light: "Claro"
|
light: "Claro"
|
||||||
noResultsFound: "Nenhum resultado encontrado"
|
noResultsFound: "Nenhum resultado encontrado"
|
||||||
onThisPage: "Nesta página"
|
onThisPage: "Nesta página"
|
||||||
tags: "Etiquetas"
|
|
||||||
poweredBy: "Com a tecnologia de Hextra"
|
poweredBy: "Com a tecnologia de Hextra"
|
||||||
readMore: "Ler mais →"
|
readMore: "Ler mais →"
|
||||||
searchPlaceholder: "Procurar..."
|
searchPlaceholder: "Procurar..."
|
||||||
|
@ -9,7 +9,6 @@ lastUpdated: "Ultima actualizare la"
|
|||||||
light: "Lumină"
|
light: "Lumină"
|
||||||
noResultsFound: "Nici un rezultat găsit."
|
noResultsFound: "Nici un rezultat găsit."
|
||||||
onThisPage: "Pe această pagină"
|
onThisPage: "Pe această pagină"
|
||||||
tags: "Etichete"
|
|
||||||
poweredBy: "Susținut de Hextra"
|
poweredBy: "Susținut de Hextra"
|
||||||
readMore: "Citește mai mult ←"
|
readMore: "Citește mai mult ←"
|
||||||
searchPlaceholder: "Caută..."
|
searchPlaceholder: "Caută..."
|
||||||
|
@ -9,7 +9,6 @@ lastUpdated: 'Последнее обновление'
|
|||||||
light: 'Светлая'
|
light: 'Светлая'
|
||||||
noResultsFound: 'Ничего не найдено.'
|
noResultsFound: 'Ничего не найдено.'
|
||||||
onThisPage: 'На этой странице'
|
onThisPage: 'На этой странице'
|
||||||
tags: 'Теги'
|
|
||||||
poweredBy: 'При поддержке Hextra'
|
poweredBy: 'При поддержке Hextra'
|
||||||
readMore: 'Читать далее →'
|
readMore: 'Читать далее →'
|
||||||
searchPlaceholder: 'Поиск...'
|
searchPlaceholder: 'Поиск...'
|
||||||
|
@ -8,7 +8,6 @@ lastUpdated: "Ilisasishwa mwisho"
|
|||||||
light: "Meupe"
|
light: "Meupe"
|
||||||
noResultsFound: "Hakuna matokeo yalipopatikana."
|
noResultsFound: "Hakuna matokeo yalipopatikana."
|
||||||
onThisPage: "Kwenye ukurasa huu"
|
onThisPage: "Kwenye ukurasa huu"
|
||||||
tags: "Lebo"
|
|
||||||
poweredBy: "Inaendeshwa na Hextra"
|
poweredBy: "Inaendeshwa na Hextra"
|
||||||
readMore: "Soma zaidi →"
|
readMore: "Soma zaidi →"
|
||||||
searchPlaceholder: "Tafuta..."
|
searchPlaceholder: "Tafuta..."
|
||||||
|
@ -9,7 +9,6 @@ lastUpdated: "Востаннє оновлено"
|
|||||||
light: "Світла"
|
light: "Світла"
|
||||||
noResultsFound: "Не знайдено результатів"
|
noResultsFound: "Не знайдено результатів"
|
||||||
onThisPage: "На цій сторінці"
|
onThisPage: "На цій сторінці"
|
||||||
tags: "Теги"
|
|
||||||
poweredBy: "Працює завдяки Hextra"
|
poweredBy: "Працює завдяки Hextra"
|
||||||
readMore: "Читати більше →"
|
readMore: "Читати більше →"
|
||||||
searchPlaceholder: "Пошук..."
|
searchPlaceholder: "Пошук..."
|
||||||
|
@ -8,7 +8,6 @@ lastUpdated: "Lần cuối cập nhật lúc"
|
|||||||
light: "Sáng"
|
light: "Sáng"
|
||||||
noResultsFound: "Không tìm thấy kết quả."
|
noResultsFound: "Không tìm thấy kết quả."
|
||||||
onThisPage: "Ở trang này"
|
onThisPage: "Ở trang này"
|
||||||
tags: "Thẻ"
|
|
||||||
poweredBy: "Chạy bởi Hextra"
|
poweredBy: "Chạy bởi Hextra"
|
||||||
readMore: "Đọc thêm →"
|
readMore: "Đọc thêm →"
|
||||||
searchPlaceholder: "Tìm kiếm..."
|
searchPlaceholder: "Tìm kiếm..."
|
||||||
|
@ -8,7 +8,6 @@ lastUpdated: "最后更新于"
|
|||||||
light: "浅色"
|
light: "浅色"
|
||||||
noResultsFound: "无结果"
|
noResultsFound: "无结果"
|
||||||
onThisPage: "此页上"
|
onThisPage: "此页上"
|
||||||
tags: "标签"
|
|
||||||
poweredBy: "由 Hextra 驱动"
|
poweredBy: "由 Hextra 驱动"
|
||||||
readMore: "更多 →"
|
readMore: "更多 →"
|
||||||
searchPlaceholder: "搜索文档..."
|
searchPlaceholder: "搜索文档..."
|
||||||
|
@ -8,7 +8,6 @@ lastUpdated: "最後更新於"
|
|||||||
light: "淺色"
|
light: "淺色"
|
||||||
noResultsFound: "無結果"
|
noResultsFound: "無結果"
|
||||||
onThisPage: "此頁上"
|
onThisPage: "此頁上"
|
||||||
tags: "標籤"
|
|
||||||
poweredBy: "由 Hextra 驅動"
|
poweredBy: "由 Hextra 驅動"
|
||||||
readMore: "更多 →"
|
readMore: "更多 →"
|
||||||
searchPlaceholder: "搜尋文檔..."
|
searchPlaceholder: "搜尋文檔..."
|
||||||
|
@ -1,20 +1,9 @@
|
|||||||
{{- $engine := site.Params.math.engine | default "katex" -}}
|
{{- $opts := dict "output" "htmlAndMathml" "displayMode" (eq .Type "block") }}
|
||||||
{{- if eq $engine "katex" -}}
|
{{- with try (transform.ToMath .Inner $opts) }}
|
||||||
{{- $opts := dict "output" "htmlAndMathml" "displayMode" (eq .Type "block") }}
|
{{- with .Err }}
|
||||||
{{- with try (transform.ToMath .Inner $opts) }}
|
{{ errorf "Unable to render mathematical markup to HTML using the transform.ToMath function. The KaTeX display engine threw the following error: %s: see %s." . $.Position }}
|
||||||
{{- with .Err }}
|
{{- else }}
|
||||||
{{ errorf "Unable to render mathematical markup to HTML using the transform.ToMath function. The KaTeX display engine threw the following error: %s: see %s." . $.Position }}
|
{{- .Value }}
|
||||||
{{- else }}
|
{{- $.Page.Store.Set "hasMath" true }}
|
||||||
{{- .Value }}
|
|
||||||
{{- $.Page.Store.Set "hasMath" true }}
|
|
||||||
{{- end }}
|
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- else -}}
|
|
||||||
{{/* MathJax - need to add delimiters back in */}}
|
|
||||||
{{- $.Page.Store.Set "hasMath" true }}
|
|
||||||
{{- if eq .Type "block" -}}
|
|
||||||
\[{{- .Inner -}}\]
|
|
||||||
{{- else -}}
|
|
||||||
\( {{- .Inner -}} \)
|
|
||||||
{{- end -}}
|
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
@ -12,7 +12,7 @@
|
|||||||
{{- if .IsHome -}}
|
{{- if .IsHome -}}
|
||||||
{{ .Site.Title -}}
|
{{ .Site.Title -}}
|
||||||
{{ else -}}
|
{{ else -}}
|
||||||
{{ with .Title }}{{ . }} – {{ end -}}
|
{{ with .Title }}{{ . }} –{{ end -}}
|
||||||
{{ .Site.Title -}}
|
{{ .Site.Title -}}
|
||||||
{{ end -}}
|
{{ end -}}
|
||||||
</title>
|
</title>
|
||||||
@ -85,8 +85,7 @@
|
|||||||
|
|
||||||
<!-- KaTeX-->
|
<!-- KaTeX-->
|
||||||
{{ $noop := .WordCount -}}
|
{{ $noop := .WordCount -}}
|
||||||
{{- $engine := site.Params.math.engine | default "katex" -}}
|
{{ if .Page.Store.Get "hasMath" -}}
|
||||||
{{ if and (.Page.Store.Get "hasMath") (eq $engine "katex") -}}
|
|
||||||
<!-- TODO: make url configurable -->
|
<!-- TODO: make url configurable -->
|
||||||
{{ $katexBaseUrl := "https://cdn.jsdelivr.net/npm/katex@latest/dist" }}
|
{{ $katexBaseUrl := "https://cdn.jsdelivr.net/npm/katex@latest/dist" }}
|
||||||
{{ $katexCssUrl := printf "%s/katex%s.css" $katexBaseUrl (cond hugo.IsProduction ".min" "") -}}
|
{{ $katexCssUrl := printf "%s/katex%s.css" $katexBaseUrl (cond hugo.IsProduction ".min" "") -}}
|
||||||
@ -96,16 +95,13 @@
|
|||||||
{{ with try (resources.GetRemote $katexCssUrl) -}}
|
{{ with try (resources.GetRemote $katexCssUrl) -}}
|
||||||
{{ with .Err -}}
|
{{ with .Err -}}
|
||||||
{{ errorf "Could not retrieve KaTeX css file from %s. Reason: %s." $katexCssUrl . -}}
|
{{ errorf "Could not retrieve KaTeX css file from %s. Reason: %s." $katexCssUrl . -}}
|
||||||
{{ else with .Value -}}
|
{{ else with.Value -}}
|
||||||
{{ $katexCssContent := strings.Replace .Content $katexFontPattern $katexFontSubstituted }}
|
{{ $katexCssContent := strings.Replace .Content $katexFontPattern $katexFontSubstituted }}
|
||||||
{{ with resources.FromString (printf "css/katex%s.css" (cond hugo.IsProduction ".min" "")) $katexCssContent -}}
|
{{ with resources.FromString (printf "css/katex%s.css" (cond hugo.IsProduction ".min" "")) $katexCssContent -}}
|
||||||
{{ $cssHash := . | fingerprint "sha512" -}}
|
<link rel="stylesheet" href="{{- .RelPermalink -}}" integrity="{{- . | fingerprint -}}" crossorigin="anonymous" />
|
||||||
<link rel="stylesheet" href="{{- .RelPermalink -}}" integrity="{{- $cssHash.Data.Integrity -}}" crossorigin="anonymous" />
|
|
||||||
{{ end -}}
|
{{ end -}}
|
||||||
{{ end -}}
|
{{ end -}}
|
||||||
{{ end -}}
|
{{ end -}}
|
||||||
{{ else if and (.Page.Store.Get "hasMath") (eq $engine "mathjax") -}}
|
|
||||||
{{ partialCached "scripts/mathjax.html" . -}}
|
|
||||||
{{ end -}}
|
{{ end -}}
|
||||||
|
|
||||||
{{ partial "custom/head-end.html" . -}}
|
{{ partial "custom/head-end.html" . -}}
|
||||||
|
@ -1,21 +0,0 @@
|
|||||||
{{/* MathJax */}}
|
|
||||||
{{ $mathjaxVersion := site.Params.math.mathjaxVersion | default "3" -}}
|
|
||||||
{{ $mathjaxJsUrl := printf "https://cdn.jsdelivr.net/npm/mathjax@%s/es5/tex-chtml.js" $mathjaxVersion -}}
|
|
||||||
<script defer id="MathJax-script" src="{{ $mathjaxJsUrl }}" crossorigin="anonymous" async></script>
|
|
||||||
<script>
|
|
||||||
MathJax = {
|
|
||||||
loader: {
|
|
||||||
load: ["ui/safe"],
|
|
||||||
},
|
|
||||||
tex: {
|
|
||||||
displayMath: [
|
|
||||||
["\\[", "\\]"],
|
|
||||||
["$$", "$$"],
|
|
||||||
],
|
|
||||||
inlineMath: [
|
|
||||||
["\\(", "\\)"],
|
|
||||||
["$", "$"],
|
|
||||||
],
|
|
||||||
},
|
|
||||||
};
|
|
||||||
</script>
|
|
@ -1,7 +0,0 @@
|
|||||||
<p class="hx:opacity-50 hx:text-sm hx:leading-7">
|
|
||||||
{{- range $tag := .Params.tags -}}
|
|
||||||
{{- with $.Site.GetPage (printf "/tags/%s" $tag) -}}
|
|
||||||
<a class="hx:inline-block hx:mr-2" href="{{ .RelPermalink }}">#{{ .Title }}</a>
|
|
||||||
{{- end -}}
|
|
||||||
{{- end -}}
|
|
||||||
</p>
|
|
@ -2,7 +2,6 @@
|
|||||||
{{/* TODO: toc bottom part should be able to hide */}}
|
{{/* TODO: toc bottom part should be able to hide */}}
|
||||||
{{- $toc := .Params.toc | default true -}}
|
{{- $toc := .Params.toc | default true -}}
|
||||||
{{- $onThisPage := (T "onThisPage") | default "On this page"}}
|
{{- $onThisPage := (T "onThisPage") | default "On this page"}}
|
||||||
{{- $tags := (T "tags") | default "Tags"}}
|
|
||||||
{{- $editThisPage := (T "editThisPage") | default "Edit this page"}}
|
{{- $editThisPage := (T "editThisPage") | default "Edit this page"}}
|
||||||
{{- $backToTop := (T "backToTop") | default "Scroll to top" -}}
|
{{- $backToTop := (T "backToTop") | default "Scroll to top" -}}
|
||||||
|
|
||||||
@ -19,14 +18,6 @@
|
|||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
|
||||||
{{- $borderClass := "hx:mt-8 hx:border-t hx:bg-white hx:pt-8 hx:shadow-[0_-12px_16px_white] hx:dark:bg-dark hx:dark:shadow-[0_-12px_16px_#111]" -}}
|
{{- $borderClass := "hx:mt-8 hx:border-t hx:bg-white hx:pt-8 hx:shadow-[0_-12px_16px_white] hx:dark:bg-dark hx:dark:shadow-[0_-12px_16px_#111]" -}}
|
||||||
|
|
||||||
{{- if and site.Params.toc.displayTags .Params.tags -}}
|
|
||||||
<div class="{{ $borderClass }} hx:sticky hx:bottom-0 hx:flex hx:flex-col hx:items-start hx:gap-2 hx:border-gray-200 hx:dark:border-neutral-800 hx:contrast-more:border-t hx:contrast-more:border-neutral-400 hx:contrast-more:shadow-none hx:contrast-more:dark:border-neutral-400">
|
|
||||||
<p class="hx:mb-1 hx:font-semibold hx:tracking-tight">{{ $tags }}</p>
|
|
||||||
{{ partial "tags.html" . }}
|
|
||||||
</div>
|
|
||||||
{{- end -}}
|
|
||||||
|
|
||||||
{{- if not .Fragments.Headings -}}
|
{{- if not .Fragments.Headings -}}
|
||||||
{{- $borderClass = "" -}}
|
{{- $borderClass = "" -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
@ -1,12 +1,14 @@
|
|||||||
{{- $items := split (.Get "items") "," -}}
|
{{- $items := split (.Get "items") "," -}}
|
||||||
{{- $defaultIndex := int ((.Get "defaultIndex") | default "0") -}}
|
{{- $defaultIndex := int ((.Get "defaultIndex") | default "0") -}}
|
||||||
|
|
||||||
|
{{- $enableSync := site.Params.page.tabs.sync | default false -}}
|
||||||
|
|
||||||
{{- if not $items -}}
|
{{- if not $items -}}
|
||||||
{{ errorf "no items provided" }}
|
{{ errorf "no items provided" }}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
|
||||||
<div class="hextra-scrollbar hx:overflow-x-auto hx:overflow-y-hidden hx:overscroll-x-contain">
|
<div class="hextra-scrollbar hx:overflow-x-auto hx:overflow-y-hidden hx:overscroll-x-contain">
|
||||||
<div class="hx:mt-4 hx:flex hx:w-max hx:min-w-full hx:border-b hx:border-gray-200 hx:pb-px hx:dark:border-neutral-800">
|
<div class="hx:mt-4 hx:flex hx:w-max hx:min-w-full hx:border-b hx:border-gray-200 hx:pb-px hx:dark:border-neutral-800"{{ if $enableSync }} data-tab-group="{{ delimit $items "," }}"{{ end }}>
|
||||||
{{- range $i, $item := $items -}}
|
{{- range $i, $item := $items -}}
|
||||||
<button
|
<button
|
||||||
class="hextra-tabs-toggle hx:cursor-pointer hx:data-[state=selected]:border-primary-500 hx:data-[state=selected]:text-primary-600 hx:data-[state=selected]:dark:border-primary-500 hx:data-[state=selected]:dark:text-primary-600 hx:mr-2 hx:rounded-t hx:p-2 hx:font-medium hx:leading-5 hx:transition-colors hx:-mb-0.5 hx:select-none hx:border-b-2 hx:border-transparent hx:text-gray-600 hx:hover:border-gray-200 hx:hover:text-black hx:dark:text-gray-200 hx:dark:hover:border-neutral-800 hx:dark:hover:text-white"
|
class="hextra-tabs-toggle hx:cursor-pointer hx:data-[state=selected]:border-primary-500 hx:data-[state=selected]:text-primary-600 hx:data-[state=selected]:dark:border-primary-500 hx:data-[state=selected]:dark:text-primary-600 hx:mr-2 hx:rounded-t hx:p-2 hx:font-medium hx:leading-5 hx:transition-colors hx:-mb-0.5 hx:select-none hx:border-b-2 hx:border-transparent hx:text-gray-600 hx:hover:border-gray-200 hx:hover:text-black hx:dark:text-gray-200 hx:dark:hover:border-neutral-800 hx:dark:hover:text-white"
|
||||||
|
@ -11,9 +11,13 @@
|
|||||||
{{- range $pages }}
|
{{- range $pages }}
|
||||||
<div class="hx:mb-10">
|
<div class="hx:mb-10">
|
||||||
<h3><a style="color: inherit; text-decoration: none;" class="hx:block hx:font-semibold hx:mt-8 hx:text-2xl " href="{{ .RelPermalink }}">{{ .Title }}</a></h3>
|
<h3><a style="color: inherit; text-decoration: none;" class="hx:block hx:font-semibold hx:mt-8 hx:text-2xl " href="{{ .RelPermalink }}">{{ .Title }}</a></h3>
|
||||||
{{ if site.Params.blog.list.displayTags }}
|
{{- if site.Params.blog.list.displayTags -}}
|
||||||
{{ partial "tags.html" . }}
|
{{ with .Params.tags }}
|
||||||
{{ end }}
|
<p class="hx:opacity-50 hx:text-sm hx:leading-7">
|
||||||
|
{{- range . }}<a class="hx:inline-block hx:mr-2">#{{ . }}</a>{{ end -}}
|
||||||
|
</p>
|
||||||
|
{{ end -}}
|
||||||
|
{{- end -}}
|
||||||
<p class="hx:opacity-80 hx:mt-4 hx:leading-7">{{- partial "utils/page-description" . -}}</p>
|
<p class="hx:opacity-80 hx:mt-4 hx:leading-7">{{- partial "utils/page-description" . -}}</p>
|
||||||
<p class="hx:opacity-80 hx:mt-1 hx:leading-7">
|
<p class="hx:opacity-80 hx:mt-1 hx:leading-7">
|
||||||
<a class="hx:text-[color:hsl(var(--primary-hue),100%,50%)] hx:underline hx:underline-offset-2 hx:decoration-from-font" href="{{ .RelPermalink }}">
|
<a class="hx:text-[color:hsl(var(--primary-hue),100%,50%)] hx:underline hx:underline-offset-2 hx:decoration-from-font" href="{{ .RelPermalink }}">
|
||||||
|
144
package-lock.json
generated
144
package-lock.json
generated
@ -5,11 +5,11 @@
|
|||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@tailwindcss/postcss": "^4.1.8",
|
"@tailwindcss/postcss": "^4.0.17",
|
||||||
"postcss-cli": "^11.0.1",
|
"postcss-cli": "^11.0.1",
|
||||||
"prettier": "^3.5.3",
|
"prettier": "^3.5.3",
|
||||||
"prettier-plugin-go-template": "^0.0.15",
|
"prettier-plugin-go-template": "^0.0.15",
|
||||||
"tailwindcss": "^4.1.8"
|
"tailwindcss": "^4.0.17"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@alloc/quick-lru": {
|
"node_modules/@alloc/quick-lru": {
|
||||||
@ -106,9 +106,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@tailwindcss/node": {
|
"node_modules/@tailwindcss/node": {
|
||||||
"version": "4.1.10",
|
"version": "4.1.8",
|
||||||
"resolved": "https://registry.npmjs.org/@tailwindcss/node/-/node-4.1.10.tgz",
|
"resolved": "https://registry.npmjs.org/@tailwindcss/node/-/node-4.1.8.tgz",
|
||||||
"integrity": "sha512-2ACf1znY5fpRBwRhMgj9ZXvb2XZW8qs+oTfotJ2C5xR0/WNL7UHZ7zXl6s+rUqedL1mNi+0O+WQr5awGowS3PQ==",
|
"integrity": "sha512-OWwBsbC9BFAJelmnNcrKuf+bka2ZxCE2A4Ft53Tkg4uoiE67r/PMEYwCsourC26E+kmxfwE0hVzMdxqeW+xu7Q==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
@ -118,13 +118,13 @@
|
|||||||
"lightningcss": "1.30.1",
|
"lightningcss": "1.30.1",
|
||||||
"magic-string": "^0.30.17",
|
"magic-string": "^0.30.17",
|
||||||
"source-map-js": "^1.2.1",
|
"source-map-js": "^1.2.1",
|
||||||
"tailwindcss": "4.1.10"
|
"tailwindcss": "4.1.8"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@tailwindcss/oxide": {
|
"node_modules/@tailwindcss/oxide": {
|
||||||
"version": "4.1.10",
|
"version": "4.1.8",
|
||||||
"resolved": "https://registry.npmjs.org/@tailwindcss/oxide/-/oxide-4.1.10.tgz",
|
"resolved": "https://registry.npmjs.org/@tailwindcss/oxide/-/oxide-4.1.8.tgz",
|
||||||
"integrity": "sha512-v0C43s7Pjw+B9w21htrQwuFObSkio2aV/qPx/mhrRldbqxbWJK6KizM+q7BF1/1CmuLqZqX3CeYF7s7P9fbA8Q==",
|
"integrity": "sha512-d7qvv9PsM5N3VNKhwVUhpK6r4h9wtLkJ6lz9ZY9aeZgrUWk1Z8VPyqyDT9MZlem7GTGseRQHkeB1j3tC7W1P+A==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"hasInstallScript": true,
|
"hasInstallScript": true,
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
@ -136,24 +136,24 @@
|
|||||||
"node": ">= 10"
|
"node": ">= 10"
|
||||||
},
|
},
|
||||||
"optionalDependencies": {
|
"optionalDependencies": {
|
||||||
"@tailwindcss/oxide-android-arm64": "4.1.10",
|
"@tailwindcss/oxide-android-arm64": "4.1.8",
|
||||||
"@tailwindcss/oxide-darwin-arm64": "4.1.10",
|
"@tailwindcss/oxide-darwin-arm64": "4.1.8",
|
||||||
"@tailwindcss/oxide-darwin-x64": "4.1.10",
|
"@tailwindcss/oxide-darwin-x64": "4.1.8",
|
||||||
"@tailwindcss/oxide-freebsd-x64": "4.1.10",
|
"@tailwindcss/oxide-freebsd-x64": "4.1.8",
|
||||||
"@tailwindcss/oxide-linux-arm-gnueabihf": "4.1.10",
|
"@tailwindcss/oxide-linux-arm-gnueabihf": "4.1.8",
|
||||||
"@tailwindcss/oxide-linux-arm64-gnu": "4.1.10",
|
"@tailwindcss/oxide-linux-arm64-gnu": "4.1.8",
|
||||||
"@tailwindcss/oxide-linux-arm64-musl": "4.1.10",
|
"@tailwindcss/oxide-linux-arm64-musl": "4.1.8",
|
||||||
"@tailwindcss/oxide-linux-x64-gnu": "4.1.10",
|
"@tailwindcss/oxide-linux-x64-gnu": "4.1.8",
|
||||||
"@tailwindcss/oxide-linux-x64-musl": "4.1.10",
|
"@tailwindcss/oxide-linux-x64-musl": "4.1.8",
|
||||||
"@tailwindcss/oxide-wasm32-wasi": "4.1.10",
|
"@tailwindcss/oxide-wasm32-wasi": "4.1.8",
|
||||||
"@tailwindcss/oxide-win32-arm64-msvc": "4.1.10",
|
"@tailwindcss/oxide-win32-arm64-msvc": "4.1.8",
|
||||||
"@tailwindcss/oxide-win32-x64-msvc": "4.1.10"
|
"@tailwindcss/oxide-win32-x64-msvc": "4.1.8"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@tailwindcss/oxide-android-arm64": {
|
"node_modules/@tailwindcss/oxide-android-arm64": {
|
||||||
"version": "4.1.10",
|
"version": "4.1.8",
|
||||||
"resolved": "https://registry.npmjs.org/@tailwindcss/oxide-android-arm64/-/oxide-android-arm64-4.1.10.tgz",
|
"resolved": "https://registry.npmjs.org/@tailwindcss/oxide-android-arm64/-/oxide-android-arm64-4.1.8.tgz",
|
||||||
"integrity": "sha512-VGLazCoRQ7rtsCzThaI1UyDu/XRYVyH4/EWiaSX6tFglE+xZB5cvtC5Omt0OQ+FfiIVP98su16jDVHDEIuH4iQ==",
|
"integrity": "sha512-Fbz7qni62uKYceWYvUjRqhGfZKwhZDQhlrJKGtnZfuNtHFqa8wmr+Wn74CTWERiW2hn3mN5gTpOoxWKk0jRxjg==",
|
||||||
"cpu": [
|
"cpu": [
|
||||||
"arm64"
|
"arm64"
|
||||||
],
|
],
|
||||||
@ -168,9 +168,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@tailwindcss/oxide-darwin-arm64": {
|
"node_modules/@tailwindcss/oxide-darwin-arm64": {
|
||||||
"version": "4.1.10",
|
"version": "4.1.8",
|
||||||
"resolved": "https://registry.npmjs.org/@tailwindcss/oxide-darwin-arm64/-/oxide-darwin-arm64-4.1.10.tgz",
|
"resolved": "https://registry.npmjs.org/@tailwindcss/oxide-darwin-arm64/-/oxide-darwin-arm64-4.1.8.tgz",
|
||||||
"integrity": "sha512-ZIFqvR1irX2yNjWJzKCqTCcHZbgkSkSkZKbRM3BPzhDL/18idA8uWCoopYA2CSDdSGFlDAxYdU2yBHwAwx8euQ==",
|
"integrity": "sha512-RdRvedGsT0vwVVDztvyXhKpsU2ark/BjgG0huo4+2BluxdXo8NDgzl77qh0T1nUxmM11eXwR8jA39ibvSTbi7A==",
|
||||||
"cpu": [
|
"cpu": [
|
||||||
"arm64"
|
"arm64"
|
||||||
],
|
],
|
||||||
@ -185,9 +185,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@tailwindcss/oxide-darwin-x64": {
|
"node_modules/@tailwindcss/oxide-darwin-x64": {
|
||||||
"version": "4.1.10",
|
"version": "4.1.8",
|
||||||
"resolved": "https://registry.npmjs.org/@tailwindcss/oxide-darwin-x64/-/oxide-darwin-x64-4.1.10.tgz",
|
"resolved": "https://registry.npmjs.org/@tailwindcss/oxide-darwin-x64/-/oxide-darwin-x64-4.1.8.tgz",
|
||||||
"integrity": "sha512-eCA4zbIhWUFDXoamNztmS0MjXHSEJYlvATzWnRiTqJkcUteSjO94PoRHJy1Xbwp9bptjeIxxBHh+zBWFhttbrQ==",
|
"integrity": "sha512-t6PgxjEMLp5Ovf7uMb2OFmb3kqzVTPPakWpBIFzppk4JE4ix0yEtbtSjPbU8+PZETpaYMtXvss2Sdkx8Vs4XRw==",
|
||||||
"cpu": [
|
"cpu": [
|
||||||
"x64"
|
"x64"
|
||||||
],
|
],
|
||||||
@ -202,9 +202,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@tailwindcss/oxide-freebsd-x64": {
|
"node_modules/@tailwindcss/oxide-freebsd-x64": {
|
||||||
"version": "4.1.10",
|
"version": "4.1.8",
|
||||||
"resolved": "https://registry.npmjs.org/@tailwindcss/oxide-freebsd-x64/-/oxide-freebsd-x64-4.1.10.tgz",
|
"resolved": "https://registry.npmjs.org/@tailwindcss/oxide-freebsd-x64/-/oxide-freebsd-x64-4.1.8.tgz",
|
||||||
"integrity": "sha512-8/392Xu12R0cc93DpiJvNpJ4wYVSiciUlkiOHOSOQNH3adq9Gi/dtySK7dVQjXIOzlpSHjeCL89RUUI8/GTI6g==",
|
"integrity": "sha512-g8C8eGEyhHTqwPStSwZNSrOlyx0bhK/V/+zX0Y+n7DoRUzyS8eMbVshVOLJTDDC+Qn9IJnilYbIKzpB9n4aBsg==",
|
||||||
"cpu": [
|
"cpu": [
|
||||||
"x64"
|
"x64"
|
||||||
],
|
],
|
||||||
@ -219,9 +219,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@tailwindcss/oxide-linux-arm-gnueabihf": {
|
"node_modules/@tailwindcss/oxide-linux-arm-gnueabihf": {
|
||||||
"version": "4.1.10",
|
"version": "4.1.8",
|
||||||
"resolved": "https://registry.npmjs.org/@tailwindcss/oxide-linux-arm-gnueabihf/-/oxide-linux-arm-gnueabihf-4.1.10.tgz",
|
"resolved": "https://registry.npmjs.org/@tailwindcss/oxide-linux-arm-gnueabihf/-/oxide-linux-arm-gnueabihf-4.1.8.tgz",
|
||||||
"integrity": "sha512-t9rhmLT6EqeuPT+MXhWhlRYIMSfh5LZ6kBrC4FS6/+M1yXwfCtp24UumgCWOAJVyjQwG+lYva6wWZxrfvB+NhQ==",
|
"integrity": "sha512-Jmzr3FA4S2tHhaC6yCjac3rGf7hG9R6Gf2z9i9JFcuyy0u79HfQsh/thifbYTF2ic82KJovKKkIB6Z9TdNhCXQ==",
|
||||||
"cpu": [
|
"cpu": [
|
||||||
"arm"
|
"arm"
|
||||||
],
|
],
|
||||||
@ -236,9 +236,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@tailwindcss/oxide-linux-arm64-gnu": {
|
"node_modules/@tailwindcss/oxide-linux-arm64-gnu": {
|
||||||
"version": "4.1.10",
|
"version": "4.1.8",
|
||||||
"resolved": "https://registry.npmjs.org/@tailwindcss/oxide-linux-arm64-gnu/-/oxide-linux-arm64-gnu-4.1.10.tgz",
|
"resolved": "https://registry.npmjs.org/@tailwindcss/oxide-linux-arm64-gnu/-/oxide-linux-arm64-gnu-4.1.8.tgz",
|
||||||
"integrity": "sha512-3oWrlNlxLRxXejQ8zImzrVLuZ/9Z2SeKoLhtCu0hpo38hTO2iL86eFOu4sVR8cZc6n3z7eRXXqtHJECa6mFOvA==",
|
"integrity": "sha512-qq7jXtO1+UEtCmCeBBIRDrPFIVI4ilEQ97qgBGdwXAARrUqSn/L9fUrkb1XP/mvVtoVeR2bt/0L77xx53bPZ/Q==",
|
||||||
"cpu": [
|
"cpu": [
|
||||||
"arm64"
|
"arm64"
|
||||||
],
|
],
|
||||||
@ -253,9 +253,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@tailwindcss/oxide-linux-arm64-musl": {
|
"node_modules/@tailwindcss/oxide-linux-arm64-musl": {
|
||||||
"version": "4.1.10",
|
"version": "4.1.8",
|
||||||
"resolved": "https://registry.npmjs.org/@tailwindcss/oxide-linux-arm64-musl/-/oxide-linux-arm64-musl-4.1.10.tgz",
|
"resolved": "https://registry.npmjs.org/@tailwindcss/oxide-linux-arm64-musl/-/oxide-linux-arm64-musl-4.1.8.tgz",
|
||||||
"integrity": "sha512-saScU0cmWvg/Ez4gUmQWr9pvY9Kssxt+Xenfx1LG7LmqjcrvBnw4r9VjkFcqmbBb7GCBwYNcZi9X3/oMda9sqQ==",
|
"integrity": "sha512-O6b8QesPbJCRshsNApsOIpzKt3ztG35gfX9tEf4arD7mwNinsoCKxkj8TgEE0YRjmjtO3r9FlJnT/ENd9EVefQ==",
|
||||||
"cpu": [
|
"cpu": [
|
||||||
"arm64"
|
"arm64"
|
||||||
],
|
],
|
||||||
@ -270,9 +270,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@tailwindcss/oxide-linux-x64-gnu": {
|
"node_modules/@tailwindcss/oxide-linux-x64-gnu": {
|
||||||
"version": "4.1.10",
|
"version": "4.1.8",
|
||||||
"resolved": "https://registry.npmjs.org/@tailwindcss/oxide-linux-x64-gnu/-/oxide-linux-x64-gnu-4.1.10.tgz",
|
"resolved": "https://registry.npmjs.org/@tailwindcss/oxide-linux-x64-gnu/-/oxide-linux-x64-gnu-4.1.8.tgz",
|
||||||
"integrity": "sha512-/G3ao/ybV9YEEgAXeEg28dyH6gs1QG8tvdN9c2MNZdUXYBaIY/Gx0N6RlJzfLy/7Nkdok4kaxKPHKJUlAaoTdA==",
|
"integrity": "sha512-32iEXX/pXwikshNOGnERAFwFSfiltmijMIAbUhnNyjFr3tmWmMJWQKU2vNcFX0DACSXJ3ZWcSkzNbaKTdngH6g==",
|
||||||
"cpu": [
|
"cpu": [
|
||||||
"x64"
|
"x64"
|
||||||
],
|
],
|
||||||
@ -287,9 +287,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@tailwindcss/oxide-linux-x64-musl": {
|
"node_modules/@tailwindcss/oxide-linux-x64-musl": {
|
||||||
"version": "4.1.10",
|
"version": "4.1.8",
|
||||||
"resolved": "https://registry.npmjs.org/@tailwindcss/oxide-linux-x64-musl/-/oxide-linux-x64-musl-4.1.10.tgz",
|
"resolved": "https://registry.npmjs.org/@tailwindcss/oxide-linux-x64-musl/-/oxide-linux-x64-musl-4.1.8.tgz",
|
||||||
"integrity": "sha512-LNr7X8fTiKGRtQGOerSayc2pWJp/9ptRYAa4G+U+cjw9kJZvkopav1AQc5HHD+U364f71tZv6XamaHKgrIoVzA==",
|
"integrity": "sha512-s+VSSD+TfZeMEsCaFaHTaY5YNj3Dri8rST09gMvYQKwPphacRG7wbuQ5ZJMIJXN/puxPcg/nU+ucvWguPpvBDg==",
|
||||||
"cpu": [
|
"cpu": [
|
||||||
"x64"
|
"x64"
|
||||||
],
|
],
|
||||||
@ -304,9 +304,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@tailwindcss/oxide-wasm32-wasi": {
|
"node_modules/@tailwindcss/oxide-wasm32-wasi": {
|
||||||
"version": "4.1.10",
|
"version": "4.1.8",
|
||||||
"resolved": "https://registry.npmjs.org/@tailwindcss/oxide-wasm32-wasi/-/oxide-wasm32-wasi-4.1.10.tgz",
|
"resolved": "https://registry.npmjs.org/@tailwindcss/oxide-wasm32-wasi/-/oxide-wasm32-wasi-4.1.8.tgz",
|
||||||
"integrity": "sha512-d6ekQpopFQJAcIK2i7ZzWOYGZ+A6NzzvQ3ozBvWFdeyqfOZdYHU66g5yr+/HC4ipP1ZgWsqa80+ISNILk+ae/Q==",
|
"integrity": "sha512-CXBPVFkpDjM67sS1psWohZ6g/2/cd+cq56vPxK4JeawelxwK4YECgl9Y9TjkE2qfF+9/s1tHHJqrC4SS6cVvSg==",
|
||||||
"bundleDependencies": [
|
"bundleDependencies": [
|
||||||
"@napi-rs/wasm-runtime",
|
"@napi-rs/wasm-runtime",
|
||||||
"@emnapi/core",
|
"@emnapi/core",
|
||||||
@ -334,9 +334,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@tailwindcss/oxide-win32-arm64-msvc": {
|
"node_modules/@tailwindcss/oxide-win32-arm64-msvc": {
|
||||||
"version": "4.1.10",
|
"version": "4.1.8",
|
||||||
"resolved": "https://registry.npmjs.org/@tailwindcss/oxide-win32-arm64-msvc/-/oxide-win32-arm64-msvc-4.1.10.tgz",
|
"resolved": "https://registry.npmjs.org/@tailwindcss/oxide-win32-arm64-msvc/-/oxide-win32-arm64-msvc-4.1.8.tgz",
|
||||||
"integrity": "sha512-i1Iwg9gRbwNVOCYmnigWCCgow8nDWSFmeTUU5nbNx3rqbe4p0kRbEqLwLJbYZKmSSp23g4N6rCDmm7OuPBXhDA==",
|
"integrity": "sha512-7GmYk1n28teDHUjPlIx4Z6Z4hHEgvP5ZW2QS9ygnDAdI/myh3HTHjDqtSqgu1BpRoI4OiLx+fThAyA1JePoENA==",
|
||||||
"cpu": [
|
"cpu": [
|
||||||
"arm64"
|
"arm64"
|
||||||
],
|
],
|
||||||
@ -351,9 +351,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@tailwindcss/oxide-win32-x64-msvc": {
|
"node_modules/@tailwindcss/oxide-win32-x64-msvc": {
|
||||||
"version": "4.1.10",
|
"version": "4.1.8",
|
||||||
"resolved": "https://registry.npmjs.org/@tailwindcss/oxide-win32-x64-msvc/-/oxide-win32-x64-msvc-4.1.10.tgz",
|
"resolved": "https://registry.npmjs.org/@tailwindcss/oxide-win32-x64-msvc/-/oxide-win32-x64-msvc-4.1.8.tgz",
|
||||||
"integrity": "sha512-sGiJTjcBSfGq2DVRtaSljq5ZgZS2SDHSIfhOylkBvHVjwOsodBhnb3HdmiKkVuUGKD0I7G63abMOVaskj1KpOA==",
|
"integrity": "sha512-fou+U20j+Jl0EHwK92spoWISON2OBnCazIc038Xj2TdweYV33ZRkS9nwqiUi2d/Wba5xg5UoHfvynnb/UB49cQ==",
|
||||||
"cpu": [
|
"cpu": [
|
||||||
"x64"
|
"x64"
|
||||||
],
|
],
|
||||||
@ -368,17 +368,17 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@tailwindcss/postcss": {
|
"node_modules/@tailwindcss/postcss": {
|
||||||
"version": "4.1.10",
|
"version": "4.1.8",
|
||||||
"resolved": "https://registry.npmjs.org/@tailwindcss/postcss/-/postcss-4.1.10.tgz",
|
"resolved": "https://registry.npmjs.org/@tailwindcss/postcss/-/postcss-4.1.8.tgz",
|
||||||
"integrity": "sha512-B+7r7ABZbkXJwpvt2VMnS6ujcDoR2OOcFaqrLIo1xbcdxje4Vf+VgJdBzNNbrAjBj/rLZ66/tlQ1knIGNLKOBQ==",
|
"integrity": "sha512-vB/vlf7rIky+w94aWMw34bWW1ka6g6C3xIOdICKX2GC0VcLtL6fhlLiafF0DVIwa9V6EHz8kbWMkS2s2QvvNlw==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@alloc/quick-lru": "^5.2.0",
|
"@alloc/quick-lru": "^5.2.0",
|
||||||
"@tailwindcss/node": "4.1.10",
|
"@tailwindcss/node": "4.1.8",
|
||||||
"@tailwindcss/oxide": "4.1.10",
|
"@tailwindcss/oxide": "4.1.8",
|
||||||
"postcss": "^8.4.41",
|
"postcss": "^8.4.41",
|
||||||
"tailwindcss": "4.1.10"
|
"tailwindcss": "4.1.8"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/ansi-regex": {
|
"node_modules/ansi-regex": {
|
||||||
@ -1081,9 +1081,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/postcss": {
|
"node_modules/postcss": {
|
||||||
"version": "8.5.5",
|
"version": "8.5.4",
|
||||||
"resolved": "https://registry.npmjs.org/postcss/-/postcss-8.5.5.tgz",
|
"resolved": "https://registry.npmjs.org/postcss/-/postcss-8.5.4.tgz",
|
||||||
"integrity": "sha512-d/jtm+rdNT8tpXuHY5MMtcbJFBkhXE6593XVR9UoGCH8jSFGci7jGvMGH5RYd5PBJW+00NZQt6gf7CbagJCrhg==",
|
"integrity": "sha512-QSa9EBe+uwlGTFmHsPKokv3B/oEMQZxfqW0QqNCyhpa6mB1afzulwn8hihglqAb2pOw+BJgNlmXQ8la2VeHB7w==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"funding": [
|
"funding": [
|
||||||
{
|
{
|
||||||
@ -1332,9 +1332,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/tailwindcss": {
|
"node_modules/tailwindcss": {
|
||||||
"version": "4.1.10",
|
"version": "4.1.8",
|
||||||
"resolved": "https://registry.npmjs.org/tailwindcss/-/tailwindcss-4.1.10.tgz",
|
"resolved": "https://registry.npmjs.org/tailwindcss/-/tailwindcss-4.1.8.tgz",
|
||||||
"integrity": "sha512-P3nr6WkvKV/ONsTzj6Gb57sWPMX29EPNPopo7+FcpkQaNsrNpZ1pv8QmrYI2RqEKD7mlGqLnGovlcYnBK0IqUA==",
|
"integrity": "sha512-kjeW8gjdxasbmFKpVGrGd5T4i40mV5J2Rasw48QARfYeQ8YS9x02ON9SFWax3Qf616rt4Cp3nVNIj6Hd1mP3og==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"license": "MIT"
|
"license": "MIT"
|
||||||
},
|
},
|
||||||
@ -1391,9 +1391,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/tinyglobby/node_modules/fdir": {
|
"node_modules/tinyglobby/node_modules/fdir": {
|
||||||
"version": "6.4.6",
|
"version": "6.4.5",
|
||||||
"resolved": "https://registry.npmjs.org/fdir/-/fdir-6.4.6.tgz",
|
"resolved": "https://registry.npmjs.org/fdir/-/fdir-6.4.5.tgz",
|
||||||
"integrity": "sha512-hiFoqpyZcfNm1yc4u8oWCf9A2c4D3QjCrks3zmoVKVxpQRzmPNar1hUJcBG2RQHvEVGDN+Jm81ZheVLAQMK6+w==",
|
"integrity": "sha512-4BG7puHpVsIYxZUbiUE3RqGloLaSSwzYie5jvasC4LWuBWzZawynvYouhjbQKw2JuIGYdm0DzIxl8iVidKlUEw==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
|
@ -6,10 +6,10 @@
|
|||||||
"build": "hugo --gc --minify --themesDir=../.. --source=exampleSite"
|
"build": "hugo --gc --minify --themesDir=../.. --source=exampleSite"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@tailwindcss/postcss": "^4.1.8",
|
"@tailwindcss/postcss": "^4.0.17",
|
||||||
"postcss-cli": "^11.0.1",
|
"postcss-cli": "^11.0.1",
|
||||||
"prettier": "^3.5.3",
|
"prettier": "^3.5.3",
|
||||||
"prettier-plugin-go-template": "^0.0.15",
|
"prettier-plugin-go-template": "^0.0.15",
|
||||||
"tailwindcss": "^4.1.8"
|
"tailwindcss": "^4.0.17"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user