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

github.com/queensferryme/hugo-theme-texify.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorQueensferry <queensferry.me@gmail.com>2021-02-25 17:27:56 +0300
committerQueensferry <queensferry.me@gmail.com>2021-02-25 18:37:03 +0300
commit8b1d56e0362187b5d88122dc55133a8d5a83357d (patch)
tree0e6538e1b7eef235ea0311a7026d5af2f65f0aa1
parent8627f9b84fcc4c3ad832472ccbdbdd6fd2ab89a5 (diff)
chore: use camel-case config params
-rw-r--r--exampleSite/config.toml4
-rw-r--r--layouts/partials/foot.html2
-rw-r--r--layouts/partials/head.html2
3 files changed, 4 insertions, 4 deletions
diff --git a/exampleSite/config.toml b/exampleSite/config.toml
index a89ce22..32982a4 100644
--- a/exampleSite/config.toml
+++ b/exampleSite/config.toml
@@ -36,9 +36,9 @@ name = "author"
weight = 3
[params]
- custom_css = []
+ customCSS = []
description = "an example site for hugo theme TeXify"
enableFullRSS = true
- enable_mathjax = true
+ enableMathjax = true
footnote = "Follow me on <a class=link href=https://github.com/queensferryme>GitHub</a>, <a class=link href=https://twitter.com/queensferryme>Twitter</a> or <a class=link href=/index.xml>RSS</a> | <a class=link href=https://creativecommons.org/licenses/by-nc-sa/4.0/deed.zh target=_blank rel=noopener>CC BY-NC-SA 4.0</a>"
keywords = ["hugo", "latex", "theme"]
diff --git a/layouts/partials/foot.html b/layouts/partials/foot.html
index 7bbffa2..f77f2aa 100644
--- a/layouts/partials/foot.html
+++ b/layouts/partials/foot.html
@@ -1,5 +1,5 @@
<!-- custom css -->
-{{ range .Site.Params.custom_css }}
+{{ range .Site.Params.customCSS }}
<link media="screen" rel="stylesheet" href="{{ . | absURL }}" />
{{ end }}
diff --git a/layouts/partials/head.html b/layouts/partials/head.html
index 5e86c8c..a56411f 100644
--- a/layouts/partials/head.html
+++ b/layouts/partials/head.html
@@ -22,7 +22,7 @@
{{ end }}
<!-- mathjax -->
-{{ if .Site.Params.enable_mathjax }}
+{{ if .Site.Params.enableMathjax }}
{{ partial "mathjax.html" . }}
{{ end }}