Closed mcrice123 closed 6 years ago
Turns out I did the image urls wrong to begin with.
First, I ran the local server incorrectly. I thought I was doing it wrong when I set the base url to 'mcrice123.github.io/morphic', but actually that was correct and I was navigating to 'localhost:1313' on my browser and not seeing anything. I didn't look too closely at the terminal when it said 'Web Server is available at http://localhost:1313/morphic/'.
Therefore, I commented out the base url in the config to run on the local server and I played around with the image paths to get them to show up on the browser. I formatted them like "../../img/book1/bw_page1.jpg" when they should have been formatted like "/img/book1/bw_page1.jpg" in the markdown files. When I change the image urls to the correct path, the images appear when the server is run correctly AND when pushed to the public site, so the problem is solved.
The images on this site are not showing and it appears to be caused by the relURL function returning the wrong path for the image. The function most likely doesn't work because of my choice of baseUrl.
A snapshot of the element displayed on the website:![image](https://user-images.githubusercontent.com/21694771/36674903-13cecc02-1acd-11e8-85c7-9e4352eca3bb.png)
My config.toml file:
And my layouts/post/featured.html that returns the image element for a majority of the posts where the image isn't showing up:
Perhaps I'm misunderstanding how the relURL function works. Any suggestions as to how to fix this is appreciated.