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

github.com/vividvilla/ezhil.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVivek R <vividvilla@gmail.com>2019-10-10 14:49:09 +0300
committerGitHub <noreply@github.com>2019-10-10 14:49:09 +0300
commit6e5bf0c053c93be02982d1d265b468b853ecae30 (patch)
treecf9eceef93254513dddc258b4b0fa5ef6088cb6a
parentbe412d7167b230321aa1ecab53f9b2eae8999975 (diff)
parenta09b1d9585fb02d2feed582f7f9ccf4f7cb8f324 (diff)
Merge pull request #17 from cgiacomi/feature/copyright
feat: add copyright option
-rw-r--r--README.md2
-rw-r--r--exampleSite/config.toml2
-rw-r--r--layouts/partials/footer.html2
3 files changed, 5 insertions, 1 deletions
diff --git a/README.md b/README.md
index 64c31f2..ace07d7 100644
--- a/README.md
+++ b/README.md
@@ -39,6 +39,8 @@ languageCode = "en-us"
title = "My personal blog"
theme = "ezhil"
+copyright = "© Copyright notice"
+
# Enable syntax highlighting.
pygmentsstyle = "vs"
pygmentscodefences = true
diff --git a/exampleSite/config.toml b/exampleSite/config.toml
index a930a6e..6eb3bc5 100644
--- a/exampleSite/config.toml
+++ b/exampleSite/config.toml
@@ -4,6 +4,8 @@ title = "Ezhil"
theme = "ezhil"
paginate = 5
+copyright = "© Copyright notice"
+
pygmentsstyle = "vs"
pygmentscodefences = true
pygmentscodefencesguesssyntax = true
diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html
index b3f1539..52d25ba 100644
--- a/layouts/partials/footer.html
+++ b/layouts/partials/footer.html
@@ -1,6 +1,6 @@
<div class="footer wrapper">
<nav class="nav">
- <div><a href="https://github.com/vividvilla/ezhil">Ezhil theme</a> | Built with <a href="https://gohugo.io">Hugo</a></div>
+ <div>{{ with .Site.Copyright }} {{ . }} | {{ end }} <a href="https://github.com/vividvilla/ezhil">Ezhil theme</a> | Built with <a href="https://gohugo.io">Hugo</a></div>
</nav>
</div>