timlrx / tailwind-nextjs-starter-blog

This is a Next.js, Tailwind CSS blogging starter template. Comes out of the box configured with the latest technologies to make technical writing a breeze. Easily configurable and customizable. Perfect as a replacement to existing Jekyll and Hugo individual blogs.
https://tailwind-nextjs-starter-blog.vercel.app/
MIT License
8.45k stars 1.96k forks source link

image url resolution with base path #955

Closed abernier closed 1 month ago

abernier commented 1 month ago

We are setting up pmndrs/blog with tailwind-nextjs-starter-blog

It is published through GitHub Pages under the url: https://pmndrs.github.io/blog

In siteMetadata.js, I've defined:

  siteUrl: 'https://pmndrs.github.io/blog',

It is working great: https://pmndrs.github.io/blog

--

Except for images, like:

---
name: pmndrs
avatar: /static/images/avatar-pmndrs.svg
occupation:
company: Poimandres
email:
twitter: https://x.com/pmndrs
github: https://github.com/pmndrs
---

where this time, it is resolved to:

image

or for projects:

image
abernier commented 1 month ago

live demo: https://abernier.github.io/myblog

abernier commented 1 month ago

this is "expected" https://github.com/vercel/next.js/discussions/34173#discussioncomment-2148844