Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hide author name and image in post? #867

Closed
dietervansteenwegen opened this issue Jan 20, 2024 · 6 comments · Fixed by #870
Closed

Hide author name and image in post? #867

dietervansteenwegen opened this issue Jan 20, 2024 · 6 comments · Fixed by #870
Labels

Comments

@dietervansteenwegen
Copy link
Contributor

Question

I'd like to hide the author image and name for all posts. Since it is my site/blog, it is kind of obvious that the posts were by me.
Is there a way (frontmatter? _index.md? ...?) to hide it?

I've seen other themes that support the profile: false in the front matter, but that does not seem to work for this theme.
I'm sure I can change it in my own fork of the theme, but maybe there is a simple, standard way to do it.

Thanks!

@dietervansteenwegen
Copy link
Contributor Author

Obviously, I understand the usefulness of having the option to support multiple authors. It is just that I would prefer not to use it ;).

@BernatBC
Copy link
Contributor

As far as I know, there's no option to do it. If I have time I might do it in the following days.

You could try removing the author lines inside /layours/_default/single.html
If you're stuck, you can follow this guide.

@dietervansteenwegen
Copy link
Contributor Author

@BernatBC Thanks!

I'm pretty confident I can get it to work by disabling it altogether in my own fork of the theme, but figured there might be a simple config setting that I didn't know about. Seems there isn't, and I'll look at modifying the theme.

Thanks again.

@hossainemruz
Copy link
Member

I think it is a reasonable feature request. We can introduce a configuration option to disable the author section in post.

@dietervansteenwegen
Copy link
Contributor Author

I'd propose to try and do it myself but I don't expect that will work out well. I can try though. I'd first need to find out how to access the front matter and then change the templating.

@dietervansteenwegen
Copy link
Contributor Author

@BernatBC Thank you very much. Looking at the commits in the pull request, it would have taken me an awful long time to come up with something that was portable and not just a hack for my own use.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants