Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request includes several updates to the codebase, primarily focusing on adding a new
Subscribe
component, improving type definitions, and enhancing SEO capabilities.New Component Addition:
src/components/Subscribe.tsx
: Introduced a newSubscribe
component that allows users to subscribe to a newsletter. It includes form handling and integration with themarkketplace
configuration for API calls.Type Definitions and Usage:
src/components/Header.astro
: Added a new typeactiveNav
and updated theProps
interface to use this new type.src/pages/[slug].astro
: Updated the import statement to include the newactiveNav
type and modified theHeader
component usage to use this type. (src/pages/[slug].astroL10-R10, src/pages/[slug].astroL32-R35)Configuration Enhancements:
src/config.ts
: Added acolors
object to themarkketplace
configuration to store primary and accent colors.SEO Improvements:
src/layouts/TagPosts.astro
: Included theSEO
object in the data transformation to ensure SEO metadata is available.New Page Implementation:
src/pages/newsletter.astro
: Created a newnewsletter
page that uses theSubscribe
component and includes layout and SEO configurations.This pull request includes changes to thesrc
directory to improve type safety and consistency across components and pages. The most important changes include the introduction of a new type alias foractiveNav
, updates to theHeader
component, and enhancements to theTagPosts
layout.Type safety and consistency improvements:
src/components/Header.astro
: Introduced a new type aliasactiveNav
for better type safety and replaced the inline type definition with this alias in theProps
interface.src/pages/[slug].astro
: Updated the import statement to include the newactiveNav
type alias from theHeader
component and used this alias when setting theactiveNav
prop forHeader
. (src/pages/[slug].astroL10-R10, src/pages/[slug].astroL32-R35)Enhancements to
TagPosts
layout:src/layouts/TagPosts.astro
: Added theSEO
property to the data object being passed, ensuring that SEO metadata is included in the rendered output.