hugo-universal-theme icon indicating copy to clipboard operation
hugo-universal-theme copied to clipboard

Move to Page Resources for blog banner images

Open highergroundstudio opened this issue 6 years ago • 1 comments

I was not liking how blog post images had to be located in the static folder and I wanted it to be easier to include everything in one folder so moved to use Hugo's page resources.

I wanted to put out fillers if you would want to even change to this as it changes your blog content setup a little and changes anywhere the banner is called (such as layouts/_default/list.html).

However, it makes the directory structure so much more understandable (especially with large blogs) and much more organized.

Here is a really great article written about this and explains the structure more.

Let me know if you are interested/have questions, Kyle

highergroundstudio avatar Apr 29 '19 17:04 highergroundstudio

I was having that issue trying to get the 'banner' in yaml preable to use relative path... but the function used relurl gets automatically to / so only absolute paths are working, which makes it less tidier in terms of post + images sorting

iranzo avatar Feb 04 '25 11:02 iranzo