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

Adding Author to Blog Posts #113

Closed
MayaGans opened this issue Jun 15, 2018 · 3 comments
Closed

Adding Author to Blog Posts #113

MayaGans opened this issue Jun 15, 2018 · 3 comments

Comments

@MayaGans
Copy link

Hi! I was wondering if it'd be possible to add the blog post author to the top of each post page, possibly automating this? I found a blog post related to this, but because I'm a total n00b I'm not sure how to go about implementing it within the theme or where to add this script within the css. Any tips helpful, and thanks for the wonderful blog layout!

@budparr
Copy link
Member

budparr commented Jun 19, 2018

Hi @MayaGans You'd want to duplicate this template: https://github.com/budparr/gohugo-theme-ananke/blob/master/layouts/_default/single.html into your root layouts directory (so it would be like /layouts/_default/single.html instead of /gohugo-theme-ananke/blob/master/layouts/_default/single.html and add the code there. Unfortunately, I don't have time to help you with the actual code, but it's definitely doable. People in the forums would be able to help you with that and I'll consider adding authors in a future version of the theme.

@budparr budparr closed this as completed Jun 19, 2018
@vogella
Copy link

vogella commented Sep 12, 2019

I'll consider adding authors in a future version of the theme

Did you? Your theme is the flagship theme from the Quick Start tutorial and it would be nice see the author by default.

Beanow added a commit to Beanow/gohugo-theme-ananke that referenced this issue Sep 17, 2019
@Beanow
Copy link
Contributor

Beanow commented Sep 17, 2019

I've added a PR above. It's a simple implementation that doesn't go all over the place like lists to add it. However it's there on the blog post itself.

For the website I'm writing for now I believe it's necessary, because part of the site is written from "we" perspective. But blog posts can also be opinion written in "I" form which needs the author for this distinction.

budparr pushed a commit that referenced this issue Sep 30, 2019
* Adds an author to blog posts.

See #113

* Feedback #209, fully contain author in {{with}}

Co-authored-by: Bud Parr <budparr@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants