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

github.com/thomasheller/crab.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Heller <thomas.m.heller@gmail.com>2017-08-19 11:10:49 +0300
committerGitHub <noreply@github.com>2017-08-19 11:10:49 +0300
commit50f20907cf7fc86e1d0411eb94e1f96a36fb7504 (patch)
tree4085b1e57a92c9f26cd6dbdedc2e7fe46077ed87
parentfe46e5aefd9aa8f2b6274aa5d1d88edc716edac0 (diff)
parent55901ef1e3006fb8cbb29c4f1b58b04dabf3a53a (diff)
Merge pull request #8 from sdban/sdban
Added custom copyright and enabling MathJax option
-rw-r--r--exampleSite/config.toml6
-rw-r--r--layouts/partials/footer.html2
-rw-r--r--layouts/partials/header.html8
3 files changed, 15 insertions, 1 deletions
diff --git a/exampleSite/config.toml b/exampleSite/config.toml
index 52530e1..d438020 100644
--- a/exampleSite/config.toml
+++ b/exampleSite/config.toml
@@ -6,6 +6,12 @@ baseurl = "https://example.com"
[params]
description = "A clean Hugo theme for websites"
# logoimage = "images/logo.jpg"
+# copyright = "foo"
+
+# mathjax = "https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.1/MathJax.js?config=TeX-AMS-MML_HTMLorMML"
+## Uncomment if you want mathjax enabled. The above cdn source is taken from https://gohugo.io/content-management/formats/#mathjax-with-hugo
+
+
[permalinks]
blog = "/blog/:year/:month/:title/"
diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html
index e6f943e..b52e90c 100644
--- a/layouts/partials/footer.html
+++ b/layouts/partials/footer.html
@@ -3,7 +3,7 @@
</div>
<div id="footer">
- Copyright {{ now.Year }} {{ .Site.Title }}
+ Copyright {{ now.Year }} {{ $.Site.Params.copyright }}
</div>
</div>
diff --git a/layouts/partials/header.html b/layouts/partials/header.html
index cc8f8a8..4e519a2 100644
--- a/layouts/partials/header.html
+++ b/layouts/partials/header.html
@@ -5,6 +5,14 @@
<link rel="stylesheet" href="{{ .Site.BaseURL }}css/crab.css">
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=0.5, maximum-scale=3.0">
{{ .Hugo.Generator }}
+
+
+
+ {{ if isset .Site.Params "mathjax"}}
+ <script type="text/javascript" src="{{ .Site.Params.mathjax }}">
+ </script>
+ {{end}}
+
</head>
<body>