diff options
author | bake <bake@192k.pw> | 2019-07-13 21:16:22 +0300 |
---|---|---|
committer | bake <bake@192k.pw> | 2019-07-13 21:16:22 +0300 |
commit | c200ea90bfc1a1052cd474b4ae751e28395b04fa (patch) | |
tree | d429add045776c7ccd47dfd03c42a066a7396e6e | |
parent | a7e8b9c772ea97da6169121d6da9dcd5238c1232 (diff) |
Add the .Site.Copyright variable
-rw-r--r-- | exampleSite/config.toml | 1 | ||||
-rw-r--r-- | layouts/_default/baseof.html | 11 |
2 files changed, 9 insertions, 3 deletions
diff --git a/exampleSite/config.toml b/exampleSite/config.toml index cc3ee5e..fd8d9e9 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -2,6 +2,7 @@ title = "Solar Theme" theme = "solar-theme-hugo" paginate = 5 pygmentsStyle = "solarized-dark" # solarized-light, -dark or -dark256 +copyright = "" [params] scheme = "dark" # light, dark or gray diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index be8578c..1c68074 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -30,9 +30,14 @@ </div> <footer id="footer"> - <p class="copyright">Powered by - <a href="https://gohugo.io/">Hugo</a> and the - <a href="https://github.com/bake/solar-theme-hugo">Solar</a>-theme.</p> + <p class="copyright"> + {{ if .Site.Copyright }} + {{ .Site.Copyright }} + {{ else }} + Powered by <a href="https://gohugo.io/">Hugo</a> and the + <a href="https://github.com/bake/solar-theme-hugo">Solar</a>-theme. + {{ end }} + </p> </footer> </div> |