This commit is contained in:
Korbs 2024-08-24 00:45:23 -04:00
parent e9514b2b13
commit f1537f67dc
28 changed files with 40 additions and 30 deletions

3
src/components/Sidebar.astro Normal file → Executable file
View file

@ -1,9 +1,10 @@
---
import { SidebarItems } from '../../config.json'
import { SITE_BASE, SITE_PROTOCOL, SITE_DOMAIN } from '@utils/GetConfig'
---
<div class="sidebar">
{SidebarItems.map((item) => (
item.heading ? <h2>{item.heading}</h2> : <a href={item.link}>{item.text}</a>
item.heading ? <h2>{item.heading}</h2> : <a href={SITE_PROTOCOL + '://' + SITE_DOMAIN + SITE_BASE + item.link}>{item.text}</a>
))}
</div>

2
src/components/global/Analytics.astro Normal file → Executable file
View file

@ -63,6 +63,8 @@ import {
} else if (ANALYTICS === "Simple Analytics") {
<script is:inline async defer data-hostname={SIMPLEANALYTICS_DOMAIN} src="https://scripts.simpleanalyticscdn.com/latest.js"></script>
<noscript><img src={'https://queue.simpleanalyticscdn.com/noscript.gif?hostname=' + SIMPLEANALYTICS_DOMAIN} alt="" referrerpolicy="no-referrer-when-downgrade" /></noscript>
} else if (ANALYTICS === "Tianji") {
<script async defer src="http://192.168.1.175:51257/tracker.js" data-website-id="clxcrsbjb000559gojgt9qdmi"></script>
}
}
}

0
src/components/global/Head.astro Normal file → Executable file
View file

0
src/components/global/Header.astro Normal file → Executable file
View file

0
src/content/docs/demo.mdx Normal file → Executable file
View file

0
src/content/docs/syntax.mdx Normal file → Executable file
View file

0
src/env.d.ts vendored Normal file → Executable file
View file

0
src/layouts/Document.astro Normal file → Executable file
View file

0
src/layouts/Splash.astro Normal file → Executable file
View file

0
src/pages/[slug].astro Normal file → Executable file
View file

0
src/pages/index.mdx Normal file → Executable file
View file

0
src/styles/feelback.css Normal file → Executable file
View file

12
src/styles/index.scss Normal file → Executable file
View file

@ -2,7 +2,7 @@ body {
max-width: 1200px;
margin: auto;
font-family: Arial, Helvetica, sans-serif;
background: #0f0f0f;
background: #0a0a0a;
color: white;
}
@ -43,7 +43,7 @@ blockquote {
}
header {
background: #232323;
background: #161616;
width: 100%;
position: absolute;
top: 0px;
@ -57,12 +57,12 @@ header {
justify-content: space-between;
.end {
display: flex;
gap: 6px;
gap: 12px;
a {
text-decoration: none;
background: #373737;
border-radius: 6px;
padding: 8px 16px;
&:hover {
text-decoration: underline;
}
}
}
}

0
src/styles/splash.scss Normal file → Executable file
View file

0
src/utils/GetConfig.js Normal file → Executable file
View file