Skip to content

Scripting in Template .md Files #1649

Answered by ang-zeyu
riyadh-h asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @riyadh-h!

There should be no "appropriate" issue with this, we specially hoist any <script> / <style> tags in layout / pages to below the <body> tag automatically so it dosen't interfere with vue SSR in fact (which is generally unhappy with these tags inside templates as they introduce side effects). You could use view page source to double check for your case though, it might be a bug (if there's anything wrong).

There are no <script> tags in default.md simply because there's not much of a use case for them in a template site 😛

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@riyadh-h
Comment options

Answer selected by riyadh-h
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants