mirror of
https://github.com/gcushen/hugo-academic.git
synced 2025-07-26 19:15:16 +02:00
fix: page flickers when user's dark/light pref differs to theme's default
Fixes typo calling canChangeTheme().
Fix eb8748ff17
Fix #1601
This commit is contained in:
parent
70cbc5b90a
commit
e034f7782e
3 changed files with 5 additions and 5 deletions
|
@ -9,7 +9,7 @@
|
|||
}
|
||||
|
||||
function initThemeVariation() {
|
||||
if (!canChangeTheme) {
|
||||
if (!canChangeTheme()) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
theme = "minimal"
|
||||
|
||||
# Enable users to switch between day and night mode?
|
||||
day_night = true
|
||||
day_night = false
|
||||
|
||||
# Override the theme's font set (optional).
|
||||
# Latest font sets (may require updating): https://sourcethemes.com/academic/themes/
|
||||
|
@ -57,7 +57,7 @@ description = ""
|
|||
# Enable source code highlighting? true/false
|
||||
# Documentation: https://sourcethemes.com/academic/docs/writing-markdown-latex/#highlighting-options
|
||||
highlight = true
|
||||
highlight_languages = ["r"] # Add support for highlighting additional languages
|
||||
highlight_languages = ["r", "latex"] # Add support for highlighting additional languages
|
||||
# highlight_style = "github" # For supported styles, see https://cdnjs.com/libraries/highlight.js/
|
||||
|
||||
# Enable LaTeX math rendering? true/false
|
||||
|
|
|
@ -54,7 +54,7 @@ To render *inline* or *block* math, wrap your LaTeX math with `$...$` or `$$...$
|
|||
|
||||
Example **math block**:
|
||||
|
||||
```tex
|
||||
```latex
|
||||
$$\gamma_{n} = \frac{
|
||||
\left | \left (\mathbf x_{n} - \mathbf x_{n-1} \right )^T
|
||||
\left [\nabla F (\mathbf x_{n}) - \nabla F (\mathbf x_{n-1}) \right ] \right |}
|
||||
|
@ -69,7 +69,7 @@ Example **inline math** `$\nabla F(\mathbf{x}_{n})$` renders as $\nabla F(\mathb
|
|||
|
||||
Example **multi-line math** using the `\\\\` math linebreak:
|
||||
|
||||
```tex
|
||||
```latex
|
||||
$$f(k;p_0^*) = \begin{cases} p_0^* & \text{if }k=1, \\\\
|
||||
1-p_0^* & \text {if }k=0.\end{cases}$$
|
||||
```
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue