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

Author "Duplicated" at the bottom of posts #17

Open
Cyan101 opened this issue Aug 3, 2017 · 0 comments
Open

Author "Duplicated" at the bottom of posts #17

Cyan101 opened this issue Aug 3, 2017 · 0 comments
Assignees

Comments

@Cyan101
Copy link
Contributor

Cyan101 commented Aug 3, 2017

Example:
screenshot 2017-08-03 at 10 22 32 am

This relates to this piece of code
{{ author.real_name }} <a href="https://github.com/{{ author.github }}">{{ author.name }}</a> &mdash; {{ page.date | date: "%b %-d, %Y" }}

at https://github.com/y32/y32.github.io/blob/master/_layouts/post.html#L9


The problem here is it displays the real name (if its found) and then their name (which links to github) which just looks weird when its repeating itself like in the picture above

I propose we change this line to:
<a href="https://github.com/{{ author.github }}">{{ author.real_name }}</a> &mdash; {{ page.date | date: "%b %-d, %Y" }}

But then this will place a blank for people with no real_name, i've been messing with it for a bit and cant get it to swap to author.name if it cant find a real_name :/ but if someone else can do this that would be great

Cyan101 added a commit that referenced this issue Aug 3, 2017
@sledgang sledgang deleted a comment from Cyan101 Aug 3, 2017
@z64 z64 assigned Cyan101 and unassigned z64 and unleashy Aug 3, 2017
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

3 participants