I have multiple pages, some of which have sub pages, and they are all built off the same basic template. For images, such as my header image, I would prefer not to have to change the code for each page I create, but I want to keep it a relative reference.
Here would be a simplified example of the folder organization I am using:
(folder)images
headerlogo.jpg
(folder)pages
fruits.html
fruits/apples.html
fruits/apples/redapples.html
fruits/apples/greenapples.html
fruits/bananas.html
organic fruit info.html
I would like to use the same basic code on each page (so I would ideally like to use the same code to reference "headerlogo.jpg" regardless of whether I was on "fruits.html" or "fruits/apples/greenapples.html".
From looking at the different file path options, I can't see anything that does, other than having to use an absolute file path.
برچسب:
نویسنده: آیلین رضوانی
تاريخ: جمعه
24 آذر
1396 ساعت: 7:56