Skip to content

Use non-default Appearance for specific page? #177

Answered by jpanther
brianlg asked this question in Q&A
Discussion options

You must be logged in to vote

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:

<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.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@brianlg
Comment options

Answer selected by brianlg
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