-
My site is set to "dark" as the default appearance. I am wanting to set my resume.md page to "light" while the rest of the site remains dark. Is this doable, and if so, how would I go about doing this? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Although the theme doesn't directly support overriding the appearance on a per-article basis, you could possibly add some JavaScript to force this behaviour on page load. Try including something like the below in your <script type="text/javascript">
document.documentElement.classList.remove("dark");
</script> The caveat with this is that the JS will only execute once the page has loaded so it may appear dark until the code has a chance to run. |
Beta Was this translation helpful? Give feedback.
Although the theme doesn't directly support overriding the appearance on a per-article basis, you could possibly add some JavaScript to force this behaviour on page load.
Try including something like the below in your
resume.md
content:The caveat with this is that the JS will only execute once the page has loaded so it may appear dark until the code has a chance to run.