* feat: Added default theme
* Revert "feat: Added default theme"
This reverts commit a11a99f92a
.
* feat: Add basic theme feature
* feat: Add theme settings
* fix: Fix default theme value
* fix: Fix CR and doc-string
* Comment out darkMode on exampleSite/hugo.yaml
Signed-off-by: hossainemruz <hossainemruz@gmail.com>
---------
Signed-off-by: hossainemruz <hossainemruz@gmail.com>
Co-authored-by: Emruz Hossain <hossainemruz@gmail.com>
31 lines
557 B
JavaScript
31 lines
557 B
JavaScript
if (process.env.FEATURE_VIDEOPLAYER === '1') {
|
|
import('./videoplayer')
|
|
}
|
|
|
|
if (process.env.FEATURE_TOC === '1') {
|
|
import('./toc')
|
|
}
|
|
|
|
if (process.env.FEATURE_DARKMODE === '1') {
|
|
import('./darkmode')
|
|
}
|
|
|
|
if (process.env.FEATURE_THEME === '1') {
|
|
import('./theme')
|
|
}
|
|
|
|
if (process.env.FEATURE_FLOWCHART === '1') {
|
|
import('./flowchart')
|
|
}
|
|
|
|
if (process.env.FEATURE_SYNTAXHIGHLIGHT === '1') {
|
|
import('./syntaxhighlight')
|
|
}
|
|
|
|
if (process.env.FEATURE_MATH === '1') {
|
|
import('./math')
|
|
}
|
|
|
|
if (process.env.FEATURE_EMBEDPDF === '1') {
|
|
import('./embedpdf')
|
|
}
|