-
Notifications
You must be signed in to change notification settings - Fork 133
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
Content Insertion into <head> does not respect file types #993
Comments
Seems like this feature never exist before, the PR that the claim originated from (#361) doesn't seem to support this. |
Agreed, perhaps the best remedy now is simply to remove that claim from the documentation. |
In that case, should we aim to deprecate this feature? |
Perhaps the feature never existed except in the UG? In that case just remove it from the UG should be enough (as opposed to a formal deprecation). |
Sorry, I meant the head content insertion feature, since layouts provides a better way of achieving the same thing |
In the future possibility. This feature is commonly used, so it is probably going to stay around for a few versions at least. |
Tell us about your environment
What did you do? Please include the actual source code causing the issue.
According to the UG, adding raw JS and CSS files to the
<head>
is supported.I attempted to insert a custom CSS file into the head of a page.
index.md
customStyles.css
What did you expect to happen?
I expected the contents of
customStyles.css
to be wrapped in a<style>
tag and inserted.What actually happened? Please include the actual, raw output.
The contents of
customStyles.css
is inserted raw, i.e. without being wrapped in a<style>
tag.This issue also affects JS files inserted this way.
Proposed solution:
Edit
Page.js
to wrap contents in<style>
and<script>
tags for CSS and JS files respectively.The text was updated successfully, but these errors were encountered: