CaiJimmy / hugo-theme-stack-starter

A quickstart template to create a Hugo blog using hugo-theme-stack
https://demo.stack.jimmycai.com
MIT License
305 stars 105 forks source link

where should I put my avatar ? #11

Closed ShioriMina closed 1 year ago

ShioriMina commented 1 year ago

I wanna use the sidebar.avatar function, I checked the document and found this .

But I still don't understand where should I put my avatar on, and how to write the src path.

For example, if I want put my avatar on content/avatar.png, how should I write the src path ?

Is there any advice ?

CaiJimmy commented 1 year ago

Put avatar on assets/img/avatar.png and write img/avatar.png on the src field.

It's explained here: https://stack.jimmycai.com/config/sidebar#avatar

ShioriMina commented 1 year ago

Ok, I created a folder named assetsunder the root directory and things works fine. And what about the assets folder under resources folder ?

ShioriMina commented 1 year ago

Now I guess that the resources/_gen/assets/image folder is used to store the auto resized image file.