paleobot / pbot-static

Static content for pbot client
0 stars 0 forks source link

Images in the Overview page #3

Open ecurrano opened 8 months ago

ecurrano commented 8 months ago

These show up on http://128.196.196.17/about but are broken when I preview the page in Github.

When trying to put together the Our Team page, I noted that I get broken links if I copy in the whole directory information (e.g., /pbot-static/About/Overview/OverviewPageGraphics1static.png) but if I were to just write the image name (OverviewPageGraphics1static.png), it would work. Which is the correct thing to do so that it will show correctly on the PBot website?

NoisyFlowers commented 3 months ago

Looks like they need to have the full path to work on the live site.

The reason for this must be something in the package we use to allow react to work with markdown (https://www.npmjs.com/package/markdown-to-jsx).

It's unfortunate, as this breaks the wysiwyg approach I was hoping for in implementing our static content through github like this.

I'll try to look into this more at some point in the future. In the meantime, it's fine if you want to omit the full path as you're working. Just make sure to include it in the last commit when you're done.