From 11e335348e4eb680f42b2c5e234ca89abfa8bea6 Mon Sep 17 00:00:00 2001 From: prototypa Date: Tue, 8 Aug 2023 09:03:52 -0400 Subject: [PATCH 1/6] Fix issue #213 - Click on the blank space of the navigation ... --- src/components/common/BasicScripts.astro | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/src/components/common/BasicScripts.astro b/src/components/common/BasicScripts.astro index 092301c..8b77eb4 100644 --- a/src/components/common/BasicScripts.astro +++ b/src/components/common/BasicScripts.astro @@ -35,14 +35,7 @@ import { UI_CONFIG } from '~/utils/config'; let lastKnownScrollPosition = window.scrollY; let ticking = true; - attachEvent('#header nav', 'click', function () { - document.querySelector("[data-aw-toggle-menu]")?.classList.remove("expanded"); - document.body.classList.remove("overflow-hidden"); - document.getElementById("header")?.classList.remove("h-screen"); - document.querySelector("#header nav")?.classList.add("hidden"); - }); - - attachEvent('[data-aw-toggle-menu]', 'click', function () { + attachEvent('[data-aw-toggle-menu], #header nav', 'click', function () { document.body.classList.toggle("overflow-hidden"); document.getElementById("header")?.classList.toggle("h-screen"); document.getElementById("header")?.classList.toggle("expanded"); From 0d4c6cd9671031234281a989388dc6a4c3c2793f Mon Sep 17 00:00:00 2001 From: prototypa Date: Tue, 8 Aug 2023 09:35:05 -0400 Subject: [PATCH 2/6] Fix hidden nav bar on click on mobile --- src/components/common/BasicScripts.astro | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/src/components/common/BasicScripts.astro b/src/components/common/BasicScripts.astro index 8b77eb4..d86d9a8 100644 --- a/src/components/common/BasicScripts.astro +++ b/src/components/common/BasicScripts.astro @@ -35,7 +35,17 @@ import { UI_CONFIG } from '~/utils/config'; let lastKnownScrollPosition = window.scrollY; let ticking = true; - attachEvent('[data-aw-toggle-menu], #header nav', 'click', function () { + attachEvent('#header nav', 'click', function () { + document.querySelector("[data-aw-toggle-menu]")?.classList.remove("expanded"); + document.body.classList.remove("overflow-hidden"); + document.getElementById("header")?.classList.remove("h-screen"); + document.getElementById("header")?.classList.remove("expanded"); + document.getElementById("header")?.classList.remove("bg-page"); + document.querySelector("#header nav")?.classList.add("hidden"); + document.querySelector("#header > div > div:last-child")?.classList.add("hidden"); + }); + + attachEvent('[data-aw-toggle-menu]', 'click', function () { document.body.classList.toggle("overflow-hidden"); document.getElementById("header")?.classList.toggle("h-screen"); document.getElementById("header")?.classList.toggle("expanded"); From 56d6d1b05b0ad80ea2af268dc58432b14b03cfbe Mon Sep 17 00:00:00 2001 From: prototypa Date: Tue, 8 Aug 2023 21:01:52 -0400 Subject: [PATCH 3/6] Fix default metadata image --- src/config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/config.yaml b/src/config.yaml index f41a2f4..0bcbd28 100644 --- a/src/config.yaml +++ b/src/config.yaml @@ -18,7 +18,7 @@ metadata: openGraph: siteName: AstroWind images: - - url: '~/assets/images/default.jpg' + - url: '~/assets/images/default.png' width: 1200 height: 628 type: website From d7050abc03f3cf8a18de67f040195b7b21cf0e1e Mon Sep 17 00:00:00 2001 From: prototypa Date: Tue, 8 Aug 2023 21:08:29 -0400 Subject: [PATCH 4/6] Fix type: dontUseTitleTemplate to ignoreTitleTemplate --- src/pages/index.astro | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/index.astro b/src/pages/index.astro index 00695f2..b3e01b5 100644 --- a/src/pages/index.astro +++ b/src/pages/index.astro @@ -14,7 +14,7 @@ import CallToAction from '~/components/widgets/CallToAction.astro'; const metadata = { title: 'AstroWind — Free template for creating websites with Astro + Tailwind CSS', - dontUseTitleTemplate: true, + ignoreTitleTemplate: true, }; --- From 506f0c9e9fca32f0a1e8319c4e29b67fb69108f4 Mon Sep 17 00:00:00 2001 From: prototypa Date: Tue, 8 Aug 2023 21:13:16 -0400 Subject: [PATCH 5/6] Update dependencies --- package.json | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/package.json b/package.json index 68a87d6..b783ca8 100644 --- a/package.json +++ b/package.json @@ -16,20 +16,20 @@ "@astrojs/image": "^0.17.3", "@astrojs/mdx": "^0.19.7", "@astrojs/partytown": "^1.2.3", - "@astrojs/rss": "^2.4.3", + "@astrojs/rss": "^2.4.4", "@astrojs/sitemap": "^2.0.1", "@astrojs/tailwind": "^4.0.0", - "@astrolib/analytics": "^0.3.0", - "@astrolib/seo": "^0.4.0", + "@astrolib/analytics": "^0.4.2", + "@astrolib/seo": "^0.6.0", "@fontsource-variable/inter": "^5.0.8", "@iconify-json/flat-color-icons": "^1.1.7", "@iconify-json/ri": "^1.1.12", "@iconify-json/tabler": "^1.1.87", "@tailwindcss/typography": "^0.5.9", "@types/lodash.merge": "^4.6.7", - "@typescript-eslint/eslint-plugin": "^6.2.1", - "@typescript-eslint/parser": "^6.2.1", - "astro": "^2.10.1", + "@typescript-eslint/eslint-plugin": "^6.3.0", + "@typescript-eslint/parser": "^6.3.0", + "astro": "^2.10.3", "astro-icon": "^1.0.0-next.2", "eslint": "^8.46.0", "eslint-plugin-astro": "^0.28.0", From bc9246061a40735d2ae7b09d827db67e264067b8 Mon Sep 17 00:00:00 2001 From: prototypa Date: Tue, 8 Aug 2023 21:43:30 -0400 Subject: [PATCH 6/6] Fix config used in @astrolib/seo: siteName to site_name --- README.md | 2 +- src/components/common/Metadata.astro | 2 +- src/config.yaml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 1ae5ffc..e95c295 100644 --- a/README.md +++ b/README.md @@ -166,7 +166,7 @@ metadata: index: true follow: true openGraph: - siteName: 'Example' + site_name: 'Example' images: - url: '~/assets/images/default.jpg' width: 1200 diff --git a/src/components/common/Metadata.astro b/src/components/common/Metadata.astro index 810aa3e..2e6ecc6 100644 --- a/src/components/common/Metadata.astro +++ b/src/components/common/Metadata.astro @@ -34,7 +34,7 @@ const seoProps: AstroSeoProps = merge( description: undefined, openGraph: { url: canonical, - siteName: SITE_CONFIG?.name, + site_name: SITE_CONFIG?.name, images: [], locale: I18N_CONFIG?.language || 'en', type: 'website', diff --git a/src/config.yaml b/src/config.yaml index 0bcbd28..d9f1bcf 100644 --- a/src/config.yaml +++ b/src/config.yaml @@ -16,7 +16,7 @@ metadata: index: true follow: true openGraph: - siteName: AstroWind + site_name: AstroWind images: - url: '~/assets/images/default.png' width: 1200