Back

3 ways to build content-driven website

3 ways to build content-driven website cover pic
2 min read
# Website

Hi there! πŸ‘‹ Let’s explore how to build content-driven websites. Examples of such websites include blogs, documentation sites, and knowledge bases. The way you structure these websites depends on the source of your content.

GitHub as a Content Source

In this approach, content is stored directly within a Git repository. Content is typically written in Markdown or MDX files, and a parser is used to convert them into HTML.

Advantages:

  • βœ… Developer friendly
  • βœ… Supports MDX, allowing for highly interactive websites. Check out this example

Disadvantages

  • πŸ˜“ Difficult for non-developers, as content lives within the codebase
  • βŒ› Every change requires a deployment, meaning updates are not real-time
  • πŸ“¦ Repository size grows as content increases

Examples

Github with an Admin-panel

This approach is similar to the previous one, but with an admin panel, allowing content to be published directly from a web interface.

Advantages:

  • βœ… Friendly for both developers and content creators
  • βœ… Enables the creation of interactive websites

Disadvantages

  • βŒ› Changes still require a deployment since content is stored in GitHub
  • πŸ“¦ Repository size grows as content increases

Examples

Dynamic Content Source

In this approach, content is fetched from a database or a content provider, enabling real-time updates.

Advantages:

  • βœ… Content creation and publishing are seamless
  • βœ… Scales well for larger websites

Disadvantages

  • πŸ’° May incur costs for setup (although free services are available)
  • πŸ€” Choosing the right stack can be challenging, as there are many options

Examples

Each approach has its own pros and cons, so the right choice depends on your use case. If you’re a developer comfortable with Git, GitHub-based approaches might work well. If you need real-time publishing and better scalability, a dynamic CMS is the way to go.