+
{{< hextra/hero-button text="现在开始" link="docs" >}}
-
+
{{< hextra/feature-grid >}}
{{< hextra/feature-card
title="快速且功能全面"
subtitle="简单易用,功能强大丰富。"
- class="aspect-auto md:aspect-[1.1/1] max-md:min-h-[340px]"
+ class="hx-aspect-auto md:hx-aspect-[1.1/1] max-md:hx-min-h-[340px]"
image="/images/hextra-doc.webp"
- imageClass="top-[40%] left-[24px] w-[180%] sm:w-[110%] dark:opacity-80"
+ imageClass="hx-top-[40%] hx-left-[24px] hx-w-[180%] sm:hx-w-[110%] dark:hx-opacity-80"
style="background: radial-gradient(ellipse at 50% 80%,rgba(194,97,254,0.15),hsla(0,0%,100%,0));"
>}}
{{< hextra/feature-card
title="Markdown 写作"
subtitle="只需使用 Markdown 进行编辑。多样的 Shortcode 组件开箱即用。"
- class="aspect-auto md:aspect-[1.1/1] max-lg:min-h-[340px]"
+ class="hx-aspect-auto md:hx-aspect-[1.1/1] max-lg:hx-min-h-[340px]"
image="/images/hextra-markdown.webp"
- imageClass="top-[40%] left-[36px] w-[180%] sm:w-[110%] dark:opacity-80"
+ imageClass="hx-top-[40%] hx-left-[36px] hx-w-[180%] sm:hx-w-[110%] dark:hx-opacity-80"
style="background: radial-gradient(ellipse at 50% 80%,rgba(142,53,74,0.15),hsla(0,0%,100%,0));"
>}}
{{< hextra/feature-card
title="全文搜索"
subtitle="内置 FlexSearch 全文搜索,无需额外设置。"
- class="aspect-auto md:aspect-[1.1/1] max-md:min-h-[340px]"
+ class="hx-aspect-auto md:hx-aspect-[1.1/1] max-md:hx-min-h-[340px]"
image="/images/hextra-search.webp"
- imageClass="top-[40%] left-[36px] w-[110%] sm:w-[110%] dark:opacity-80"
+ imageClass="hx-top-[40%] hx-left-[36px] hx-w-[110%] sm:hx-w-[110%] dark:hx-opacity-80"
style="background: radial-gradient(ellipse at 50% 80%,rgba(221,210,59,0.15),hsla(0,0%,100%,0));"
>}}
{{< hextra/feature-card
diff --git a/exampleSite/content/showcase/index.fa.md b/exampleSite/content/showcase/index.fa.md
index 70eabb1b..11211803 100644
--- a/exampleSite/content/showcase/index.fa.md
+++ b/exampleSite/content/showcase/index.fa.md
@@ -5,9 +5,9 @@ toc: false
layout: wide
---
-
+
-
+
پروژههای متنباز که توسط هگزترا طراحی شدهاند.
diff --git a/exampleSite/content/showcase/index.md b/exampleSite/content/showcase/index.md
index b7de1fe8..5a799ed3 100644
--- a/exampleSite/content/showcase/index.md
+++ b/exampleSite/content/showcase/index.md
@@ -5,9 +5,9 @@ toc: false
layout: wide
---
-
+
-
+
Open source projects powered by Hextra.
diff --git a/exampleSite/content/showcase/index.zh-cn.md b/exampleSite/content/showcase/index.zh-cn.md
index 99aabc1c..2959c8f2 100644
--- a/exampleSite/content/showcase/index.zh-cn.md
+++ b/exampleSite/content/showcase/index.zh-cn.md
@@ -5,9 +5,9 @@ toc: false
layout: wide
---
-
+
-
+
由 Hextra 驱动的开源网站和项目。
diff --git a/exampleSite/hugo_stats.json b/exampleSite/hugo_stats.json
index 96fe6508..46e46a7d 100644
--- a/exampleSite/hugo_stats.json
+++ b/exampleSite/hugo_stats.json
@@ -58,231 +58,158 @@
"ul"
],
"classes": [
- "-mb-0.5",
- "-ml-2",
- "-mr-2",
- "-mt-20",
+ "-hx-mb-0.5",
+ "-hx-ml-2",
+ "-hx-mr-2",
+ "-hx-mt-20",
"[-webkit-tap-highlight-color:transparent]",
"[-webkit-touch-callout:none]",
"[counter-reset:step]",
"[hyphens:auto]",
"[transition:background-color_1.5s_ease]",
"[word-break:break-word]",
- "absolute",
- "active:bg-gray-400/20",
- "active:opacity-50",
- "active:shadow-gray-200",
- "active:shadow-sm",
- "align-[-2.5px]",
- "align-text-bottom",
- "appearance-none",
- "aspect-auto",
- "before:absolute",
- "before:bg-glass-gradient",
- "before:bg-gray-200",
- "before:content-[\"\"]",
- "before:content-['#']",
- "before:content-['']",
- "before:inline-block",
- "before:inset-0",
- "before:inset-y-1",
- "before:mr-1",
- "before:opacity-25",
- "before:pointer-events-none",
- "before:transition-transform",
- "before:w-px",
- "bg-black/80",
- "bg-black/[.05]",
- "bg-blue-100",
- "bg-clip-text",
- "bg-gradient-to-r",
- "bg-gray-100",
- "bg-neutral-50",
- "bg-orange-50",
- "bg-primary-100",
- "bg-primary-400",
- "bg-primary-600",
- "bg-primary-700/5",
- "bg-red-100",
- "bg-transparent",
- "bg-white",
- "bg-yellow-50",
- "block",
- "border",
- "border-b",
- "border-b-2",
- "border-black/5",
- "border-blue-200",
- "border-gray-200",
- "border-gray-500",
- "border-l",
- "border-orange-100",
- "border-red-200",
- "border-t",
- "border-transparent",
- "border-yellow-100",
- "bottom-0",
- "break-words",
- "capitalize",
+ "active:hx-bg-gray-400/20",
+ "active:hx-opacity-50",
+ "active:hx-shadow-gray-200",
+ "active:hx-shadow-sm",
+ "before:hx-absolute",
+ "before:hx-bg-glass-gradient",
+ "before:hx-bg-gray-200",
+ "before:hx-content-[\"\"]",
+ "before:hx-content-['#']",
+ "before:hx-content-['']",
+ "before:hx-inline-block",
+ "before:hx-inset-0",
+ "before:hx-inset-y-1",
+ "before:hx-mr-1",
+ "before:hx-opacity-25",
+ "before:hx-pointer-events-none",
+ "before:hx-transition-transform",
+ "before:hx-w-px",
"chroma",
"code-block",
"code-copy-btn",
"content",
- "contrast-more:border",
- "contrast-more:border-current",
- "contrast-more:border-gray-800",
- "contrast-more:border-gray-900",
- "contrast-more:border-neutral-400",
- "contrast-more:border-primary-500",
- "contrast-more:border-t",
- "contrast-more:border-transparent",
- "contrast-more:dark:border-current",
- "contrast-more:dark:border-gray-50",
- "contrast-more:dark:border-neutral-400",
- "contrast-more:dark:border-primary-500",
- "contrast-more:dark:hover:border-gray-50",
- "contrast-more:dark:shadow-[0_0_0_1px_#fff]",
- "contrast-more:dark:shadow-none",
- "contrast-more:dark:text-current",
- "contrast-more:dark:text-gray-100",
- "contrast-more:dark:text-gray-300",
- "contrast-more:dark:text-gray-50",
- "contrast-more:font-bold",
- "contrast-more:hover:border-gray-900",
- "contrast-more:shadow-[0_0_0_1px_#000]",
- "contrast-more:shadow-none",
- "contrast-more:text-current",
- "contrast-more:text-gray-700",
- "contrast-more:text-gray-800",
- "contrast-more:text-gray-900",
- "contrast-more:underline",
+ "contrast-more:dark:hover:hx-border-gray-50",
+ "contrast-more:dark:hx-border-current",
+ "contrast-more:dark:hx-border-gray-50",
+ "contrast-more:dark:hx-border-neutral-400",
+ "contrast-more:dark:hx-border-primary-500",
+ "contrast-more:dark:hx-shadow-[0_0_0_1px_#fff]",
+ "contrast-more:dark:hx-shadow-none",
+ "contrast-more:dark:hx-text-current",
+ "contrast-more:dark:hx-text-gray-100",
+ "contrast-more:dark:hx-text-gray-300",
+ "contrast-more:dark:hx-text-gray-50",
+ "contrast-more:hover:hx-border-gray-900",
+ "contrast-more:hx-border",
+ "contrast-more:hx-border-current",
+ "contrast-more:hx-border-gray-800",
+ "contrast-more:hx-border-gray-900",
+ "contrast-more:hx-border-neutral-400",
+ "contrast-more:hx-border-primary-500",
+ "contrast-more:hx-border-t",
+ "contrast-more:hx-border-transparent",
+ "contrast-more:hx-font-bold",
+ "contrast-more:hx-shadow-[0_0_0_1px_#000]",
+ "contrast-more:hx-shadow-none",
+ "contrast-more:hx-text-current",
+ "contrast-more:hx-text-gray-700",
+ "contrast-more:hx-text-gray-800",
+ "contrast-more:hx-text-gray-900",
+ "contrast-more:hx-underline",
"copy-icon",
- "cursor-default",
- "cursor-pointer",
- "dark:before:bg-neutral-800",
- "dark:before:invert",
- "dark:bg-black/60",
- "dark:bg-blue-900/30",
- "dark:bg-dark",
- "dark:bg-dark/50",
- "dark:bg-gray-50/10",
- "dark:bg-neutral-800",
- "dark:bg-neutral-900",
- "dark:bg-orange-400/20",
- "dark:bg-primary-300/10",
- "dark:bg-primary-400/10",
- "dark:bg-primary-600",
- "dark:bg-red-900/30",
- "dark:bg-yellow-700/30",
- "dark:block",
- "dark:border-blue-200/30",
- "dark:border-gray-100/20",
- "dark:border-gray-400",
- "dark:border-neutral-700",
- "dark:border-neutral-800",
- "dark:border-orange-400/30",
- "dark:border-red-200/30",
- "dark:border-white/10",
- "dark:border-yellow-200/30",
- "dark:contrast-more:border-neutral-400",
- "dark:focus:bg-dark",
- "dark:focus:ring-primary-800",
- "dark:from-gray-100",
- "dark:hidden",
- "dark:hover:bg-gray-100/5",
- "dark:hover:bg-neutral-700",
- "dark:hover:bg-neutral-800",
- "dark:hover:bg-neutral-900",
- "dark:hover:bg-primary-100/5",
- "dark:hover:bg-primary-700",
- "dark:hover:border-gray-100",
- "dark:hover:border-gray-600",
- "dark:hover:border-neutral-500",
- "dark:hover:border-neutral-700",
- "dark:hover:border-neutral-800",
- "dark:hover:shadow-none",
- "dark:hover:text-gray-100",
- "dark:hover:text-gray-200",
- "dark:hover:text-gray-300",
- "dark:hover:text-gray-50",
- "dark:hover:text-neutral-50",
- "dark:hover:text-white",
- "dark:opacity-80",
- "dark:placeholder:text-gray-400",
- "dark:ring-white/20",
- "dark:shadow-[0_-12px_16px_#111]",
- "dark:shadow-[0_-1px_0_rgba(255,255,255,.1)_inset]",
- "dark:shadow-none",
- "dark:text-blue-200",
- "dark:text-gray-100",
- "dark:text-gray-200",
- "dark:text-gray-300",
- "dark:text-gray-400",
- "dark:text-gray-50",
- "dark:text-neutral-200",
- "dark:text-neutral-400",
- "dark:text-orange-300",
- "dark:text-primary-600",
- "dark:text-red-200",
- "dark:text-slate-100",
- "dark:text-yellow-200",
- "dark:to-gray-400",
- "data-[state=closed]:hidden",
- "data-[state=open]:hidden",
- "data-[state=selected]:block",
- "data-[state=selected]:border-primary-500",
- "data-[state=selected]:text-primary-600",
- "decoration-from-font",
- "duration-200",
- "duration-75",
- "ease-in",
+ "dark:before:hx-bg-neutral-800",
+ "dark:before:hx-invert",
+ "dark:contrast-more:hx-border-neutral-400",
+ "dark:focus:hx-bg-dark",
+ "dark:focus:hx-ring-primary-800",
+ "dark:hover:hx-bg-gray-100/5",
+ "dark:hover:hx-bg-neutral-700",
+ "dark:hover:hx-bg-neutral-800",
+ "dark:hover:hx-bg-neutral-900",
+ "dark:hover:hx-bg-primary-100/5",
+ "dark:hover:hx-bg-primary-700",
+ "dark:hover:hx-border-gray-100",
+ "dark:hover:hx-border-gray-600",
+ "dark:hover:hx-border-neutral-500",
+ "dark:hover:hx-border-neutral-700",
+ "dark:hover:hx-border-neutral-800",
+ "dark:hover:hx-shadow-none",
+ "dark:hover:hx-text-gray-100",
+ "dark:hover:hx-text-gray-200",
+ "dark:hover:hx-text-gray-300",
+ "dark:hover:hx-text-gray-50",
+ "dark:hover:hx-text-neutral-50",
+ "dark:hover:hx-text-white",
+ "dark:hx-bg-black/60",
+ "dark:hx-bg-blue-900/30",
+ "dark:hx-bg-dark",
+ "dark:hx-bg-dark/50",
+ "dark:hx-bg-gray-50/10",
+ "dark:hx-bg-neutral-800",
+ "dark:hx-bg-neutral-900",
+ "dark:hx-bg-orange-400/20",
+ "dark:hx-bg-primary-300/10",
+ "dark:hx-bg-primary-400/10",
+ "dark:hx-bg-primary-600",
+ "dark:hx-bg-red-900/30",
+ "dark:hx-bg-yellow-700/30",
+ "dark:hx-block",
+ "dark:hx-border-blue-200/30",
+ "dark:hx-border-gray-100/20",
+ "dark:hx-border-gray-400",
+ "dark:hx-border-neutral-700",
+ "dark:hx-border-neutral-800",
+ "dark:hx-border-orange-400/30",
+ "dark:hx-border-red-200/30",
+ "dark:hx-border-white/10",
+ "dark:hx-border-yellow-200/30",
+ "dark:hx-from-gray-100",
+ "dark:hx-hidden",
+ "dark:hx-opacity-80",
+ "dark:hx-ring-white/20",
+ "dark:hx-shadow-[0_-12px_16px_#111]",
+ "dark:hx-shadow-[0_-1px_0_rgba(255,255,255,.1)_inset]",
+ "dark:hx-shadow-none",
+ "dark:hx-text-blue-200",
+ "dark:hx-text-gray-100",
+ "dark:hx-text-gray-200",
+ "dark:hx-text-gray-300",
+ "dark:hx-text-gray-400",
+ "dark:hx-text-gray-50",
+ "dark:hx-text-neutral-200",
+ "dark:hx-text-neutral-400",
+ "dark:hx-text-orange-300",
+ "dark:hx-text-primary-600",
+ "dark:hx-text-red-200",
+ "dark:hx-text-slate-100",
+ "dark:hx-text-yellow-200",
+ "dark:hx-to-gray-400",
+ "dark:placeholder:hx-text-gray-400",
+ "data-[state=closed]:hx-hidden",
+ "data-[state=open]:hx-hidden",
+ "data-[state=selected]:hx-block",
+ "data-[state=selected]:hx-border-primary-500",
+ "data-[state=selected]:hx-text-primary-600",
"filename",
- "first:mt-0",
- "fixed",
- "flex",
- "flex-col",
- "flex-wrap",
- "focus:bg-white",
- "focus:outline-none",
- "focus:ring-4",
- "focus:ring-primary-300",
- "font-bold",
- "font-extrabold",
- "font-medium",
- "font-mono",
- "font-normal",
- "font-semibold",
+ "first:hx-mt-0",
+ "focus:hx-bg-white",
+ "focus:hx-outline-none",
+ "focus:hx-ring-4",
+ "focus:hx-ring-primary-300",
"footnote-backref",
"footnote-ref",
"footnotes",
- "from-gray-900",
- "gap-1",
- "gap-2",
- "gap-4",
- "gap-x-1.5",
- "gap-y-2",
- "grid",
- "grid-cols-1",
- "group",
- "group-[.copied]/copybtn:block",
- "group-[.copied]/copybtn:hidden",
- "group-data-[theme=dark]:hidden",
- "group-data-[theme=light]:hidden",
- "group-hover/code:opacity-100",
- "group-hover:underline",
- "group-open:before:rotate-90",
+ "group-[.copied]/copybtn:hx-block",
+ "group-[.copied]/copybtn:hx-hidden",
+ "group-data-[theme=dark]:hx-hidden",
+ "group-data-[theme=light]:hx-hidden",
+ "group-hover/code:hx-opacity-100",
+ "group-hover:hx-underline",
+ "group-open:before:hx-rotate-90",
"group/code",
"group/copybtn",
- "grow",
- "h-0",
- "h-16",
- "h-2",
- "h-3.5",
- "h-4",
- "h-5",
- "h-7",
- "h-[18px]",
- "h-full",
"hamburger-menu",
"hextra-card",
"hextra-cards",
@@ -293,312 +220,385 @@
"hextra-scrollbar",
"hextra-sidebar-collapsible-button",
"hextra-toc",
- "hidden",
"highlight",
- "hover:bg-gray-100",
- "hover:bg-gray-800/5",
- "hover:bg-primary-50",
- "hover:bg-primary-700",
- "hover:bg-slate-50",
- "hover:border-gray-200",
- "hover:border-gray-300",
- "hover:border-gray-400",
- "hover:border-gray-900",
- "hover:dark:bg-primary-500/10",
- "hover:dark:text-primary-600",
- "hover:opacity-60",
- "hover:opacity-75",
- "hover:shadow-gray-100",
- "hover:shadow-lg",
- "hover:shadow-md",
- "hover:text-black",
- "hover:text-gray-800",
- "hover:text-gray-900",
- "hover:text-primary-600",
+ "hover:dark:hx-bg-primary-500/10",
+ "hover:dark:hx-text-primary-600",
+ "hover:hx-bg-gray-100",
+ "hover:hx-bg-gray-800/5",
+ "hover:hx-bg-primary-50",
+ "hover:hx-bg-primary-700",
+ "hover:hx-bg-slate-50",
+ "hover:hx-border-gray-200",
+ "hover:hx-border-gray-300",
+ "hover:hx-border-gray-400",
+ "hover:hx-border-gray-900",
+ "hover:hx-opacity-60",
+ "hover:hx-opacity-75",
+ "hover:hx-shadow-gray-100",
+ "hover:hx-shadow-lg",
+ "hover:hx-shadow-md",
+ "hover:hx-text-black",
+ "hover:hx-text-gray-800",
+ "hover:hx-text-gray-900",
+ "hover:hx-text-primary-600",
+ "hx-absolute",
+ "hx-align-[-2.5px]",
+ "hx-align-text-bottom",
+ "hx-appearance-none",
+ "hx-aspect-auto",
+ "hx-bg-black/80",
+ "hx-bg-black/[.05]",
+ "hx-bg-blue-100",
+ "hx-bg-clip-text",
+ "hx-bg-gradient-to-r",
+ "hx-bg-gray-100",
+ "hx-bg-neutral-50",
+ "hx-bg-orange-50",
+ "hx-bg-primary-100",
+ "hx-bg-primary-400",
+ "hx-bg-primary-600",
+ "hx-bg-primary-700/5",
+ "hx-bg-red-100",
+ "hx-bg-transparent",
+ "hx-bg-white",
+ "hx-bg-yellow-50",
+ "hx-block",
+ "hx-border",
+ "hx-border-b",
+ "hx-border-b-2",
+ "hx-border-black/5",
+ "hx-border-blue-200",
+ "hx-border-gray-200",
+ "hx-border-gray-500",
+ "hx-border-l",
+ "hx-border-orange-100",
+ "hx-border-red-200",
+ "hx-border-t",
+ "hx-border-transparent",
+ "hx-border-yellow-100",
+ "hx-bottom-0",
+ "hx-break-words",
+ "hx-capitalize",
+ "hx-cursor-default",
+ "hx-cursor-pointer",
+ "hx-decoration-from-font",
+ "hx-duration-200",
+ "hx-duration-75",
+ "hx-ease-in",
+ "hx-fixed",
+ "hx-flex",
+ "hx-flex-col",
+ "hx-flex-wrap",
+ "hx-font-bold",
+ "hx-font-extrabold",
+ "hx-font-medium",
+ "hx-font-mono",
+ "hx-font-normal",
+ "hx-font-semibold",
+ "hx-from-gray-900",
+ "hx-gap-1",
+ "hx-gap-2",
+ "hx-gap-4",
+ "hx-gap-x-1.5",
+ "hx-gap-y-2",
+ "hx-grid",
+ "hx-grid-cols-1",
+ "hx-group",
+ "hx-grow",
+ "hx-h-0",
+ "hx-h-16",
+ "hx-h-2",
+ "hx-h-3.5",
+ "hx-h-4",
+ "hx-h-5",
+ "hx-h-7",
+ "hx-h-[18px]",
+ "hx-h-full",
+ "hx-hidden",
+ "hx-inline",
+ "hx-inline-block",
+ "hx-inline-flex",
+ "hx-inset-0",
+ "hx-inset-x-0",
+ "hx-inset-y-0",
+ "hx-items-center",
+ "hx-items-start",
+ "hx-justify-between",
+ "hx-justify-center",
+ "hx-justify-end",
+ "hx-justify-items-start",
+ "hx-justify-start",
+ "hx-leading-5",
+ "hx-leading-6",
+ "hx-leading-7",
+ "hx-leading-none",
+ "hx-leading-tight",
+ "hx-left-[24px]",
+ "hx-left-[36px]",
+ "hx-line-clamp-3",
+ "hx-list-none",
+ "hx-m-[11px]",
+ "hx-max-h-64",
+ "hx-max-h-[calc(100vh-var(--navbar-height)-env(safe-area-inset-bottom))]",
+ "hx-max-h-[min(calc(50vh-11rem-env(safe-area-inset-bottom)),400px)]",
+ "hx-max-w-6xl",
+ "hx-max-w-[50%]",
+ "hx-max-w-[90rem]",
+ "hx-max-w-[min(calc(100vw-2rem),calc(100%+20rem))]",
+ "hx-max-w-none",
+ "hx-max-w-screen-xl",
+ "hx-mb-10",
+ "hx-mb-12",
+ "hx-mb-16",
+ "hx-mb-2",
+ "hx-mb-4",
+ "hx-mb-6",
+ "hx-mb-8",
+ "hx-min-h-[100px]",
+ "hx-min-h-[calc(100vh-var(--navbar-height))]",
+ "hx-min-w-0",
+ "hx-min-w-[18px]",
+ "hx-min-w-[24px]",
+ "hx-min-w-full",
+ "hx-ml-1",
+ "hx-ml-4",
+ "hx-mr-1",
+ "hx-mr-2",
+ "hx-mt-1",
+ "hx-mt-1.5",
+ "hx-mt-12",
+ "hx-mt-16",
+ "hx-mt-2",
+ "hx-mt-4",
+ "hx-mt-5",
+ "hx-mt-6",
+ "hx-mt-8",
+ "hx-mx-1",
+ "hx-mx-2",
+ "hx-mx-4",
+ "hx-mx-auto",
+ "hx-my-1.5",
+ "hx-my-2",
+ "hx-no-underline",
+ "hx-opacity-0",
+ "hx-opacity-50",
+ "hx-opacity-80",
+ "hx-order-last",
+ "hx-origin-center",
+ "hx-overflow-auto",
+ "hx-overflow-hidden",
+ "hx-overflow-x-auto",
+ "hx-overflow-x-hidden",
+ "hx-overflow-y-auto",
+ "hx-overscroll-contain",
+ "hx-p-0.5",
+ "hx-p-1",
+ "hx-p-1.5",
+ "hx-p-2",
+ "hx-p-4",
+ "hx-p-6",
+ "hx-pb-8",
+ "hx-pb-[env(safe-area-inset-bottom)]",
+ "hx-pb-px",
+ "hx-pl-5",
+ "hx-pl-6",
+ "hx-pl-[max(env(safe-area-inset-left),1.5rem)]",
+ "hx-pointer-events-none",
+ "hx-pr-2",
+ "hx-pr-4",
+ "hx-pr-[calc(env(safe-area-inset-right)-1.5rem)]",
+ "hx-pr-[max(env(safe-area-inset-left),1.5rem)]",
+ "hx-pr-[max(env(safe-area-inset-right),1.5rem)]",
+ "hx-pt-4",
+ "hx-pt-6",
+ "hx-pt-8",
+ "hx-px-1.5",
+ "hx-px-2",
+ "hx-px-3",
+ "hx-px-4",
+ "hx-px-6",
+ "hx-py-1",
+ "hx-py-1.5",
+ "hx-py-12",
+ "hx-py-2",
+ "hx-py-2.5",
+ "hx-py-3",
+ "hx-py-4",
+ "hx-relative",
+ "hx-right-0",
+ "hx-ring-1",
+ "hx-ring-black/5",
+ "hx-rounded",
+ "hx-rounded-3xl",
+ "hx-rounded-full",
+ "hx-rounded-lg",
+ "hx-rounded-md",
+ "hx-rounded-sm",
+ "hx-rounded-t",
+ "hx-rounded-xl",
+ "hx-scroll-my-6",
+ "hx-scroll-py-6",
+ "hx-select-none",
+ "hx-shadow",
+ "hx-shadow-[0_-12px_16px_#fff]",
+ "hx-shadow-[0_-12px_16px_white]",
+ "hx-shadow-[0_2px_4px_rgba(0,0,0,.02),0_1px_0_rgba(0,0,0,.06)]",
+ "hx-shadow-gray-100",
+ "hx-shadow-lg",
+ "hx-shadow-sm",
+ "hx-shadow-xl",
+ "hx-shrink-0",
+ "hx-sr-only",
+ "hx-sticky",
+ "hx-text-2xl",
+ "hx-text-4xl",
+ "hx-text-[10px]",
+ "hx-text-[color:hsl(var(--primary-hue),100%,50%)]",
+ "hx-text-base",
+ "hx-text-blue-900",
+ "hx-text-center",
+ "hx-text-current",
+ "hx-text-ellipsis",
+ "hx-text-gray-100",
+ "hx-text-gray-500",
+ "hx-text-gray-600",
+ "hx-text-gray-700",
+ "hx-text-gray-800",
+ "hx-text-gray-900",
+ "hx-text-left",
+ "hx-text-lg",
+ "hx-text-orange-800",
+ "hx-text-primary-800",
+ "hx-text-red-900",
+ "hx-text-slate-900",
+ "hx-text-sm",
+ "hx-text-transparent",
+ "hx-text-white",
+ "hx-text-xl",
+ "hx-text-xs",
+ "hx-text-yellow-900",
+ "hx-to-gray-600",
+ "hx-top-0",
+ "hx-top-16",
+ "hx-top-8",
+ "hx-top-[40%]",
+ "hx-top-full",
+ "hx-tracking-tight",
+ "hx-tracking-tighter",
+ "hx-transition",
+ "hx-transition-all",
+ "hx-transition-colors",
+ "hx-transition-opacity",
+ "hx-transition-transform",
+ "hx-underline",
+ "hx-underline-offset-2",
+ "hx-w-2",
+ "hx-w-3.5",
+ "hx-w-4",
+ "hx-w-64",
+ "hx-w-[110%]",
+ "hx-w-[180%]",
+ "hx-w-full",
+ "hx-w-max",
+ "hx-w-screen",
+ "hx-whitespace-nowrap",
+ "hx-z-10",
+ "hx-z-20",
+ "hx-z-[-1]",
"icon",
- "inline",
- "inline-block",
- "inline-flex",
- "inset-0",
- "inset-x-0",
- "inset-y-0",
- "items-center",
- "items-start",
- "justify-between",
- "justify-center",
- "justify-end",
- "justify-items-start",
- "justify-start",
"language-options",
"language-switcher",
- "last-of-type:mb-0",
- "leading-5",
- "leading-6",
- "leading-7",
- "leading-none",
- "leading-tight",
- "left-[24px]",
- "left-[36px]",
- "lg:grid-cols-3",
- "line-clamp-3",
- "list-none",
+ "last-of-type:hx-mb-0",
+ "lg:hx-grid-cols-3",
"lntable",
"lntd",
- "ltr:-mr-4",
- "ltr:before:left-0",
- "ltr:md:left-auto",
- "ltr:ml-3",
- "ltr:ml-auto",
- "ltr:mr-auto",
- "ltr:pl-12",
- "ltr:pl-16",
- "ltr:pl-3",
- "ltr:pl-4",
- "ltr:pl-8",
- "ltr:pr-0",
- "ltr:pr-2",
- "ltr:pr-4",
- "ltr:pr-9",
- "ltr:right-1.5",
- "ltr:right-3",
- "ltr:rotate-180",
- "ltr:text-right",
- "m-[11px]",
- "max-h-64",
- "max-h-[calc(100vh-var(--navbar-height)-env(safe-area-inset-bottom))]",
- "max-h-[min(calc(50vh-11rem-env(safe-area-inset-bottom)),400px)]",
- "max-lg:min-h-[340px]",
+ "ltr:before:hx-left-0",
+ "ltr:hx--mr-4",
+ "ltr:hx-ml-3",
+ "ltr:hx-ml-auto",
+ "ltr:hx-mr-auto",
+ "ltr:hx-pl-12",
+ "ltr:hx-pl-16",
+ "ltr:hx-pl-3",
+ "ltr:hx-pl-4",
+ "ltr:hx-pl-8",
+ "ltr:hx-pr-0",
+ "ltr:hx-pr-2",
+ "ltr:hx-pr-4",
+ "ltr:hx-pr-9",
+ "ltr:hx-right-1.5",
+ "ltr:hx-right-3",
+ "ltr:hx-rotate-180",
+ "ltr:hx-text-right",
+ "ltr:md:hx-left-auto",
+ "max-lg:hx-min-h-[340px]",
"max-md:[transform:translate3d(0,-100%,0)]",
- "max-md:hidden",
- "max-md:min-h-[340px]",
- "max-w-6xl",
- "max-w-[50%]",
- "max-w-[90rem]",
- "max-w-[min(calc(100vw-2rem),calc(100%+20rem))]",
- "max-w-none",
- "max-w-screen-xl",
- "max-xl:hidden",
- "mb-10",
- "mb-12",
- "mb-16",
- "mb-2",
- "mb-4",
- "mb-6",
- "mb-8",
- "md:aspect-[1.1/1]",
- "md:h-[calc(100vh-var(--navbar-height)-var(--menu-height))]",
- "md:hidden",
- "md:inline-block",
- "md:justify-start",
- "md:max-h-[min(calc(100vh-5rem-env(safe-area-inset-bottom)),400px)]",
- "md:pt-12",
- "md:px-12",
- "md:self-start",
- "md:shrink-0",
- "md:sticky",
- "md:text-5xl",
- "md:text-lg",
- "md:text-sm",
- "md:top-16",
- "md:w-64",
+ "max-md:hx-hidden",
+ "max-md:hx-min-h-[340px]",
+ "max-xl:hx-hidden",
+ "md:hx-aspect-[1.1/1]",
+ "md:hx-h-[calc(100vh-var(--navbar-height)-var(--menu-height))]",
+ "md:hx-hidden",
+ "md:hx-inline-block",
+ "md:hx-justify-start",
+ "md:hx-max-h-[min(calc(100vh-5rem-env(safe-area-inset-bottom)),400px)]",
+ "md:hx-pt-12",
+ "md:hx-px-12",
+ "md:hx-self-start",
+ "md:hx-shrink-0",
+ "md:hx-sticky",
+ "md:hx-text-5xl",
+ "md:hx-text-lg",
+ "md:hx-text-sm",
+ "md:hx-top-16",
+ "md:hx-w-64",
"mermaid",
- "min-h-[100px]",
- "min-h-[calc(100vh-var(--navbar-height))]",
- "min-w-0",
- "min-w-[18px]",
- "min-w-[24px]",
- "min-w-full",
- "ml-1",
- "ml-4",
"mobile-menu-overlay",
- "mr-1",
- "mr-2",
- "mt-1",
- "mt-1.5",
- "mt-12",
- "mt-16",
- "mt-2",
- "mt-4",
- "mt-5",
- "mt-6",
- "mt-8",
- "mx-1",
- "mx-2",
- "mx-4",
- "mx-auto",
- "my-1.5",
- "my-2",
"nav-container",
"nav-container-blur",
"next-error-h1",
- "no-underline",
"not-prose",
- "opacity-0",
- "opacity-50",
- "opacity-80",
"open",
- "order-last",
- "origin-center",
- "overflow-auto",
- "overflow-hidden",
- "overflow-x-auto",
- "overflow-x-hidden",
- "overflow-y-auto",
- "overscroll-contain",
- "p-0.5",
- "p-1",
- "p-1.5",
- "p-2",
- "p-4",
- "p-6",
- "pb-8",
- "pb-[env(safe-area-inset-bottom)]",
- "pb-px",
- "pl-5",
- "pl-6",
- "pl-[max(env(safe-area-inset-left),1.5rem)]",
- "placeholder:text-gray-500",
- "pointer-events-none",
- "pr-2",
- "pr-4",
- "pr-[calc(env(safe-area-inset-right)-1.5rem)]",
- "pr-[max(env(safe-area-inset-left),1.5rem)]",
- "pr-[max(env(safe-area-inset-right),1.5rem)]",
- "print:bg-transparent",
- "print:hidden",
- "pt-4",
- "pt-6",
- "pt-8",
- "px-1.5",
- "px-2",
- "px-3",
- "px-4",
- "px-6",
- "py-1",
- "py-1.5",
- "py-12",
- "py-2",
- "py-2.5",
- "py-3",
- "py-4",
- "relative",
- "right-0",
- "ring-1",
- "ring-black/5",
- "rounded",
- "rounded-3xl",
- "rounded-full",
- "rounded-lg",
- "rounded-md",
- "rounded-sm",
- "rounded-t",
- "rounded-xl",
- "rtl:-ml-4",
- "rtl:-rotate-180",
- "rtl:before:right-0",
- "rtl:before:rotate-180",
- "rtl:left-1.5",
- "rtl:left-3",
- "rtl:md:right-auto",
- "rtl:ml-auto",
- "rtl:mr-3",
- "rtl:mr-auto",
- "rtl:pl-2",
- "rtl:pl-4",
- "rtl:pl-9",
- "rtl:pr-12",
- "rtl:pr-16",
- "rtl:pr-3",
- "rtl:pr-4",
- "rtl:pr-8",
- "rtl:text-left",
- "scroll-my-6",
- "scroll-py-6",
+ "placeholder:hx-text-gray-500",
+ "print:hx-bg-transparent",
+ "print:hx-hidden",
+ "rtl:-hx-rotate-180",
+ "rtl:before:hx-right-0",
+ "rtl:before:hx-rotate-180",
+ "rtl:hx--ml-4",
+ "rtl:hx-left-1.5",
+ "rtl:hx-left-3",
+ "rtl:hx-ml-auto",
+ "rtl:hx-mr-3",
+ "rtl:hx-mr-auto",
+ "rtl:hx-pl-2",
+ "rtl:hx-pl-4",
+ "rtl:hx-pl-9",
+ "rtl:hx-pr-12",
+ "rtl:hx-pr-16",
+ "rtl:hx-pr-3",
+ "rtl:hx-pr-4",
+ "rtl:hx-pr-8",
+ "rtl:hx-text-left",
+ "rtl:md:hx-right-auto",
"search-input",
"search-results",
"search-wrapper",
- "select-none",
- "shadow",
- "shadow-[0_-12px_16px_#fff]",
- "shadow-[0_-12px_16px_white]",
- "shadow-[0_2px_4px_rgba(0,0,0,.02),0_1px_0_rgba(0,0,0,.06)]",
- "shadow-gray-100",
- "shadow-lg",
- "shadow-sm",
- "shadow-xl",
- "shrink-0",
"sidebar-active-item",
"sidebar-container",
- "sm:block",
- "sm:flex",
- "sm:grid-cols-2",
- "sm:items-start",
- "sm:text-xl",
- "sm:w-[110%]",
- "sr-only",
+ "sm:hx-block",
+ "sm:hx-flex",
+ "sm:hx-grid-cols-2",
+ "sm:hx-items-start",
+ "sm:hx-text-xl",
+ "sm:hx-w-[110%]",
"steps",
- "sticky",
"subheading-anchor",
"success-icon",
"tabs-panel",
"tabs-toggle",
- "text-2xl",
- "text-4xl",
- "text-[10px]",
- "text-[color:hsl(var(--primary-hue),100%,50%)]",
- "text-base",
- "text-blue-900",
- "text-center",
- "text-current",
- "text-ellipsis",
- "text-gray-100",
- "text-gray-500",
- "text-gray-600",
- "text-gray-700",
- "text-gray-800",
- "text-gray-900",
- "text-left",
- "text-lg",
- "text-orange-800",
- "text-primary-800",
- "text-red-900",
- "text-slate-900",
- "text-sm",
- "text-transparent",
- "text-white",
- "text-xl",
- "text-xs",
- "text-yellow-900",
"theme-toggle",
- "to-gray-600",
- "top-0",
- "top-16",
- "top-8",
- "top-[40%]",
- "top-full",
- "tracking-tight",
- "tracking-tighter",
- "transition",
- "transition-all",
- "transition-colors",
- "transition-opacity",
- "transition-transform",
- "underline",
- "underline-offset-2",
- "w-2",
- "w-3.5",
- "w-4",
- "w-64",
- "w-[110%]",
- "w-[180%]",
- "w-full",
- "w-max",
- "w-screen",
- "whitespace-nowrap",
- "xl:block",
- "z-10",
- "z-20",
- "z-[-1]"
+ "xl:hx-block"
],
"ids": null
}
diff --git a/layouts/_default/_markup/render-codeblock-mermaid.html b/layouts/_default/_markup/render-codeblock-mermaid.html
index fc15febe..314d679f 100644
--- a/layouts/_default/_markup/render-codeblock-mermaid.html
+++ b/layouts/_default/_markup/render-codeblock-mermaid.html
@@ -1,4 +1,4 @@
-
+
{{- .Inner | safeHTML -}}
{{- .Page.Store.Set "hasMermaid" true -}}
diff --git a/layouts/_default/_markup/render-codeblock.html b/layouts/_default/_markup/render-codeblock.html
index 1e23bd91..46e9ed6d 100644
--- a/layouts/_default/_markup/render-codeblock.html
+++ b/layouts/_default/_markup/render-codeblock.html
@@ -4,7 +4,7 @@
{{- $copyCode := (T "copyCode") | default "Copy code" -}}
-
+
{{- if $filename -}}
{{ $filename }}
{{- end -}}
@@ -13,13 +13,13 @@
{{- else -}}
{{ .Inner }}
{{- end -}}
-
diff --git a/layouts/_default/_markup/render-heading.html b/layouts/_default/_markup/render-heading.html
index a6f836a9..45c63a59 100644
--- a/layouts/_default/_markup/render-heading.html
+++ b/layouts/_default/_markup/render-heading.html
@@ -1,7 +1,7 @@
{{- .Text | safeHTML -}}
{{- if gt .Level 1 -}}
-
+
{{- end -}}
diff --git a/layouts/_default/list.html b/layouts/_default/list.html
index c7559f70..222dfb6c 100644
--- a/layouts/_default/list.html
+++ b/layouts/_default/list.html
@@ -1,14 +1,14 @@
{{ define "main" }}
-
+
{{ partial "sidebar.html" (dict "context" .) }}
{{ partial "toc.html" . }}
-
-
+
+
{{ .Title }}
{{ .Content }}
-
+
{{ partial "components/last-updated.html" . }}
{{ partial "components/comments.html" . }}
diff --git a/layouts/_default/single.html b/layouts/_default/single.html
index 01d98b86..61c49aad 100644
--- a/layouts/_default/single.html
+++ b/layouts/_default/single.html
@@ -1,16 +1,16 @@
{{ define "main" }}
-
+
{{ partial "sidebar.html" (dict "context" . "disableSidebar" true "displayPlaceholder" true) }}
{{ partial "toc.html" . }}
-
-
-
- {{ .Title }}
-
+
+
+
+ {{ .Title }}
+
{{ .Content }}
-
+
{{ partial "components/comments.html" . }}
diff --git a/layouts/_default/wide.html b/layouts/_default/wide.html
index 79d8b7cb..8813ced0 100644
--- a/layouts/_default/wide.html
+++ b/layouts/_default/wide.html
@@ -1,9 +1,9 @@
{{ define "main" }}
-
+
{{ partial "sidebar.html" (dict "context" . "disableSidebar" true "displayPlaceholder" false) }}
-
-
- {{ .Title }}
+
+
+ {{ .Title }}
{{ .Content }}
diff --git a/layouts/blog/list.html b/layouts/blog/list.html
index b22de2ec..376d5bc0 100644
--- a/layouts/blog/list.html
+++ b/layouts/blog/list.html
@@ -1,33 +1,33 @@
{{ define "main" }}
{{- $readMore := (T "readMore") | default "Read more →" -}}
-
+
{{ partial "sidebar.html" (dict "context" . "disableSidebar" true "displayPlaceholder" true) }}
-
-
-
- {{ .Title }}
+
+
+
+ {{ .Title }}
{{ .Content }}
{{ range .Pages.ByDate.Reverse }}
-
{{ end }}
diff --git a/layouts/blog/single.html b/layouts/blog/single.html
index db831231..2a637a41 100644
--- a/layouts/blog/single.html
+++ b/layouts/blog/single.html
@@ -1,22 +1,22 @@
{{ define "main" }}
-
+
{{ partial "sidebar.html" (dict "context" . "disableSidebar" true "displayPlaceholder" true) }}
{{ partial "toc.html" . }}
-
-
+
+
{{ partial "breadcrumb.html" . }}
- {{ .Title }}
-
- {{- with $date := .Date }}
{{ partial "utils/format-date" $date }} {{ end -}}
+
{{ .Title }}
+
+ {{- with $date := .Date }}
{{ partial "utils/format-date" $date }} {{ end -}}
{{- $lazyLoading := site.Params.enableImageLazyLoading | default true -}}
- {{ if and .Date .Params.authors }}
· {{ end -}}
+ {{ if and .Date .Params.authors }}
· {{ end -}}
{{- with $.Params.authors -}}
{{- range $i, $author := . -}}
{{- if reflect.IsMap $author -}}
- {{- if and $i (not $author.image) }}
, {{ end -}}
+ {{- if and $i (not $author.image) }}
, {{ end -}}
{{- with $image := $author.image }}
@@ -25,12 +25,12 @@
+
{{ end -}}
- {{ $author.name }}
+ {{ $author.name }}
{{- else -}}
- {{- if $i }}
, {{ end -}}
{{ $author }}
+ {{- if $i }}
, {{ end -}}
{{ $author }}
{{- end -}}
{{- end -}}
{{- end -}}
diff --git a/layouts/docs/list.html b/layouts/docs/list.html
index 5ffe82b8..a91882ae 100644
--- a/layouts/docs/list.html
+++ b/layouts/docs/list.html
@@ -1,9 +1,9 @@
{{ define "main" }}
-
+
{{ partial "sidebar.html" (dict "context" .) }}
{{ partial "toc.html" . }}
-
-
+
+
{{ partial "breadcrumb.html" . }}
{{ .Title }}
diff --git a/layouts/docs/single.html b/layouts/docs/single.html
index 5ffe82b8..a91882ae 100644
--- a/layouts/docs/single.html
+++ b/layouts/docs/single.html
@@ -1,9 +1,9 @@
{{ define "main" }}
-
+
{{ partial "sidebar.html" (dict "context" .) }}
{{ partial "toc.html" . }}
-
-
+
+
{{ partial "breadcrumb.html" . }}
{{ .Title }}
diff --git a/layouts/hextra-home.html b/layouts/hextra-home.html
index 0ba7c647..54d792df 100644
--- a/layouts/hextra-home.html
+++ b/layouts/hextra-home.html
@@ -1,8 +1,8 @@
{{ define "main" }}
-
+
{{ partial "sidebar.html" (dict "context" . "disableSidebar" true) }}
-
-
+
diff --git a/layouts/index.html b/layouts/index.html
index 69cf277f..58e3bc96 100644
--- a/layouts/index.html
+++ b/layouts/index.html
@@ -1,10 +1,10 @@
{{ define "main" }}
-
+
{{ partial "sidebar.html" (dict "context" . "disableSidebar" true "displayPlaceholder" true) }}
{{ partial "toc.html" . }}
-
-
- {{ .Title }}
+
+
+ {{ .Title }}
{{ .Content }}
diff --git a/layouts/partials/breadcrumb.html b/layouts/partials/breadcrumb.html
index 5470b2df..5b1042ed 100644
--- a/layouts/partials/breadcrumb.html
+++ b/layouts/partials/breadcrumb.html
@@ -1,13 +1,13 @@
-
+
{{- range .Ancestors.Reverse }}
{{- if not .IsHome }}
-
+
- {{- partial "utils/icon.html" (dict "name" "chevron-right" "attributes" "class=\"w-3.5 shrink-0 rtl:-rotate-180\"") -}}
+ {{- partial "utils/icon.html" (dict "name" "chevron-right" "attributes" "class=\"hx-w-3.5 hx-shrink-0 rtl:-hx-rotate-180\"") -}}
{{ end -}}
{{ end -}}
-
diff --git a/layouts/partials/components/last-updated.html b/layouts/partials/components/last-updated.html
index b7df01e6..7918fb12 100644
--- a/layouts/partials/components/last-updated.html
+++ b/layouts/partials/components/last-updated.html
@@ -3,10 +3,10 @@
{{- if site.Params.displayUpdatedDate -}}
{{- with .Lastmod -}}
{{ $datetime := (time.Format "2006-01-02T15:04:05.000Z" .) }}
-
{{ $lastUpdated }} {{ partial "utils/format-date" . }}
+
{{ $lastUpdated }} {{ partial "utils/format-date" . }}
{{- else -}}
-
+
{{- end -}}
{{- else -}}
-
+
{{- end -}}
diff --git a/layouts/partials/components/pager.html b/layouts/partials/components/pager.html
index 35001c7b..cae58f5b 100644
--- a/layouts/partials/components/pager.html
+++ b/layouts/partials/components/pager.html
@@ -26,14 +26,14 @@
{{- end -}}
{{- if or $prev $next -}}
-
+
diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html
index 9e8a7429..72bef07c 100644
--- a/layouts/partials/footer.html
+++ b/layouts/partials/footer.html
@@ -4,42 +4,42 @@
{{- $copyright := (T "copyright") | default "© 2023 Hextra." -}}
{{- $poweredBy := (T "poweredBy") | default "Powered by Hextra" -}}
-{{- $footerWidth := "max-w-screen-xl" -}}
+{{- $footerWidth := "hx-max-w-screen-xl" -}}
{{- with .Site.Params.footer.width -}}
{{ if eq . "wide" -}}
- {{ $footerWidth = "max-w-[90rem]" -}}
+ {{ $footerWidth = "hx-max-w-[90rem]" -}}
{{ else if eq . "full" -}}
{{ $footerWidth = "max-w-full" -}}
{{ end -}}
{{- end -}}
-