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 + avatar sometimes showing twice per page #724

Open
7MinSec opened this issue Jan 24, 2025 · 7 comments
Open

Author + avatar sometimes showing twice per page #724

7MinSec opened this issue Jan 24, 2025 · 7 comments

Comments

@7MinSec
Copy link

7MinSec commented Jan 24, 2025

Hello,

I deployed Retype in GitHub pages and it's working great! I have this weird issue though where a few of my pages (all built on a simple .md template) show my authorship twice even though it only appears once in the file:

---
authors:
  - name: Brian Johnson
    link: https://blahblah
    avatar: http://blahblah
icon: tools
label: Security appliance install

---

This shows as:

Image

Any thoughts?

@conanthedev
Copy link
Contributor

conanthedev commented Jan 24, 2025

As a workaround have you tried author instead of authors ? I think the plural version is for an array of authors, although it doesn't explain the odd behavior you are seeing.

You can see the author syntax in this example:
https://retype.com/configuration/page/#avatar

@7MinSec
Copy link
Author

7MinSec commented Jan 24, 2025

I did try author and have the same result. Also in clicking through my links in my KB site another random page is doing it as well. If you want to see live:

https://kb.7minsec.com/how-tos/security-appliance-install/
https://kb.7minsec.com/scoping/azure-assessment/

Compare to another page with the same header where my avatar isn't duplicated:

https://kb.7minsec.com/how-tos/kali-vm-install/

@conanthedev
Copy link
Contributor

I tried to repro, but I wasn't successful. This is something @geoffreymcgill will need to look into.

@geoffreymcgill
Copy link
Collaborator

Hi @7MinSec, Any chance you could make your docs repo public? or maybe I'm just not seeing it in your list of public repos.

If we could build the project locally and reproduce the issue, that would be a big help for isolating what is causing this double author rendering.

@7MinSec
Copy link
Author

7MinSec commented Jan 29, 2025

Hi thanks for the help! I've got some hidden pages on this repo that I only give to certain clients, but as an alternative could I make a zip of my folder hierarchy (minus the sensitive files) and send to you privately? Or do you need to see it "live".

As a weird experiment this morning I got rid of everything in the --- section except label (to clear author off altogether) and then pushed to GitHub. The result is what was expected (no author info listed):

Image

Then I put the author chunk back in and renamed the document "Penetration Test2" and look!

Image

I thought I was in the clear so I renamed back to "Security appliance install" and get this again! Double Brians!

Image

Then I did nothing on the doc except change the label to "am i insane" and push the change and...

Image

What the? I think I am insane! :-)

@7MinSec
Copy link
Author

7MinSec commented Jan 29, 2025

I thought I was on to something but I'm not. I thought that it had something to do with "security" being in the title. My tests:

Title is just the word "security"

Image

Title has the word "security" nested in another word

Image

Title has "security" as the first word

Image

Title has fifth word as "security"

Image

Title doesn't have "security" in it at all

Image

But here's where my theory goes out the door:

Renaming of a DIFFERENT page to have "security" in the title

Image

@geoffreymcgill
Copy link
Collaborator

Thanks for the update. I will run some tests and try to reproduce.

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