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 linkifying the logo #2817

Closed
mcol opened this issue Nov 14, 2024 · 1 comment
Closed

allow linkifying the logo #2817

mcol opened this issue Nov 14, 2024 · 1 comment

Comments

@mcol
Copy link
Contributor

mcol commented Nov 14, 2024

I couldn't find a way to linkify the logo so that it points to a specific URL. For example, this sample README.md contains a link:

# pkgdown <a href="https://pkgdown.r-lib.org/"><img src="man/figures/logo.png" align="right" /></a>

but the resulting html only contains:

<div class="page-header">
<img src="logo.png" class="logo" alt=""><h1 id="pkgdown-">pkgdown 
<a class="anchor" aria-label="anchor" href="#pkgdown-"></a>
</h1>
</div>

It's as if the link is stripped. It would be nice if it was respected or if there was some yaml setting to control the URL associated to the logo.

@hadley
Copy link
Member

hadley commented Nov 14, 2024

For various complicated reasons, the logo is stripped from the HTML and re-added by pkgdown to each page. Unfortunately I think it's going to be a lot of work to fix this, especially given that there's already a prominent link to the home page.

@hadley hadley closed this as completed Nov 14, 2024
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