From 89a0f65e076cbf2c80e9a23515fcc5c747ac3a94 Mon Sep 17 00:00:00 2001
From: liyunze <50455574+liyunze-coding@users.noreply.github.com>
Date: Thu, 18 Apr 2024 18:25:56 +0800
Subject: [PATCH] updated remark CSS, updated credits
---
.../styles/remark-callout-directives.css | 1 +
src/components/blocks/TableOfContent.astro | 4 ++--
src/components/blocks/navBar.astro | 22 +++++++++----------
src/pages/credits/index.md | 8 +++++++
4 files changed, 22 insertions(+), 13 deletions(-)
diff --git a/src/assets/styles/remark-callout-directives.css b/src/assets/styles/remark-callout-directives.css
index cbb8be9..e5a04bd 100644
--- a/src/assets/styles/remark-callout-directives.css
+++ b/src/assets/styles/remark-callout-directives.css
@@ -44,6 +44,7 @@ html {
padding: 0.5rem 1rem;
color: inherit;
background-color: var(--callout-bg);
+ margin: 2rem 0;
}
.callout-indicator {
diff --git a/src/components/blocks/TableOfContent.astro b/src/components/blocks/TableOfContent.astro
index b8ce8c9..5889fb2 100644
--- a/src/components/blocks/TableOfContent.astro
+++ b/src/components/blocks/TableOfContent.astro
@@ -16,8 +16,8 @@ const { headings } = Astro.props;
{
headings.map((heading: Heading, index: number) => {
- if (heading.depth === 1) return;
- const margin = `${heading.depth - 1.5}rem`;
+ // if (heading.depth === 1) return;
+ const margin = `${heading.depth - 0.8}rem`;
return (
- {
- // // @ts-ignore
- // new PagefindUI({
- // element: "#search",
- // showSubResults: false,
- // showEmptyFilters: false,
- // debounceTimeoutMs: 0,
- // showImages: false,
- // autofocus: false,
- // });
- // });
+ window.addEventListener("DOMContentLoaded", (event) => {
+ // @ts-ignore
+ new PagefindUI({
+ element: "#search",
+ showSubResults: false,
+ showEmptyFilters: false,
+ debounceTimeoutMs: 0,
+ showImages: false,
+ autofocus: false,
+ });
+ });
diff --git a/src/pages/credits/index.md b/src/pages/credits/index.md
index 0ebe947..18d0da5 100644
--- a/src/pages/credits/index.md
+++ b/src/pages/credits/index.md
@@ -28,6 +28,14 @@ Main developer of the project
+## Coworking Crew Cheat Sheet
+
+
+
+An amazing resource for this guide!
+
+[](https://third-stinger-20a.notion.site/A-Coworking-Streamer-Cheat-Sheet-01ee1e5ff006410d84c339069ea6546c/)
+
\ No newline at end of file