Skip to content

Commit

Permalink
Merge branch 'refs/heads/main' into prod
Browse files Browse the repository at this point in the history
  • Loading branch information
Jazee6 committed Jul 3, 2024
2 parents d1a713f + 6d2a79c commit 6c88f33
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 8 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ pnpm new
- [ ] AI摘要
- [ ] 置顶
- [ ] lazy load image and CLS
- [ ] twikoo_visitors

## 谁在使用 Astro Blur?

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "astro-blur",
"type": "module",
"version": "0.0.2",
"version": "0.0.3",
"scripts": {
"dev": "astro dev",
"start": "astro dev",
Expand Down
2 changes: 2 additions & 0 deletions src/components/BaseHead.astro
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,9 @@ const {title, description, image} = Astro.props;
<!-- Primary Meta Tags -->
<title>{title}</title>
<meta name="title" content={title}/>
<meta name="keywords" content={siteConfig.keywords}/>
<meta name="description" content={description}/>
<meta name="author" content={siteConfig.author}/>

<!-- Open Graph / Facebook -->
<meta property="og:type" content="website"/>
Expand Down
12 changes: 6 additions & 6 deletions src/components/Header.astro
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@ import {Icon} from 'astro-icon/components'
---

<header class="fixed h-16 w-full blur-global">
<nav class="container-global h-full flex items-center">
<div class="container-global h-full flex items-center">
<h1 class="text-xl font-bold cursor-pointer">
<a href="/">{siteConfig.title}</a>
</h1>

<div class="ml-auto max-sm:hidden">
<nav class="ml-auto max-sm:hidden">
{
navBarConfig.links.map((link) => {
return (
Expand All @@ -18,10 +18,10 @@ import {Icon} from 'astro-icon/components'
)
})
}
</div>
</nav>
<div class="ml-auto hidden max-sm:flex icon-button cursor-pointer relative group">
<Icon class="w-6 h-6 m-auto" name="material-symbols:menu-rounded"/>
<div class="absolute top-8 -left-full rounded-xl shadow-xl bg-base hidden group-hover:block animate-in fade-in">
<nav class="absolute top-8 -left-full rounded-xl shadow-xl bg-base hidden group-hover:block animate-in fade-in">
{
navBarConfig.links.map((link) => {
return (
Expand All @@ -34,10 +34,10 @@ import {Icon} from 'astro-icon/components'
)
})
}
</div>
</nav>
</div>
<button id="theme" class="ml-8 max-sm:ml-4 icon-button"></button>
</nav>
</div>
</header>

<script is:inline>
Expand Down
2 changes: 2 additions & 0 deletions src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ export const siteConfig: SiteConfig = {
title: "Hi! Jazee",
language: "zh",
description: "Jazee's personal blog. Powered by Astro Blog Theme Blur.",
keywords: "Jazee, blog, personal blog, Astro, Astro Blog Theme Blur",
author: "Jazee",
avatar: "/avatar.png",
favicon: "/favicon.png",
Expand Down Expand Up @@ -41,6 +42,7 @@ interface SiteConfig {
title: string
language: string
description: string
keywords: string
author: string
avatar: string
favicon: string
Expand Down
2 changes: 1 addition & 1 deletion src/styles/global.css
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@
}

.tk-footer {
@apply invisible
@apply hidden
}

body.dark .astro-code,
Expand Down

0 comments on commit 6c88f33

Please sign in to comment.