- Demo - · - Deploying Guide - · - FAQ + Demo Site + · + Deploy / Version Upgrade Guide + · + FAQ +
+
+
+
Wait a moment while we load your files...
-Loading player...
-Loading player...
-Loading image...
-- Looks like this file size exceed the preview size limit -
-Loading content...
-Loading content...
-- This file type is not supported for preview, try downloading the - file instead. -
-Loading player...
-Loading video...
-- {props.description} -
-
{error.message}
diff --git a/src/app/globals.css b/src/app/globals.css
index cbb219c..75f52f7 100644
--- a/src/app/globals.css
+++ b/src/app/globals.css
@@ -1,3 +1,4 @@
+/* Version: ${pkg.version} */
@tailwind base;
@tailwind components;
@tailwind utilities;
@@ -50,6 +51,10 @@
--ring: 0 0% 14.9%;
/* --ring: 0 0% 83.1%; */
}
+
+ div.preview * {
+ @apply !transition-none;
+ }
}
html,
@@ -75,7 +80,7 @@ body {
@apply h-1.5 w-1.5;
}
::-webkit-scrollbar-track {
- @apply bg-background;
+ @apply bg-primary/5;
}
::-webkit-scrollbar-thumb {
@apply rounded-full bg-primary/25 hover:bg-primary/50;
diff --git a/src/app/highlight.css b/src/app/highlight.css
index cf8359e..54e65c1 100644
--- a/src/app/highlight.css
+++ b/src/app/highlight.css
@@ -204,10 +204,7 @@ pre {
color: var(--hue-3);
}
-.language-javascript
- .token.template-string
- > .token.interpolation
- > .token.interpolation-punctuation.punctuation {
+.language-javascript .token.template-string > .token.interpolation > .token.interpolation-punctuation.punctuation {
color: var(--hue-5-2);
}
@@ -335,9 +332,7 @@ div.code-toolbar > .toolbar.toolbar > .toolbar-item > span:focus {
/* Hovering over a linkable line number (in the gutter area) */
/* Requires Line Numbers plugin as well */
-pre[id].linkable-line-numbers.linkable-line-numbers
- span.line-numbers-rows
- > span:hover:before {
+pre[id].linkable-line-numbers.linkable-line-numbers span.line-numbers-rows > span:hover:before {
background-color: var(--syntax-cursor-line);
}
diff --git a/src/app/layout.tsx b/src/app/layout.tsx
index 8050acd..deebe88 100644
--- a/src/app/layout.tsx
+++ b/src/app/layout.tsx
@@ -1,19 +1,18 @@
import { Metadata } from "next";
import { JetBrains_Mono, Outfit, Source_Sans_3 } from "next/font/google";
import "plyr-react/plyr.css";
-import { cn } from "~/utils";
+import { Footer, Navbar, Password, ThemeProvider } from "~/components/Layout";
+import ToTop from "~/components/Layout/ToTop";
+
+import { cn } from "~/utils/cn";
import { formatFooter } from "~/utils/footerFormatter";
-import config from "~/config/gIndex.config";
+import { CheckSitePassword } from "actions";
+import config from "config";
-import Footer from "./@footer";
-import Navbar from "./@navbar";
-import Password from "./@password";
-import { CheckSitePassword } from "./actions";
import "./globals.css";
import "./markdown.css";
-import ThemeProvider from "./theme-provider";
const sourceSans3 = Source_Sans_3({
weight: ["300", "400", "600", "700"],
@@ -41,7 +40,7 @@ export const metadata: Metadata = {
metadataBase: new URL(config.basePath),
title: {
default: config.siteConfig.siteName,
- template: config.siteConfig.siteNameTemplate || "%s",
+ template: config.siteConfig.siteNameTemplate?.replace("%t", config.siteConfig.siteName) || "%s",
},
description: config.siteConfig.siteDescription,
authors: config.siteConfig.siteAuthor
@@ -74,10 +73,14 @@ export const metadata: Metadata = {
robots: config.siteConfig.robots,
};
-export default async function RootLayout({
- children,
-}: Readonly<{ children: React.ReactNode }>) {
- const unlocked = await CheckSitePassword();
+export default async function RootLayout({ children }: Readonly<{ children: React.ReactNode }>) {
+ let unlocked: Awaited> = {
+ success: true,
+ message: "",
+ };
+ if (config.siteConfig.privateIndex) {
+ unlocked = await CheckSitePassword();
+ }
return (
@@ -114,9 +117,8 @@ export default async function RootLayout({
<>{children}>
)}
- {config.siteConfig.footer && (
-
- )}
+ {config.siteConfig.footer && }
+