Skip to content

[📖] Add a blog index page with all blog posts to the qwik city demo  #3796

Open
@adamgen

Description

@adamgen

Suggestion

It's not documentation per se but rather a change in the demo qwik city app.

When writing blogs with mdx, we need an index or category page to show blog post lists.

Problem

How to create such a page needs to be clarified, especially if you're unfamiliar with Vite's import.meta.glob. The current state may lead to uncertainty and wasted time, or even abandonment in the worst cases.

Resolution

Add a blog/index.ts with a few mdx blog posts that implement the import.meta.glob to the features section of the qwik city demo app.

Discussion

I would add:

  1. Three three blog posts, two mdx, and one md
  2. An index file that'll glob and order them by published date - not sure about how to implement this yet
  3. A JSX component that will render in the mdx files.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Status

    Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions