Skip to content

Commit 0c7622f

Browse files
author
chenyunfei.cs
committed
init
0 parents  commit 0c7622f

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

89 files changed

+6948
-0
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
2+
public/*

.gitmodules

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
[submodule "hextra"]
2+
path = hextra
3+
url = [email protected]:imfing/hextra.git
4+
[submodule "themes/hextra"]
5+
path = themes/hextra
6+
url = [email protected]:imfing/hextra.git

archetypes/default.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
+++
2+
title = '{{ replace .File.ContentBaseName "-" " " | title }}'
3+
date = {{ .Date }}
4+
draft = true
5+
+++

content/_index.fa.md

Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
---
2+
title: تم هگزترا
3+
layout: hextra-home
4+
---
5+
6+
{{< hextra/hero-badge >}}
7+
<div class="hx-w-2 hx-h-2 hx-rounded-full hx-bg-primary-400"></div>
8+
<span>آزاد، متن‌باز</span>
9+
{{< icon name="arrow-circle-left" attributes="height=14" >}}
10+
{{< /hextra/hero-badge >}}
11+
12+
<div class="hx-mt-6 hx-mb-6">
13+
{{< hextra/hero-headline >}}
14+
ساخت وب‌سایت‌های مدرن &nbsp;<br class="sm:hx-block hx-hidden" />با مارک‌داون و هیوگو
15+
{{< /hextra/hero-headline >}}
16+
</div>
17+
18+
<div class="hx-mb-12">
19+
{{< hextra/hero-subtitle >}}
20+
تم هیوگو سریع و دارای امکانات کامل&nbsp;<br class="sm:hx-block hx-hidden" />برای ایجاد وب‌سایت‌های استاتیک زیبا
21+
{{< /hextra/hero-subtitle >}}
22+
</div>
23+
24+
<div class="hx-mb-6">
25+
{{< hextra/hero-button text="شروع کنید" link="docs" >}}
26+
</div>
27+
28+
<div class="hx-mt-6"></div>
29+
30+
{{< hextra/feature-grid >}}
31+
{{< hextra/feature-card
32+
title="سریع و با امکانات کامل"
33+
subtitle="ساده و آسان برای استفاده، در عین حال قدرتمند و غنی از ویژگی‌ها متنوع."
34+
class="hx-aspect-auto md:hx-aspect-[1.1/1] max-md:hx-min-h-[340px]"
35+
image="/images/hextra-doc.webp"
36+
imageClass="hx-top-[40%] hx-left-[24px] hx-w-[180%] sm:hx-w-[110%] dark:hx-opacity-80"
37+
style="background: radial-gradient(ellipse at 50% 80%,rgba(194,97,254,0.15),hsla(0,0%,100%,0));"
38+
>}}
39+
{{< hextra/feature-card
40+
title="مارک‌داون تنها چیزی است که شما نیاز دارید"
41+
subtitle="فقط با مارک‌داون بنویسید. تکمیل و کامل با کامپوننت‌های کد کوتاه."
42+
class="hx-aspect-auto md:hx-aspect-[1.1/1] max-lg:hx-min-h-[340px]"
43+
image="/images/hextra-markdown.webp"
44+
imageClass="hx-top-[40%] hx-left-[36px] hx-w-[180%] sm:hx-w-[110%] dark:hx-opacity-80"
45+
style="background: radial-gradient(ellipse at 50% 80%,rgba(142,53,74,0.15),hsla(0,0%,100%,0));"
46+
>}}
47+
{{< hextra/feature-card
48+
title="جستجوی کامل متن"
49+
subtitle="جستجوی متن کامل داخلی با FlexSearch، بدون نیاز به نصب موارد اضافی."
50+
class="hx-aspect-auto md:hx-aspect-[1.1/1] max-md:hx-min-h-[340px]"
51+
image="/images/hextra-search.webp"
52+
imageClass="hx-top-[40%] hx-left-[36px] hx-w-[110%] sm:hx-w-[110%] dark:hx-opacity-80"
53+
style="background: radial-gradient(ellipse at 50% 80%,rgba(221,210,59,0.15),hsla(0,0%,100%,0));"
54+
>}}
55+
{{< hextra/feature-card
56+
title="سبک مانند یک پر"
57+
subtitle="برای استفاده از هگزترا به هیچ وابستگی یا Node.js نیاز نیست. با پشتیبانی از هیوگو، یکی از سریع‌ترین تولیدکنندگان سایت استاتیک، سایت شما را تنها در چند ثانیه با یک باینری می‌سازد."
58+
>}}
59+
{{< hextra/feature-card
60+
title=" واکنش‌گرا با حالت تیره"
61+
subtitle="در اندازه‌های مختلف صفحه نمایش عالی به نظر می‌رسد. پشتیبانی از حالت تیره داخلی، با تغییر خودکار براساس اولویت سیستم کاربر."
62+
>}}
63+
{{< hextra/feature-card
64+
title="ساخت و میزبانی رایگان"
65+
subtitle="با گیت‌هاب Actions بسازید و به صورت رایگان در گیت‌هاب Pages میزبانی کنید. یا می‌توانید آن را در هر سرویس میزبانی استاتیک میزبانی کنید."
66+
>}}
67+
{{< hextra/feature-card
68+
title="چند زبانه آسان"
69+
subtitle="فقط با افزودن پسوند محلی به پرونده مارک‌داون صفحات وب‌سایت چند زبانه ایجاد کنید. افزودن پشتیبانی i18n به سایت شما بصری است."
70+
>}}
71+
{{< hextra/feature-card
72+
title="و خیلی بیشتر..."
73+
icon="sparkles"
74+
subtitle="برجسته‌کردن سینتکس / فهرست مطالب / سئو / RSS / LaTeX / Mermaid / سفارشی‌سازی / و موارد دیگر…"
75+
>}}
76+
{{< /hextra/feature-grid >}}

content/_index.md

Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
---
2+
title: Hextra Theme
3+
layout: hextra-home
4+
---
5+
6+
{{< hextra/hero-badge >}}
7+
<div class="hx-w-2 hx-h-2 hx-rounded-full hx-bg-primary-400"></div>
8+
<span>Free, open source</span>
9+
{{< icon name="arrow-circle-right" attributes="height=14" >}}
10+
{{< /hextra/hero-badge >}}
11+
12+
<div class="hx-mt-6 hx-mb-6">
13+
{{< hextra/hero-headline >}}
14+
Build modern websites&nbsp;<br class="sm:hx-block hx-hidden" />with Markdown and Hugo
15+
{{< /hextra/hero-headline >}}
16+
</div>
17+
18+
<div class="hx-mb-12">
19+
{{< hextra/hero-subtitle >}}
20+
Fast, batteries-included Hugo theme&nbsp;<br class="sm:hx-block hx-hidden" />for creating beautiful static websites
21+
{{< /hextra/hero-subtitle >}}
22+
</div>
23+
24+
<div class="hx-mb-6">
25+
{{< hextra/hero-button text="Get Started" link="docs" >}}
26+
</div>
27+
28+
<div class="hx-mt-6"></div>
29+
30+
{{< hextra/feature-grid >}}
31+
{{< hextra/feature-card
32+
title="Fast and Full-featured"
33+
subtitle="Simple and easy to use, yet powerful and feature-rich."
34+
class="hx-aspect-auto md:hx-aspect-[1.1/1] max-md:hx-min-h-[340px]"
35+
image="images/hextra-doc.webp"
36+
imageClass="hx-top-[40%] hx-left-[24px] hx-w-[180%] sm:hx-w-[110%] dark:hx-opacity-80"
37+
style="background: radial-gradient(ellipse at 50% 80%,rgba(194,97,254,0.15),hsla(0,0%,100%,0));"
38+
>}}
39+
{{< hextra/feature-card
40+
title="Markdown is All You Need"
41+
subtitle="Compose with just Markdown. Enrich with Shortcode components."
42+
class="hx-aspect-auto md:hx-aspect-[1.1/1] max-lg:hx-min-h-[340px]"
43+
image="images/hextra-markdown.webp"
44+
imageClass="hx-top-[40%] hx-left-[36px] hx-w-[180%] sm:hx-w-[110%] dark:hx-opacity-80"
45+
style="background: radial-gradient(ellipse at 50% 80%,rgba(142,53,74,0.15),hsla(0,0%,100%,0));"
46+
>}}
47+
{{< hextra/feature-card
48+
title="Full Text Search"
49+
subtitle="Built-in full text search with FlexSearch, no extra setup required."
50+
class="hx-aspect-auto md:hx-aspect-[1.1/1] max-md:hx-min-h-[340px]"
51+
image="images/hextra-search.webp"
52+
imageClass="hx-top-[40%] hx-left-[36px] hx-w-[110%] sm:hx-w-[110%] dark:hx-opacity-80"
53+
style="background: radial-gradient(ellipse at 50% 80%,rgba(221,210,59,0.15),hsla(0,0%,100%,0));"
54+
>}}
55+
{{< hextra/feature-card
56+
title="Lightweight as a Feather"
57+
subtitle="No dependency or Node.js is needed to use Hextra. Powered by Hugo, one of *the fastest* static site generators, building your site in just seconds with a single binary."
58+
>}}
59+
{{< hextra/feature-card
60+
title="Responsive with Dark Mode Included"
61+
subtitle="Looks great on different screen sizes. Built-in dark mode support, with auto-switching based on user's system preference."
62+
>}}
63+
{{< hextra/feature-card
64+
title="Build and Host for Free"
65+
subtitle="Build with GitHub Actions, and host for free on GitHub Pages. Alternatively it can be hosted on any static hosting service."
66+
>}}
67+
{{< hextra/feature-card
68+
title="Multi-Language Made Easy"
69+
subtitle="Create multi-language pages by just adding locales suffix to the Markdown file. Adding i18n support to your site is intuitive."
70+
>}}
71+
{{< hextra/feature-card
72+
title="And Much More..."
73+
icon="sparkles"
74+
subtitle="Syntax highlighting / Table of contents / SEO / RSS / LaTeX / Mermaid / Customizable / and more..."
75+
>}}
76+
{{< /hextra/feature-grid >}}

content/_index.zh-cn.md

Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
---
2+
title: Hextra 主题
3+
layout: hextra-home
4+
---
5+
6+
{{< hextra/hero-badge >}}
7+
<div class="hx-w-2 hx-h-2 hx-rounded-full hx-bg-primary-400"></div>
8+
<span>免费 开源</span>
9+
{{< icon name="arrow-circle-right" attributes="height=14" >}}
10+
{{< /hextra/hero-badge >}}
11+
12+
<div class="hx-mt-6 hx-mb-6">
13+
{{< hextra/hero-headline >}}
14+
创建现代化网站&nbsp;<br class="sm:hx-block hx-hidden" />由 Markdown 和 Hugo 驱动
15+
{{< /hextra/hero-headline >}}
16+
</div>
17+
18+
<div class="hx-mb-12">
19+
{{< hextra/hero-subtitle >}}
20+
极速且全能的 Hugo 主题框架&nbsp;<br class="sm:hx-block hx-hidden" />为构建现代化的静态网站而生
21+
{{< /hextra/hero-subtitle >}}
22+
</div>
23+
24+
<div class="hx-mb-6">
25+
{{< hextra/hero-button text="现在开始" link="docs" >}}
26+
</div>
27+
28+
<div class="hx-mt-6"></div>
29+
30+
{{< hextra/feature-grid >}}
31+
{{< hextra/feature-card
32+
title="快速且功能全面"
33+
subtitle="简单易用,功能强大丰富。"
34+
class="hx-aspect-auto md:hx-aspect-[1.1/1] max-md:hx-min-h-[340px]"
35+
image="/images/hextra-doc.webp"
36+
imageClass="hx-top-[40%] hx-left-[24px] hx-w-[180%] sm:hx-w-[110%] dark:hx-opacity-80"
37+
style="background: radial-gradient(ellipse at 50% 80%,rgba(194,97,254,0.15),hsla(0,0%,100%,0));"
38+
>}}
39+
{{< hextra/feature-card
40+
title="Markdown 写作"
41+
subtitle="只需使用 Markdown 进行编辑。多样的 Shortcode 组件开箱即用。"
42+
class="hx-aspect-auto md:hx-aspect-[1.1/1] max-lg:hx-min-h-[340px]"
43+
image="/images/hextra-markdown.webp"
44+
imageClass="hx-top-[40%] hx-left-[36px] hx-w-[180%] sm:hx-w-[110%] dark:hx-opacity-80"
45+
style="background: radial-gradient(ellipse at 50% 80%,rgba(142,53,74,0.15),hsla(0,0%,100%,0));"
46+
>}}
47+
{{< hextra/feature-card
48+
title="全文搜索"
49+
subtitle="内置 FlexSearch 全文搜索,无需额外设置。"
50+
class="hx-aspect-auto md:hx-aspect-[1.1/1] max-md:hx-min-h-[340px]"
51+
image="/images/hextra-search.webp"
52+
imageClass="hx-top-[40%] hx-left-[36px] hx-w-[110%] sm:hx-w-[110%] dark:hx-opacity-80"
53+
style="background: radial-gradient(ellipse at 50% 80%,rgba(221,210,59,0.15),hsla(0,0%,100%,0));"
54+
>}}
55+
{{< hextra/feature-card
56+
title="轻如羽毛"
57+
subtitle="使用 Hextra 无需依赖 Node.js。由 Hugo 提供支持,Hugo 是最快的静态网站生成器之一,只需一个二进制文件即可在数秒内创建网站。"
58+
>}}
59+
{{< hextra/feature-card
60+
title="响应式布局,暗黑模式"
61+
subtitle="适应不同的屏幕尺寸。内置暗黑模式支持,并根据用户的系统偏好自动切换。"
62+
>}}
63+
{{< hextra/feature-card
64+
title="免费构建和托管"
65+
subtitle="使用 GitHub Actions 进行构建,并在 GitHub Pages 上免费托管。也可以托管在任何静态托管服务上。"
66+
>}}
67+
{{< hextra/feature-card
68+
title="多语言轻松实现"
69+
subtitle="仅需通过在 Markdown 文件后添加语言代码即可创建多语言页面。向您的站点添加 i18n 支持直观易行。"
70+
>}}
71+
{{< hextra/feature-card
72+
title="还有更多..."
73+
icon="sparkles"
74+
subtitle="代码高亮 / 目录 / SEO / RSS / LaTeX 公式 / Mermaid 图标 / 自定义 / 等等..."
75+
>}}
76+
{{< /hextra/feature-grid >}}

content/about/index.fa.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
---
2+
title: درباره ما
3+
toc: false
4+
---
5+
6+
هگزترا به گونه‌ای طراحی شده است که یک موضوع ساده، سریع و انعطاف پذیر برای ساخت وب‌سایت‌های استاتیک مدرن باشد. این به ویژه برای وب‌سایت‌های مستندسازی مناسب است اما می‌تواند برای انواع مختلف سایت‌ها مانند وبلاگ‌ها، نمونه‌کار و موارد دیگر نیز استفاده شود.
7+
8+
Hugo مانند Jekyll، یک ایجادکننده سایت استاتیک است. چیزی که Hugo را متمایز می‌کند این است که یک باینری واحد است و نصب و اجرای آن بر روی پلتفرم‌های مختلف را آسان می‌کند. همچنین بسیار سریع و قابل اعتماد است و می‌تواند یک سایت را با هزاران صفحه در میلی‌ثانیه ارائه دهد.
9+
10+
هگزترا با ذهنیتی ساخته شده است که بر داشتن حداقل ردپا متمرکز شده است. برای شروع، هیچ وابستگی اضافی مانند بسته‌های Node.js لازم نیست. تنها چیزی که نیاز دارید یک پرونده پیکربندی YAML به همراه محتوای مارک‌داون شما است. بنابراین، شما می‌توانید به جای تنظیم ابزار، روی نوشتن محتوای با کیفیت تمرکز کنید.
11+
12+
## اعتبار
13+
14+
ترجمه فارسی مستندات توسط [گودرز جعفری](https://goudarzjafari.com/) انجام شده است.
15+
16+
هگزترا بدون ابزار و الهامات زیر ساخته نمی‌شود:
17+
18+
- [هیوگو](https://gohugo.io/)
19+
- [Tailwind CSS](https://tailwindcss.com/)
20+
- [Heroicons](https://heroicons.com/)
21+
- [Nextra](https://nextra.vercel.app/)
22+
- [Next.js](https://nextjs.org/)

content/about/index.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
---
2+
title: About
3+
toc: false
4+
---
5+
6+
Hextra is designed to be a simple, fast, and flexible theme for building modern static websites. It is especially well-suited for documentation websites but can also be used for various types of sites, such as blogs, portfolios, and more.
7+
8+
Hugo, like Jekyll, is a static site generator. What sets Hugo apart is that it is a single binary, making it easy to install and run on various platforms. It is also extremely fast and reliable, capable of rendering a site with thousands of pages in milliseconds.
9+
10+
Hextra is built with a mindset focused on having a minimal footprint. To get started, no extra dependencies like Node.js packages are required; all you need is a single YAML configuration file, along with your Markdown content. Thus, we can focus on writing quality content instead of setting up tooling.
11+
12+
## Credits
13+
14+
Hextra cannot be built without the following tools and inspirations:
15+
16+
- [Hugo](https://gohugo.io/)
17+
- [Tailwind CSS](https://tailwindcss.com/)
18+
- [Heroicons](https://heroicons.com/)
19+
- [Nextra](https://nextra.vercel.app/)
20+
- [Next.js](https://nextjs.org/)

content/about/index.zh-cn.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
---
2+
title: 关于
3+
toc: false
4+
---
5+
6+
Hextra 是一款简洁、快速、灵活的主题,适用于构建现代化静态站点。Hextra 特别适用于文档网站,但也可用于构建博客、个人网站等各种类型的网站。
7+
8+
Hugo 和 Jekyll 类似,是一个静态网站生成器。但与其他生成器不同,Hugo 只有单个可执行文件,这使得它可以轻松地在各种平台上安装和运行。Hugo 的运行速度非常快且可靠性高,能够在几毫秒内渲染数千页的网站。
9+
10+
Hextra 被设计为轻量级,具有最小化的内存占用。使用 Hextra 无需安装繁杂的依赖,比如 Node.js;相反,你只需要一个简单的 YAML 配置文件和 Markdown 内容。因此,我们可以专注于内容而非在配置环境上浪费精力。
11+
12+
## 鸣谢
13+
14+
Hextra 的设计离不开这些项目的支持和其提供的灵感:
15+
16+
- [Hugo](https://gohugo.io/)
17+
- [Tailwind CSS](https://tailwindcss.com/)
18+
- [Heroicons](https://heroicons.com/)
19+
- [Nextra](https://nextra.vercel.app/)
20+
- [Next.js](https://nextjs.org/)

content/blog/_index.fa.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
title: "وبلاگ"
3+
---
4+
5+
<div style="text-align: center; margin-top: 1em;">
6+
{{< hextra/hero-badge link="index.xml" >}}
7+
<span>خوراک RSS</span>
8+
{{< icon name="rss" attributes="height=14" >}}
9+
{{< /hextra/hero-badge >}}
10+
</div>

0 commit comments

Comments
 (0)