Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/7ma7X/HugoTeX.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKaito Sugimoto <hellorusk1998@gmail.com>2022-02-13 06:39:57 +0300
committerGitHub <noreply@github.com>2022-02-13 06:39:57 +0300
commitd57b4d4afe8d245157b06a4c8eb8300754c60dd1 (patch)
tree2531c72301c2005eb4cd0b2810388204305e2681
parent44c55ad1d9c1632e9a9abcb331d16a1a8965f47a (diff)
parent1d386613a13ac4bfbb64c5b0e6a38c751c8c7161 (diff)
Merge pull request #8 from llazzaro/master
fix(darkmode): use config params to enable/disable darkmode
-rw-r--r--layouts/partials/head.html2
1 files changed, 2 insertions, 0 deletions
diff --git a/layouts/partials/head.html b/layouts/partials/head.html
index 166571a..122efd2 100644
--- a/layouts/partials/head.html
+++ b/layouts/partials/head.html
@@ -14,6 +14,8 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" href="{{ .Site.BaseURL }}css/latex.css" />
<link rel="stylesheet" href="{{ .Site.BaseURL }}css/main.css" />
+{{ if site.Params.darkmode }}
<link rel="stylesheet" href="{{ .Site.BaseURL }}css/darkmode.css" />
+{{- end }}
<script id="MathJax-script" async src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js"></script>
{{ hugo.Generator -}}