mirror of
https://github.com/imfing/hextra.git
synced 2025-07-04 08:17:23 -04:00
Compare commits
7 Commits
v0.8.5
...
cabd024584
Author | SHA1 | Date | |
---|---|---|---|
cabd024584 | |||
f65aca556d | |||
7b7eb0f1f3 | |||
80fae9f86d | |||
1358c5b945 | |||
b4d292010b | |||
f66c915d5b |
@ -21,7 +21,7 @@
|
|||||||
- **响应式布局和深色模式支持** - 在任何设备上看起来都足够美观, 无论是手机, 平板电脑或者电脑. 深色模式的支持使 Hextra 可以应对各种照明环境.
|
- **响应式布局和深色模式支持** - 在任何设备上看起来都足够美观, 无论是手机, 平板电脑或者电脑. 深色模式的支持使 Hextra 可以应对各种照明环境.
|
||||||
- **快速且轻量** - 由 Hugo 强力支持, Hugo 是一个快如闪电的静态站点生成器, 这一切都只需一个可执行文件, Hextra 始终保持最小化, 无需 Javascript 或者 Node.js.
|
- **快速且轻量** - 由 Hugo 强力支持, Hugo 是一个快如闪电的静态站点生成器, 这一切都只需一个可执行文件, Hextra 始终保持最小化, 无需 Javascript 或者 Node.js.
|
||||||
- **全文搜索** - 集成了 Flexsearch 的全文搜索, 无需额外的配置.
|
- **全文搜索** - 集成了 Flexsearch 的全文搜索, 无需额外的配置.
|
||||||
- **网站中的瑞士军刀** - Markdown, 代码高亮, LaTex 数学公式, diagrams 图表和 Shortcodes 都可以用于丰富你的内容. 目录, 面包屑导航, 分页, 侧边栏等均由 Hextra 自动生成。
|
- **功能齐全** - Markdown, 代码高亮, LaTex 数学公式, diagrams 图表和 Shortcodes 都可以用于丰富你的内容. 目录, 面包屑导航, 分页, 侧边栏等均由 Hextra 自动生成。
|
||||||
- **多语言和 SEO Ready** - Hugo 的多语言模式使得构建多语言网站更简单. 具有 SEO tags, Open Graph, 和 Twitter Cards 等诸多开箱即用的功能.
|
- **多语言和 SEO Ready** - Hugo 的多语言模式使得构建多语言网站更简单. 具有 SEO tags, Open Graph, 和 Twitter Cards 等诸多开箱即用的功能.
|
||||||
|
|
||||||
## 快速开始
|
## 快速开始
|
||||||
|
@ -7,6 +7,7 @@
|
|||||||
|
|
||||||
{{- $pages := where .Site.Pages "Kind" "in" (slice "page" "section") -}}
|
{{- $pages := where .Site.Pages "Kind" "in" (slice "page" "section") -}}
|
||||||
{{- $pages = where $pages "Params.excludeSearch" "!=" true -}}
|
{{- $pages = where $pages "Params.excludeSearch" "!=" true -}}
|
||||||
|
{{- $pages = where $pages "Content" "!=" "" -}}
|
||||||
|
|
||||||
{{- $output := dict -}}
|
{{- $output := dict -}}
|
||||||
|
|
||||||
|
1754
assets/lib/mermaid/mermaid.min.js
vendored
1754
assets/lib/mermaid/mermaid.min.js
vendored
File diff suppressed because one or more lines are too long
@ -4,11 +4,11 @@ changeTheme: "Darstellung ändern"
|
|||||||
copyCode: "Code kopieren"
|
copyCode: "Code kopieren"
|
||||||
copyright: "© 2024 Hextra Project."
|
copyright: "© 2024 Hextra Project."
|
||||||
dark: "Dunkel"
|
dark: "Dunkel"
|
||||||
editThisPage: "Diese Seite auf Github bearbeiten →"
|
editThisPage: "Diese Seite auf GitHub bearbeiten →"
|
||||||
lastUpdated: "Zuletzt aktualisiert am"
|
lastUpdated: "Zuletzt aktualisiert am"
|
||||||
light: "Hell"
|
light: "Hell"
|
||||||
noResultsFound: "Keine Ergebnisse gefunden."
|
noResultsFound: "Keine Ergebnisse gefunden."
|
||||||
onThisPage: "Auf dieser Seite"
|
onThisPage: "Auf dieser Seite"
|
||||||
poweredBy: "Unterstützt durch Hextra"
|
poweredBy: "Unterstützt durch Hextra"
|
||||||
readMore: "Mehr lesen →"
|
readMore: "Mehr lesen →"
|
||||||
searchPlaceholder: "Suchen..."
|
searchPlaceholder: "Suchen..."
|
||||||
|
@ -3,7 +3,7 @@ changeLanguage: "언어변경"
|
|||||||
changeTheme: "테마변경"
|
changeTheme: "테마변경"
|
||||||
copyright: "© 2024 Hextra Project."
|
copyright: "© 2024 Hextra Project."
|
||||||
dark: "어두운 테마"
|
dark: "어두운 테마"
|
||||||
editThisPage: "Github에서 편집하기 →"
|
editThisPage: "GitHub에서 편집하기 →"
|
||||||
lastUpdated: "마지막 수정일자"
|
lastUpdated: "마지막 수정일자"
|
||||||
light: "밝은 테마"
|
light: "밝은 테마"
|
||||||
noResultsFound: "결과 없음"
|
noResultsFound: "결과 없음"
|
||||||
|
14
i18n/ru.yaml
Normal file
14
i18n/ru.yaml
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
backToTop: 'Прокрутить к началу'
|
||||||
|
changeLanguage: 'Изменить язык'
|
||||||
|
changeTheme: 'Изменить тему'
|
||||||
|
copyCode: 'Скопировать код'
|
||||||
|
copyright: '2024 Проект Hextra.'
|
||||||
|
dark: 'Темная'
|
||||||
|
editThisPage: 'Отредактировать страницу на GitHub →'
|
||||||
|
lastUpdated: 'Последнее обновление'
|
||||||
|
light: 'Светлая'
|
||||||
|
noResultsFound: 'Ничего не найдено.'
|
||||||
|
onThisPage: 'На этой странице'
|
||||||
|
poweredBy: 'При поддержке Hextra'
|
||||||
|
readMore: 'Читать далее →'
|
||||||
|
searchPlaceholder: 'Поиск...'
|
@ -4,11 +4,11 @@ changeTheme: "Змінити тему"
|
|||||||
copyCode: "Скопіювати код"
|
copyCode: "Скопіювати код"
|
||||||
copyright: "2024 Проєкт Hextra."
|
copyright: "2024 Проєкт Hextra."
|
||||||
dark: "Темна"
|
dark: "Темна"
|
||||||
editThisPage: "Редагувати цю сторінку на Github →"
|
editThisPage: "Редагувати цю сторінку на GitHub →"
|
||||||
lastUpdated: "Востаннє оновлено"
|
lastUpdated: "Востаннє оновлено"
|
||||||
light: "Світла"
|
light: "Світла"
|
||||||
noResultsFound: "Не знайдено результатів"
|
noResultsFound: "Не знайдено результатів"
|
||||||
onThisPage: "На цій сторінці"
|
onThisPage: "На цій сторінці"
|
||||||
poweredBy: "Працює завдяки Hextra"
|
poweredBy: "Працює завдяки Hextra"
|
||||||
readMore: "Читати більше →"
|
readMore: "Читати більше →"
|
||||||
searchPlaceholder: "Пошук..."
|
searchPlaceholder: "Пошук..."
|
||||||
|
@ -10,6 +10,10 @@
|
|||||||
<title>
|
<title>
|
||||||
{{- if .IsHome -}}
|
{{- if .IsHome -}}
|
||||||
{{ .Site.Title -}}
|
{{ .Site.Title -}}
|
||||||
|
{{ else if eq .Kind "page" -}}
|
||||||
|
{{ with .Title }}{{ . }} – {{ end -}}
|
||||||
|
{{ $sectionTitle := index .Site.Params.sectionsTitles .Section }}
|
||||||
|
{{ $sectionTitle | default .Site.Title }}
|
||||||
{{ else -}}
|
{{ else -}}
|
||||||
{{ with .Title }}{{ . }} – {{ end -}}
|
{{ with .Title }}{{ . }} – {{ end -}}
|
||||||
{{ .Site.Title -}}
|
{{ .Site.Title -}}
|
||||||
|
@ -42,7 +42,7 @@
|
|||||||
|
|
||||||
{{/* Display icon menu item */}}
|
{{/* Display icon menu item */}}
|
||||||
{{- if .Params.icon -}}
|
{{- if .Params.icon -}}
|
||||||
{{- $rel := cond (eq .Params.icon "mastodon") "noreferer me" "noreferer" }}
|
{{- $rel := cond (eq .Params.icon "mastodon") "noreferrer me" "noreferrer" }}
|
||||||
<a class="hx-p-2 hx-text-current" {{ if $external }}target="_blank" rel="{{ $rel }}"{{ end }} href="{{ $link }}" title="{{ or (T .Identifier) .Name | safeHTML }}">
|
<a class="hx-p-2 hx-text-current" {{ if $external }}target="_blank" rel="{{ $rel }}"{{ end }} href="{{ $link }}" title="{{ or (T .Identifier) .Name | safeHTML }}">
|
||||||
{{- partial "utils/icon.html" (dict "name" .Params.icon "attributes" "height=24") -}}
|
{{- partial "utils/icon.html" (dict "name" .Params.icon "attributes" "height=24") -}}
|
||||||
<span class="hx-sr-only">{{ or (T .Identifier) .Name | safeHTML }}</span>
|
<span class="hx-sr-only">{{ or (T .Identifier) .Name | safeHTML }}</span>
|
||||||
@ -53,7 +53,7 @@
|
|||||||
<a
|
<a
|
||||||
title="{{ or (T .Identifier) .Name | safeHTML }}"
|
title="{{ or (T .Identifier) .Name | safeHTML }}"
|
||||||
href="{{ $link }}"
|
href="{{ $link }}"
|
||||||
{{ if $external }}target="_blank" rel="noreferer"{{ end }}
|
{{ if $external }}target="_blank" rel="noreferrer"{{ end }}
|
||||||
class="hx-text-sm contrast-more:hx-text-gray-700 contrast-more:dark:hx-text-gray-100 hx-relative -hx-ml-2 hx-hidden hx-whitespace-nowrap hx-p-2 md:hx-inline-block {{ $activeClass }}"
|
class="hx-text-sm contrast-more:hx-text-gray-700 contrast-more:dark:hx-text-gray-100 hx-relative -hx-ml-2 hx-hidden hx-whitespace-nowrap hx-p-2 md:hx-inline-block {{ $activeClass }}"
|
||||||
>
|
>
|
||||||
<span class="hx-text-center">{{ or (T .Identifier) .Name | safeHTML }}</span>
|
<span class="hx-text-center">{{ or (T .Identifier) .Name | safeHTML }}</span>
|
||||||
|
@ -160,7 +160,7 @@
|
|||||||
hx-text-gray-500 hover:hx-bg-gray-100 hover:hx-text-gray-900 contrast-more:hx-border contrast-more:hx-border-transparent contrast-more:hx-text-gray-900 contrast-more:hover:hx-border-gray-900 dark:hx-text-neutral-400 dark:hover:hx-bg-primary-100/5 dark:hover:hx-text-gray-50 contrast-more:dark:hx-text-gray-50 contrast-more:dark:hover:hx-border-gray-50
|
hx-text-gray-500 hover:hx-bg-gray-100 hover:hx-text-gray-900 contrast-more:hx-border contrast-more:hx-border-transparent contrast-more:hx-text-gray-900 contrast-more:hover:hx-border-gray-900 dark:hx-text-neutral-400 dark:hover:hx-bg-primary-100/5 dark:hover:hx-text-gray-50 contrast-more:dark:hx-text-gray-50 contrast-more:dark:hover:hx-border-gray-50
|
||||||
{{- end -}}"
|
{{- end -}}"
|
||||||
href="{{ .link }}"
|
href="{{ .link }}"
|
||||||
{{ if $external }}target="_blank" rel="noreferer"{{ end }}
|
{{ if $external }}target="_blank" rel="noreferrer"{{ end }}
|
||||||
>
|
>
|
||||||
{{- .title -}}
|
{{- .title -}}
|
||||||
{{- with .context }}
|
{{- with .context }}
|
||||||
|
@ -38,7 +38,7 @@
|
|||||||
{{- $editURL = urls.JoinPath $editURL $sourceDir $path -}}
|
{{- $editURL = urls.JoinPath $editURL $sourceDir $path -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
<a class="hx-text-xs hx-font-medium hx-text-gray-500 hover:hx-text-gray-900 dark:hx-text-gray-400 dark:hover:hx-text-gray-100 contrast-more:hx-text-gray-800 contrast-more:dark:hx-text-gray-50" href="{{ $editURL }}" target="_blank" rel="noreferer">{{ $editThisPage }}</a>
|
<a class="hx-text-xs hx-font-medium hx-text-gray-500 hover:hx-text-gray-900 dark:hx-text-gray-400 dark:hover:hx-text-gray-100 contrast-more:hx-text-gray-800 contrast-more:dark:hx-text-gray-50" href="{{ $editURL }}" target="_blank" rel="noreferrer">{{ $editThisPage }}</a>
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
{{/* Scroll To Top */}}
|
{{/* Scroll To Top */}}
|
||||||
<button aria-hidden="true" id="backToTop" onClick="scrollUp();" class="hx-transition-all hx-duration-75 hx-opacity-0 hx-text-xs hx-font-medium hx-text-gray-500 hover:hx-text-gray-900 dark:hx-text-gray-400 dark:hover:hx-text-gray-100 contrast-more:hx-text-gray-800 contrast-more:dark:hx-text-gray-50">
|
<button aria-hidden="true" id="backToTop" onClick="scrollUp();" class="hx-transition-all hx-duration-75 hx-opacity-0 hx-text-xs hx-font-medium hx-text-gray-500 hover:hx-text-gray-900 dark:hx-text-gray-400 dark:hover:hx-text-gray-100 contrast-more:hx-text-gray-800 contrast-more:dark:hx-text-gray-50">
|
||||||
|
@ -25,4 +25,4 @@ tasks:
|
|||||||
- curl -o assets/lib/katex/katex.min.css https://cdn.jsdelivr.net/npm/katex@latest/dist/katex.min.css
|
- curl -o assets/lib/katex/katex.min.css https://cdn.jsdelivr.net/npm/katex@latest/dist/katex.min.css
|
||||||
- curl -o assets/lib/katex/auto-render.min.js https://cdn.jsdelivr.net/npm/katex@0.16.10/dist/contrib/auto-render.min.js
|
- curl -o assets/lib/katex/auto-render.min.js https://cdn.jsdelivr.net/npm/katex@0.16.10/dist/contrib/auto-render.min.js
|
||||||
- curl -o assets/lib/katex/mhchem.min.js https://cdn.jsdelivr.net/npm/katex@0.16.10/dist/contrib/mhchem.min.js
|
- curl -o assets/lib/katex/mhchem.min.js https://cdn.jsdelivr.net/npm/katex@0.16.10/dist/contrib/mhchem.min.js
|
||||||
- curl -o assets/lib/mermaid/mermaid.min.js https://cdn.jsdelivr.net/npm/mermaid@10.9.0/dist/mermaid.min.js
|
- curl -o assets/lib/mermaid/mermaid.min.js https://cdn.jsdelivr.net/npm/mermaid@11.3.0/dist/mermaid.min.js
|
||||||
|
Reference in New Issue
Block a user