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

feature idea: alternative heading text value for SEO reasons #22

Open
nikolastanin opened this issue Oct 9, 2023 · 1 comment
Open

Comments

@nikolastanin
Copy link

nikolastanin commented Oct 9, 2023

H2 added in content(or any other heading) appears as is in the content table list item, but sometimes I want to use a shorter version for SEO reasons...

actual h2 :
<h2 id="text"> iPhone 15 Pro : Specs and Features Reviewed</h2>

output:
<li><a href="#text"> iPhone 15 Pro : Specs and Features Reviewed</a></li>

I would like to have something like this:
actual h2 :
<h2 id="text" data-alternative-text="iPhone 15 Pro"> iPhone 15 Pro : Specs and Features Reviewed</h2>
output:
<li><a href="#text"> iPhone 15 Pro</a></li>

So if specified we use the data-alternative-text="" value instead. If not specified just carry on as usual.

Hope this seems like a reasonable idea :) Cheers!

@nikolastanin
Copy link
Author

actually while looking more deeply in the code i found out title="xxxxx" can be used.

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

1 participant