-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b958187
commit 5f666c7
Showing
173 changed files
with
10,364 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
node_modules/ | ||
public/ | ||
resources/ | ||
|
||
.hugo_build.lock |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
{ | ||
"goTemplateBracketSpacing": true, | ||
"htmlWhitespaceSensitivity": "css", | ||
"printWidth": 200, | ||
"singleQuote": false, | ||
"tabWidth": 2, | ||
"trailingComma": "es5", | ||
"overrides": [ | ||
{ | ||
"files": [ | ||
"*.html" | ||
], | ||
"options": { | ||
"parser": "go-template" | ||
} | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
MIT License | ||
|
||
Copyright (c) 2023 Xin | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
<div align="center"> | ||
<h1 align="center">هگزترا</h1> | ||
<p align="center">تم هیوگو مدرن، پاسخگو و دارای امکانات کامل برای ایجاد وبسایتهای استاتیک زیبا.</p> | ||
|
||
نسخهی نمایشی → [imfing.github.io/hextra](https://imfing.github.io/hextra/fa) | ||
</div> | ||
|
||
<picture> | ||
<source media="(prefers-color-scheme: dark)" srcset="https://user-images.githubusercontent.com/5097752/263550533-c18343ca-3848-4230-b5c0-ee989d7916da.png"> | ||
<img alt="Hextra" src="https://user-images.githubusercontent.com/5097752/263550528-663599f9-17a1-4686-b5c4-3da233b5034d.png"> | ||
</picture> | ||
|
||
<div align="right"> | ||
<a href="https://github.com/imfing/hextra/actions/workflows/pages.yml"><img alt="GitHub Actions Status" src="https://github.com/imfing/hextra/actions/workflows/pages.yml/badge.svg"></a> <a href="https://app.netlify.com/sites/hugo-hextra/deploys"><img alt="Netlify Status" src="https://api.netlify.com/api/v1/badges/61d6e55a-2447-487e-b59f-c9537e5df175/deploy-status"></a> | ||
</div> | ||
|
||
## ویژگیها | ||
|
||
- **طراحی زیبا** - با الهام از Nextra، هگزترا از Tailwind CSS برای ارائه یک طراحی مدرن که سایت شما را برجسته میکند، استفاده میکند. | ||
- **طراحی واکنشگرا و حالت تیره** - در تمام دستگاهها، از تلفن همراه، تبلت تا دسکتاپ، عالی به نظر میرسد. حالت تیره نیز برای انطباق با شرایط مختلف روشنایی پشتیبانی میشود. | ||
- **سریع و سبک** - طراحی شده توسط Hugo، یک ایجادکننده سایت استاتیک سریع مثل رعد و برق که در یک فایل باینری قرار گرفته است، هگزترا ردپای خود را به حداقل میرساند. برای استفاده از آن به جاوااسکریپت یا Node.js نیازی ندارید. | ||
- **جستجوی متن کامل** - جستجوی متن کاملا آفلاین داخلی طراحی شده توسط FlexSearch، بدون نیاز به پیکربندی اضافی. | ||
- **امکانات کامل** - برای بهتر کردن محتوای شما مارکداون، برجستهکردن سینتکس، فرمولهای ریاضی LaTeX، نمودارها و عناصر Shortcodeها را شامل میشه. فهرست مطالب، بردکرامب، صفحهبندی، پیمایش نوار کناری و موارد دیگر همه به صورت خودکار تولید میشوند. | ||
- **چند زبانه و سئو آماده** - سایتهای چند زبانه با حالت چند زبانه Hugo راحت ساخته میشوند. پشتیبانی خارج از جعبه برای برچسبهای سئو، Open Graph و کارتهای توییتر گنجانده شده است. | ||
|
||
## شروع کنید | ||
|
||
### شروع سریع از طریق Template | ||
|
||
استفاده از [Hextra Starter Template](https://github.com/imfing/hextra-starter-template) سادهترین روش برای راهاندازی سریع یک وبسایت جدید با تم هگزترا است. با کلیک بر روی دکمه "Use this template" در بالای صفحه مخزن شروع کنید. | ||
|
||
مخزن تم همچنین شامل یک [گردش کار گیتهاب Actions](https://docs.github.com/en/pages/getting-started-with-github-pages/configuring-a-publishing-source-for-your-github-pages-site#publishing-with-a-custom-github-actions-workflow) رای بهکاراندازی وبسایت شما در گیتهاب Pages است. | ||
|
||
<img alt="Hextra Starter Template" src="https://user-images.githubusercontent.com/5097752/263551418-c403b9a9-a76c-47a6-8466-513d772ef0b7.jpg" width=600/> | ||
|
||
### استفاده | ||
|
||
برای اطلاعات بیشتر به بخش [مستندات](https://imfing.github.io/hextra/fa/docs) مراجعه کنید. | ||
|
||
## مشارکت کردن | ||
|
||
از مشارکت افراد جدید استقبال میکنیم. | ||
برای شروع، [راهنمای مشارکت](.github/CONTRIBUTING.md) را بررسی کنید. | ||
|
||
## مجوز | ||
|
||
[مجوز MIT](./LICENSE) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
<div align="center"> | ||
<h1 align="center">Hextra</h1> | ||
<p align="center">Modern, responsive, batteries-included Hugo theme for creating beautiful static websites.</p> | ||
|
||
Demo → [imfing.github.io/hextra](https://imfing.github.io/hextra/) | ||
</div> | ||
|
||
<picture> | ||
<source media="(prefers-color-scheme: dark)" srcset="https://user-images.githubusercontent.com/5097752/263550533-c18343ca-3848-4230-b5c0-ee989d7916da.png"> | ||
<img alt="Hextra" src="https://user-images.githubusercontent.com/5097752/263550528-663599f9-17a1-4686-b5c4-3da233b5034d.png"> | ||
</picture> | ||
|
||
<div align="right"> | ||
<a href="https://github.com/imfing/hextra/actions/workflows/pages.yml"><img alt="GitHub Actions Status" src="https://github.com/imfing/hextra/actions/workflows/pages.yml/badge.svg"></a> <a href="https://app.netlify.com/sites/hugo-hextra/deploys"><img alt="Netlify Status" src="https://api.netlify.com/api/v1/badges/61d6e55a-2447-487e-b59f-c9537e5df175/deploy-status"></a> | ||
</div> | ||
|
||
## Features | ||
|
||
- **Beautiful Design** - Inspired by Nextra, Hextra utilizes Tailwind CSS to offer a modern design that makes your site look outstanding. | ||
- **Responsive Layout and Dark Mode** - It looks great on all devices, from mobile to desktop. Dark mode is also supported to accommodate various lighting conditions. | ||
- **Fast and Lightweight** - Powered by Hugo, a lightning-fast static-site generator housed in a single binary file, Hextra keeps its footprint minimal. No JavaScript or Node.js are needed to use it. | ||
- **Full-text Search** - Built-in offline full-text search powered by FlexSearch, no extra configuration required. | ||
- **Battery-included** - Markdown, syntax highlighting, LaTeX math formulae, diagrams and Shortcodes elements to enhance your content. Table of contents, breadcrumbs, pagination, sidebar navigation and more are all automatically generated. | ||
- **Multi-language and SEO Ready** - Multi-language sites made easy with Hugo's multilingual mode. Out-of-the-box support is included for SEO tags, Open Graph, and Twitter Cards. | ||
|
||
## Quick Start | ||
|
||
### Use the template | ||
|
||
Using the [Hextra Starter Template](https://github.com/imfing/hextra-starter-template) is the simplest method to bootstrap a new website with Hextra theme. Get started by clicking the "Use this template" button on the template repository page. | ||
|
||
The template repository also includes a [GitHub Actions workflow](https://docs.github.com/en/pages/getting-started-with-github-pages/configuring-a-publishing-source-for-your-github-pages-site#publishing-with-a-custom-github-actions-workflow) for deploying your website to GitHub Pages. | ||
|
||
<img alt="Hextra Starter Template" src="https://user-images.githubusercontent.com/5097752/263551418-c403b9a9-a76c-47a6-8466-513d772ef0b7.jpg" width=600/> | ||
|
||
### Usage | ||
|
||
Refer to the [documentation](https://imfing.github.io/hextra/docs) for more information. | ||
|
||
## Contributing | ||
|
||
Contributions are welcome. | ||
Check out the [contributing guide](.github/CONTRIBUTING.md) to get started. | ||
|
||
## License | ||
|
||
[MIT License](./LICENSE) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
<div align="center"> | ||
<h1 align="center">Hextra</h1> | ||
<p align="center">用于创建美观的静态站点的现代化, 响应式, 功能强大的 Hugo 主题.</p> | ||
|
||
演示 → [imfing.github.io/hextra](https://imfing.github.io/hextra/) | ||
</div> | ||
|
||
<picture> | ||
<source media="(prefers-color-scheme: dark)" srcset="https://user-images.githubusercontent.com/5097752/263550533-c18343ca-3848-4230-b5c0-ee989d7916da.png"> | ||
<img alt="Hextra" src="https://user-images.githubusercontent.com/5097752/263550528-663599f9-17a1-4686-b5c4-3da233b5034d.png"> | ||
</picture> | ||
|
||
<div align="right"> | ||
<a href="https://github.com/imfing/hextra/actions/workflows/pages.yml"><img alt="GitHub Actions Status" src="https://github.com/imfing/hextra/actions/workflows/pages.yml/badge.svg"></a> <a href="https://app.netlify.com/sites/hugo-hextra/deploys"><img alt="Netlify Status" src="https://api.netlify.com/api/v1/badges/61d6e55a-2447-487e-b59f-c9537e5df175/deploy-status"></a> | ||
</div> | ||
|
||
## 特性 | ||
|
||
- **美观的设计** - 受 Nextra 的启发,Hextra 利用 Tailwind CSS 提供现代化的设计,使您的网站看起来美观有加. | ||
- **响应式布局和深色模式支持** - 在任何设备上看起来都足够美观, 无论是手机, 平板电脑或者电脑. 深色模式的支持使 Hextra 可以应对各种照明环境. | ||
- **快速且轻量** - 由 Hugo 强力支持, Hugo 是一个快如闪电的静态站点生成器, 这一切都只需一个可执行文件, Hextra 始终保持最小化, 无需 Javascript 或者 Node.js. | ||
- **全文搜索** - 集成了 Flexsearch 的全文搜索, 无需额外的配置. | ||
- **网站中的瑞士军刀** - Markdown, 代码高亮, LaTex 数学公式, diagrams 图表和 Shortcodes 都可以用于丰富你的内容. 目录, 面包屑导航, 分页, 侧边栏等均由 Hextra 自动生成。 | ||
- **多语言和 SEO Ready** - Hugo 的多语言模式使得构建多语言网站更简单. 具有 SEO tags, Open Graph, 和 Twitter Cards 等诸多开箱即用的功能. | ||
|
||
## 快速开始 | ||
|
||
### 使用模板 | ||
|
||
使用 [Hextra stater template](https://github.com/imfing/hextra-starter-template) 是使用 Hextra 主题的最简单方法. 点击仓库页面上的 `Use this template` 按钮开始使用. | ||
|
||
此仓库中包含一个 [GitHub Actions workflow](https://docs.github.com/en/pages/getting-started-with-github-pages/configuring-a-publishing-source-for-your-github-pages-site#publishing-with-a-custom-github-actions-workflow) 来帮助你免费在 GitHub Pages 上自动构建和部署网站. | ||
|
||
### 使用 | ||
|
||
转至[文档](https://imfing.github.io/hextra/zh-cn/docs) | ||
|
||
## 贡献 | ||
|
||
该项目正在积极开发中. 欢迎贡献! | ||
|
||
## 许可证 | ||
|
||
[MIT License](./LICENSE) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,89 @@ | ||
.dark .highlight { | ||
/* Background .bg { color: #c9d1d9; background-color: #0d1117; } | ||
/* PreWrapper .chroma { color: #c9d1d9; background-color: #0d1117; } */ | ||
/* Other */ .chroma .x { } | ||
/* Error */ .chroma .err { color: #f85149 } | ||
/* CodeLine */ .chroma .cl { } | ||
/* LineLink */ .chroma .lnlinks { outline: none; text-decoration: none; color: inherit } | ||
/* LineTableTD .chroma .lntd { vertical-align: top; padding: 0; margin: 0; border: 0; } */ | ||
/* LineTable .chroma .lntable { border-spacing: 0; padding: 0; margin: 0; border: 0; } */ | ||
/* LineHighlight .chroma .hl { background-color: #ffffcc } */ | ||
/* LineNumbersTable .chroma .lnt { white-space: pre; -webkit-user-select: none; user-select: none; margin-right: 0.4em; padding: 0 0.4em 0 0.4em;color: #64686c } */ | ||
/* LineNumbers .chroma .ln { white-space: pre; -webkit-user-select: none; user-select: none; margin-right: 0.4em; padding: 0 0.4em 0 0.4em;color: #6e7681 } */ | ||
/* Line */ .chroma .line { display: flex; } | ||
/* Keyword */ .chroma .k { color: #ff7b72 } | ||
/* KeywordConstant */ .chroma .kc { color: #79c0ff } | ||
/* KeywordDeclaration */ .chroma .kd { color: #ff7b72 } | ||
/* KeywordNamespace */ .chroma .kn { color: #ff7b72 } | ||
/* KeywordPseudo */ .chroma .kp { color: #79c0ff } | ||
/* KeywordReserved */ .chroma .kr { color: #ff7b72 } | ||
/* KeywordType */ .chroma .kt { color: #ff7b72 } | ||
/* Name */ .chroma .n { } | ||
/* NameAttribute */ .chroma .na { } | ||
/* NameBuiltin */ .chroma .nb { } | ||
/* NameBuiltinPseudo */ .chroma .bp { } | ||
/* NameClass */ .chroma .nc { color: #f0883e; font-weight: bold } | ||
/* NameConstant */ .chroma .no { color: #79c0ff; font-weight: bold } | ||
/* NameDecorator */ .chroma .nd { color: #d2a8ff; font-weight: bold } | ||
/* NameEntity */ .chroma .ni { color: #ffa657 } | ||
/* NameException */ .chroma .ne { color: #f0883e; font-weight: bold } | ||
/* NameFunction */ .chroma .nf { color: #d2a8ff; font-weight: bold } | ||
/* NameFunctionMagic */ .chroma .fm { } | ||
/* NameLabel */ .chroma .nl { color: #79c0ff; font-weight: bold } | ||
/* NameNamespace */ .chroma .nn { color: #ff7b72 } | ||
/* NameOther */ .chroma .nx { } | ||
/* NameProperty */ .chroma .py { color: #79c0ff } | ||
/* NameTag */ .chroma .nt { color: #7ee787 } | ||
/* NameVariable */ .chroma .nv { color: #79c0ff } | ||
/* NameVariableClass */ .chroma .vc { } | ||
/* NameVariableGlobal */ .chroma .vg { } | ||
/* NameVariableInstance */ .chroma .vi { } | ||
/* NameVariableMagic */ .chroma .vm { } | ||
/* Literal */ .chroma .l { color: #a5d6ff } | ||
/* LiteralDate */ .chroma .ld { color: #79c0ff } | ||
/* LiteralString */ .chroma .s { color: #a5d6ff } | ||
/* LiteralStringAffix */ .chroma .sa { color: #79c0ff } | ||
/* LiteralStringBacktick */ .chroma .sb { color: #a5d6ff } | ||
/* LiteralStringChar */ .chroma .sc { color: #a5d6ff } | ||
/* LiteralStringDelimiter */ .chroma .dl { color: #79c0ff } | ||
/* LiteralStringDoc */ .chroma .sd { color: #a5d6ff } | ||
/* LiteralStringDouble */ .chroma .s2 { color: #a5d6ff } | ||
/* LiteralStringEscape */ .chroma .se { color: #79c0ff } | ||
/* LiteralStringHeredoc */ .chroma .sh { color: #79c0ff } | ||
/* LiteralStringInterpol */ .chroma .si { color: #a5d6ff } | ||
/* LiteralStringOther */ .chroma .sx { color: #a5d6ff } | ||
/* LiteralStringRegex */ .chroma .sr { color: #79c0ff } | ||
/* LiteralStringSingle */ .chroma .s1 { color: #a5d6ff } | ||
/* LiteralStringSymbol */ .chroma .ss { color: #a5d6ff } | ||
/* LiteralNumber */ .chroma .m { color: #a5d6ff } | ||
/* LiteralNumberBin */ .chroma .mb { color: #a5d6ff } | ||
/* LiteralNumberFloat */ .chroma .mf { color: #a5d6ff } | ||
/* LiteralNumberHex */ .chroma .mh { color: #a5d6ff } | ||
/* LiteralNumberInteger */ .chroma .mi { color: #a5d6ff } | ||
/* LiteralNumberIntegerLong */ .chroma .il { color: #a5d6ff } | ||
/* LiteralNumberOct */ .chroma .mo { color: #a5d6ff } | ||
/* Operator */ .chroma .o { color: #ff7b72; font-weight: bold } | ||
/* OperatorWord */ .chroma .ow { color: #ff7b72; font-weight: bold } | ||
/* Punctuation */ .chroma .p { } | ||
/* Comment */ .chroma .c { color: #8b949e; font-style: italic } | ||
/* CommentHashbang */ .chroma .ch { color: #8b949e; font-style: italic } | ||
/* CommentMultiline */ .chroma .cm { color: #8b949e; font-style: italic } | ||
/* CommentSingle */ .chroma .c1 { color: #8b949e; font-style: italic } | ||
/* CommentSpecial */ .chroma .cs { color: #8b949e; font-weight: bold; font-style: italic } | ||
/* CommentPreproc */ .chroma .cp { color: #8b949e; font-weight: bold; font-style: italic } | ||
/* CommentPreprocFile */ .chroma .cpf { color: #8b949e; font-weight: bold; font-style: italic } | ||
/* Generic */ .chroma .g { } | ||
/* GenericDeleted */ .chroma .gd { color: #ffa198; background-color: #490202 } | ||
/* GenericEmph */ .chroma .ge { font-style: italic } | ||
/* GenericError */ .chroma .gr { color: #ffa198 } | ||
/* GenericHeading */ .chroma .gh { color: #79c0ff; font-weight: bold } | ||
/* GenericInserted */ .chroma .gi { color: #56d364; background-color: #0f5323 } | ||
/* GenericOutput */ .chroma .go { color: #8b949e } | ||
/* GenericPrompt */ .chroma .gp { color: #8b949e } | ||
/* GenericStrong */ .chroma .gs { font-weight: bold } | ||
/* GenericSubheading */ .chroma .gu { color: #79c0ff } | ||
/* GenericTraceback */ .chroma .gt { color: #ff7b72 } | ||
/* GenericUnderline */ .chroma .gl { text-decoration: underline } | ||
/* TextWhitespace */ .chroma .w { color: #6e7681 } | ||
} | ||
|
Oops, something went wrong.