-
-
Notifications
You must be signed in to change notification settings - Fork 4
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
Left-side navigation broken #859
Comments
On this page too: https://javascripttypescriptbooks.com/2/2/8/ |
Something is wrong on your content, which cause the Please check if there is raw HTML in the content that disrupts the HTML markup, as the image below shown, the script tag was broken on a specific page, which should be A common case is that there is some invalid raw HTML inside content, for example. <div>FOOBAR</div>
</div> The example above has a extra |
Please also check the Quiz Time! section, seems all the broken pages have this section. |
Thank you Razon, I can see it now too, it is Quiz section which is not HTML-escaped; "HTML injection"
|
Reported to "Quizdown", bonartm/quizdown-js#55 |
OK, I'm closing this because it's not a matter of theme. |
Yes, "user error"; thank you for the help! |
Finally I reported this bug and workaround to Hugo: |
I don't think it would be considered a bug, it's the responsibility of users to escape their customized HTML content. By the way, there is a htmlEscape function that might be helpful. |
No, it is bug in Hugo: |
Yes perhaps not a bug (really?): {{ replace .Inner " " " " }} will escape, and {{ .Inner }} won't. This does work, as suggested by @jmooring at Hugo:
|
Hi Razon, I am not sure if this is correct "module" to report the issue.
On this page, https://javascripttypescriptbooks.com/2/4/2/1/ I have 4.2.2 and 4.2.3 items. When I click on it, "menu" collapses. 4.2.3 has
`<script>` Tag
words, but why 4.2.2 has same behavior, unclear. I can only guess "script" is reserved keyword and Menu breaks if it has this word... I encountered very similar issue in past when I tried to havecontent/terms
folder, it breaks too, "terms" is reserved. Thanks,The text was updated successfully, but these errors were encountered: