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

Allow specifying alt override in title #156

Open
pypeaday opened this issue Dec 22, 2023 · 3 comments
Open

Allow specifying alt override in title #156

pypeaday opened this issue Dec 22, 2023 · 3 comments

Comments

@pypeaday
Copy link
Collaborator

Problem:

In my index.md in the frontmatter where I put the title of my landing page, I have some html that renders a hand waving...

<a href="https://pype.dev/"><img src="https://media.giphy.com/media/hvRJCLFzcasrR4ia7z/giphy.gif" width="50px" height="50px"></a>

But then the html string gets rendered in the chrome tab
image

It's be nice to specify the actual alt text for the title in this case so the tab can have a sane text representation in the browser

@WaylonWalker
Copy link
Owner

You need some js or maybe some special ico to have an animated icon. gifs are only supported in firefox. I think you are looking for something like this.

    <link rel='icon' href="https://media.giphy.com/media/hvRJCLFzcasrR4ia7z/giphy.gif" type='image/gif'>

@pypeaday
Copy link
Collaborator Author

pypeaday commented Jan 4, 2024

image
Oh that helped a little but didn't perfectly fix it... I wasn't really worried about having the gif in the tab anyways, just the title would be fine

@WaylonWalker
Copy link
Owner

oh, do you have a <title></title> tag anywhere?

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

2 participants