Skip to content

Is it possible not including author image in profile homepage #44

Answered by jpanther
frederickz asked this question in Q&A
Discussion options

You must be logged in to vote

There isn't a config parameter specifically for this as you can obviously not provide the author image and this will remove it (but will also remove it from the article footer too). A quick workaround for this would be to provide your own custom profile homepage. You can simply copy congo/layouts/partials/home/profile.html to your project and name it /layouts/partials/home/custom.html then just remove the block in the template that inserts the image (see below). If you then change the theme config to use custom as the homepage.layout value it will use your custom template.

<!-- Remove these 3 lines -->
{{ with .Site.Author.image }}
  <img class="mb-2 rounded-full w-36 h-36" src="{{ . | re…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by frederickz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants