diff --git a/README.md b/README.md index 6c82a76..d2aa151 100644 --- a/README.md +++ b/README.md @@ -11,8 +11,6 @@ Micro Academics adds features like tags, and blog math support and also inherits Micro Academics still comes with everything great about Micro and Nano — full type safety, a sitemap, an RSS feed, and Markdown + MDX support. Styled with TailwindCSS and preconfigured with system, light, and dark themes. -![teaser](./assets/teaser-1.png) - ## News ✨ I've got a detailed blog about building and deploying your website using this template! Check it out [here](https://jingwu2121.github.io/blog/01-build-deploy-website/) diff --git a/assets/teaser-1.png b/assets/teaser-1.png deleted file mode 100644 index 6b7d612..0000000 Binary files a/assets/teaser-1.png and /dev/null differ diff --git a/src/components/Giscus.astro b/src/components/Giscus.astro deleted file mode 100644 index 3c005b3..0000000 --- a/src/components/Giscus.astro +++ /dev/null @@ -1,20 +0,0 @@ -
- - diff --git a/src/components/Head.astro b/src/components/Head.astro index dcb896a..2b06430 100644 --- a/src/components/Head.astro +++ b/src/components/Head.astro @@ -57,7 +57,6 @@ const { title, description, image = '/blog-placeholder-1.jpg' } = Astro.props animate() updateThemeButtons() addCopyCodeButtons() - setGiscusTheme() const backToTop = document.getElementById('back-to-top') backToTop?.addEventListener('click', (event) => scrollToTop(event)) @@ -178,8 +177,6 @@ const { title, description, image = '/blog-placeholder-1.jpg' } = Astro.props window.getComputedStyle(css).opacity document.head.removeChild(css) - - setGiscusTheme() } function preloadTheme() { @@ -229,18 +226,6 @@ const { title, description, image = '/blog-placeholder-1.jpg' } = Astro.props } } - const setGiscusTheme = () => { - const giscus = document.querySelector('.giscus-frame') - - const isDark = document.documentElement.classList.contains('dark') - - if (giscus) { - const url = new URL(giscus.src) - url.searchParams.set('theme', isDark ? 'dark' : 'light') - giscus.src = url.toString() - } - } - document.addEventListener('DOMContentLoaded', () => init()) document.addEventListener('astro:after-swap', () => init()) preloadTheme() diff --git a/src/components/PublicationCard.astro b/src/components/PublicationCard.astro index c00ce86..2ed2f44 100644 --- a/src/components/PublicationCard.astro +++ b/src/components/PublicationCard.astro @@ -1,7 +1,6 @@ --- import type { CollectionEntry } from 'astro:content' import { Image } from 'astro:assets' -import { HIGHLIGHTAUTHOR } from '@consts' type Props = { entry: CollectionEntry<'publications'> @@ -26,7 +25,6 @@ const dataLink = decomposeURL(entry.data.dataURL) const paperLink = decomposeURL(entry.data.paperURL) const codeLink = decomposeURL(entry.data.codeURL) const webLink = decomposeURL(entry.data.webURL) -const authorsParts = splitStr(entry.data.authors, HIGHLIGHTAUTHOR) ---
- { - authorsParts.map((part: any) => - part === HIGHLIGHTAUTHOR ? ( - - {part} - - ) : ( - part - ), - ) - } + {entry.data.authors}
{ diff --git a/src/consts.ts b/src/consts.ts index 006500b..fc94897 100644 --- a/src/consts.ts +++ b/src/consts.ts @@ -1,4 +1,4 @@ -import type { Metadata, Site } from '@types' +import type { Site } from '@types' export const SITE: Site = { TITLE: 'Astro Micro Academics', @@ -8,36 +8,3 @@ export const SITE: Site = { NUM_PUBLICATIONS_ON_HOMEPAGE: 3, SITEURL: 'https://astro-micro-academic.vercel.app', // Update here to link the RSS icon to your website rss } - -export const HIGHLIGHTAUTHOR = 'John B' - -export const HOME: Metadata = { - TITLE: 'Home', - DESCRIPTION: 'Astro Micro is an accessible theme for Astro.', -} - -export const BLOG: Metadata = { - TITLE: 'Blog', - DESCRIPTION: 'A collection of articles on topics I am passionate about.', -} - -export const RESEARCH: Metadata = { - TITLE: 'Publications', - DESCRIPTION: - 'A collection of my publications with links to paper, repositories and live demos.', -} - -export const CV: Metadata = { - TITLE: 'CV', - DESCRIPTION: 'your cv', -} - -export const TAGS: Metadata = { - TITLE: 'TAGS', - DESCRIPTION: 'blog tag filter', -} - -export const ABOUT: Metadata = { - TITLE: 'ABOUT', - DESCRIPTION: 'A self-intro', -} diff --git a/src/pages/about.astro b/src/pages/about.astro index 6cf3844..d313065 100644 --- a/src/pages/about.astro +++ b/src/pages/about.astro @@ -2,11 +2,10 @@ import { getCollection } from 'astro:content' import Layout from '@layouts/Layout.astro' import Container from '@components/Container.astro' -import { ABOUT } from '@consts' import { Image } from 'astro:assets' --- - +