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

[FR] Allow to set a different link in navbar for logo and for title #11110

Open
cderv opened this issue Oct 18, 2024 · 0 comments
Open

[FR] Allow to set a different link in navbar for logo and for title #11110

cderv opened this issue Oct 18, 2024 · 0 comments
Labels
enhancement New feature or request websites Issues creating websites
Milestone

Comments

@cderv
Copy link
Collaborator

cderv commented Oct 18, 2024

Currently logo-href is set for both

<% if (navbar.title || navbar.logo) { %>
<div class="navbar-brand-container mx-auto">
<% if (navbar.logo) { %>
<a href="<%- navbar['logo-href'] || '/index.html' %>" class="navbar-brand navbar-brand-logo">
<img src="<%- navbar.logo %>" alt="<%- navbar['logo-alt'] || '' %>" class="navbar-logo" />
</a>
<% } %>
<% if (navbar.title) { %>
<a class="navbar-brand" href="<%- navbar['logo-href'] || '/index.html' %>">
<span class="navbar-title"><%- navbar.title %></span>
</a>
<% } %>
</div>
<% } %>

Meaning if logo-href is set, then the link for the title part will change too.

Some users reported the desire to be able to customize it.

@cderv cderv added enhancement New feature or request websites Issues creating websites labels Oct 18, 2024
@cderv cderv added this to the Future milestone Oct 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request websites Issues creating websites
Projects
None yet
Development

No branches or pull requests

1 participant