Skip to content

Author link issue not picking up on customized author-profile.html includes #2622

Answered by mmistakes
piyushpaliwal asked this question in Q&A
Discussion options

You must be logged in to vote

Don't wrap the lines. That is introducing the space. You may have to turn off autoformatting in your editor as:

<li>
  <a href="https://github.com/{{ author.github }}" itemprop="sameAs" rel="nofollow noopener noreferrer">
    <i class="fab fa-fw fa-github" aria-hidden="true"></i><span class="label">GitHub</span>
  </a>
</li>

Isn't the same as:

<li><a href="{{ link.url }}" rel="nofollow noopener noreferrer"><i class="{{ link.icon | default: 'fas fa-link' }}" aria-hidden="true"></i><span class="label">{{ link.label }}</span></a></li>

Your indents are being treated as white space. Hence the extra space.

Replies: 6 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by mmistakes
Comment options

You must be logged in to vote
0 replies
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
Converted from issue

This discussion was converted from issue #2622 on December 09, 2020 05:01.