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

Introduce link tag filter hook #71

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

BenBE
Copy link

@BenBE BenBE commented Sep 5, 2024

This PR introduces a new hook to allow the user to modify or supress individual or all link tags generated by this plugin.

As I'm rarely working with JS/TS, I'm glad about feedback on the code. The PR was drafted in a few minutes. I only gauged the code to look fine; I didn't run it … ;-)

Fixes: #7, #10, #70

Using this hook a hook can be set that allows for
filtering the list of link tags that are generated
by this plugin. The hook can both supress generating
link tags or modify the contents of the links.

Fixes: cssninjaStudio#7
Fixes: cssninjaStudio#10
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

Successfully merging this pull request may close these issues.

Is there a way to inject link attributes to the generated link tag?
1 participant