I need to implement a style plugin #5530
Unanswered
everfu
asked this question in
Question / Answer
Replies: 1 comment
-
Tags are rendered in post body, which is inside HTML body. But for styles (style or link element), it's better to put them in HTML head. Therefore, tag plugin is not suitable for this feature. I suggest to set a variable in post front-matter and use a filter plugin to insert the style after post rendered. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
My idea is to use the tags plugin to insert a style into the style of the current page when there is a post or page that uses the current tag, can this be done? Please give me an example.
Beta Was this translation helpful? Give feedback.
All reactions