retype icon indicating copy to clipboard operation
retype copied to clipboard

Author + avatar sometimes showing twice per page

Open 7MinSec opened this issue 1 year ago • 7 comments

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?

7MinSec avatar Jan 24 '25 04:01 7MinSec

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

conanthedev avatar Jan 24 '25 11:01 conanthedev

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/

7MinSec avatar Jan 24 '25 20:01 7MinSec

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

conanthedev avatar Jan 25 '25 15:01 conanthedev

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.

geoffreymcgill avatar Jan 28 '25 21:01 geoffreymcgill

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 avatar Jan 29 '25 16:01 7MinSec

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

7MinSec avatar Jan 29 '25 19:01 7MinSec

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

geoffreymcgill avatar Jan 29 '25 19:01 geoffreymcgill