Anatole: I can't change my profile picture.

Created on 30 Jul 2020  Â·  4Comments  Â·  Source: lxndrblz/anatole

I have put my picture in [images] dictionary, I changed the path of profile picture in [config.toml].
but when I open the web http://localhost:1313/, I can't see the picture.why?

question

All 4 comments

@tangxuemei1995 I'm sorry you are having trouble getting the image to show up.

In understood that you put the image into the 'static/images' folder.
To help you narrow down the problem, I need a little bit more information:

  • Could you please provide me a snippet of your 'config.toml' that shows the relevant section?
  • Dou you get any errors in your browser/hugo console?
  • May I also know, which file format you tried to use?

thanks for your reply.
when I use the original picture, it can't display normally, is this the problem of my browser.i use chrome.

I put my picture in 'static/images'. it's 'jpeg'.
WechatIMG736

and I change the path:
WechatIMG737

when I open http://localhost:1313/, it like this:
WechatIMG738

I don't know what the problem is.

@tangxuemei1995 Thanks for the screenshots. I think I've found your problem. :)

You have to put the the my.jpeg inside the static/images of your "main" hugo folder. The exampleSite is only include as a quickstart to copy some default data. Also make sure you make the configuration changes to your config.toml in the main folder and not the exampleSite.

Your whole project structure should look like this:

C:. tangxuemei1995
├───config.toml (Your config.toml goes into here)
├───archetypes
├───assets
│   └───js
├───content
│   └───post
├───data
├───layouts
├───static
│   ├───css
│   └───images (Your image goes into here)
└───themes
    └───anatole
        ├───.github
        ├───archetypes
        ├───assets
        │   ├───css
        │   └───js
        ├───exampleSite
        │   ├───content
        │   │   └───post
        │   └───static
        │       ├───favicons
        │       └───images
        ├───images
        ├───layouts
        │   ├───custom
        │   ├───partials
        │   │   └───taxonomy
        │   └───_default
        └───static
            ├───css
            └───images

Let me know if this resolved your problem.

thanks, with your advice, I solved my problem. :)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

abraithwaite picture abraithwaite  Â·  4Comments

shariq1989 picture shariq1989  Â·  3Comments

ivnvitx picture ivnvitx  Â·  3Comments

Corfucinas picture Corfucinas  Â·  5Comments

PiotrWachulec picture PiotrWachulec  Â·  4Comments