Skip to content

[FEATURE] Request and display SurPathHub blog post section #141

@mkubdev

Description

@mkubdev

Detailed description

The blog is displaying mocked blog posts 👇

image

We need to implement data fetching from Dev.to and display the real blog posts from the community.

Context

Because we need to update mocked content from the Figma/Next.js migration.

Possible implementation

Use getStaticProps as data fetching strategy.

export const getStaticProps = async () => {
  const res = await fetch("https://dev.to/api/articles?username=surpathhub");
  const data = await res.json();

  return {
    props: {
      data,
    },
  };
};

@vinzvinci Do you already have account for SurPath Hub?

Additional information

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions