Author link issue not picking up on customized author-profile.html includes #2622
-
Environment
Expected behaviorAuthor links should not show underscores as per the fix #2472. I have made modifications to the author profile page and looks like this particular fix is just not picking up during the build. I am pretty sure that it is a silly mistake that I may be doing but just can't seem to figure it out. I have tried Netlify clear up the cache and deploy new build but still the same. This is what the code for the fix looks like on my repo Any help will be greatly appreciated. |
Beta Was this translation helpful? Give feedback.
Replies: 6 comments
-
Check #2472 again, there was also a change made to |
Beta Was this translation helpful? Give feedback.
-
@mmistakes I understood that a css change was also done, but since I'm using the gem version and have updated to 4.19.3, any specific reason why this scss change is not getting picked up automatically? |
Beta Was this translation helpful? Give feedback.
-
Looking at your author-profile.html local file, this line is your problem. It doesn't match what's current on Line 47 should be this if you want to match the theme fix:
|
Beta Was this translation helpful? Give feedback.
-
Ok,
I understand but this extra space is not there for rest of the links, for
instance lets take Github link (
https://github.com/piyushpaliwal/mmeverythingcrm/blob/762d5ae189fab18b82af8546288dfab705bf22ce/_includes/author-profile.html#L140
)
There is no extra space here and still it doesn't respect the fix.
Regards,
Piyush
…On Mon, 27 Jul 2020 at 6:02 PM, Michael Rose ***@***.***> wrote:
Looking at your author-profile.html local file, this line is your problem
<https://github.com/piyushpaliwal/mmeverythingcrm/blob/master/_includes/author-profile.html#L47>.
It doesn't match what's current on master in the MM gem. You have a space
between the icon and link.label, which is why the underline is showing up.
Line 47 should be this if you want to match the theme fix:
<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>
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<https://github.com/mmistakes/minimal-mistakes/issues/2622#issuecomment-664367813>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAE3GLPUXEHTZBQJZYBIKP3R5VXWBANCNFSM4PHZ6NHA>
.
|
Beta Was this translation helpful? Give feedback.
-
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. |
Beta Was this translation helpful? Give feedback.
-
You are absolutely right, I knew it was a silly thing that I was missing out on; completely ignored the links loop. Apologies for the inconvenience, and thanks for the prompt responses. Really appreciate it. |
Beta Was this translation helpful? Give feedback.
Don't wrap the lines. That is introducing the space. You may have to turn off autoformatting in your editor as:
Isn't the same as:
Your indents are being treated as white space. Hence the extra space.