wowchemy-init.js 496 B

123456789101112131415161718
  1. /*************************************************
  2. * Wowchemy
  3. * https://github.com/wowchemy/wowchemy-hugo-modules
  4. *
  5. * Wowchemy Initialization
  6. **************************************************/
  7. import {initThemeVariation} from './wowchemy-theming';
  8. import {wcDarkLightEnabled, wcIsSiteThemeDark} from '@params';
  9. window.wc = {
  10. darkLightEnabled: wcDarkLightEnabled,
  11. isSiteThemeDark: wcIsSiteThemeDark,
  12. }
  13. // Initialize theme variation and set body theme class.
  14. initThemeVariation();