Skip to content

Commit

Permalink
Create parameters to customize copyright
Browse files Browse the repository at this point in the history
closes #48
  • Loading branch information
kakawait committed Nov 21, 2016
1 parent 6da8b9a commit 6c5c3e7
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
2 changes: 2 additions & 0 deletions docs/user.md
Original file line number Diff line number Diff line change
Expand Up @@ -334,6 +334,8 @@ E.g to display a shortcut to open algolia search window :

#### Customization

**ATTENTION** not all customizations are documented here, you may checkout [sample config.toml](https://github.com/kakawait/hugo-tranquilpeak-theme/blob/master/exampleSite/config.toml).

```toml
[params]
sidebar_behavior = 1
Expand Down
6 changes: 5 additions & 1 deletion exampleSite/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -161,4 +161,8 @@ defaultContentLanguage = "en-us"
[params.header.right_link]
class = ""
icon = ""
url = "/#about"
url = "/#about"

# Customize copyright value "© 2016 <CUSTOMIZATION>. All Rights Reserved"
# [params.footer]
# copyright = "<a href=\"https://github.com/kakawait\">kakawait</a>"
2 changes: 1 addition & 1 deletion layouts/partials/footer.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<footer id="footer" class="main-content-wrap">
<span class="copyrights">
&copy; {{ .Now.Format "2006" }} {{ with .Site.Author.name }}{{ . }}{{ else }}{{ with .Site.Title }}{{ . }}{{ end }}{{ end }}. {{ i18n "footer.all_rights_reserved" }}
&copy; {{ .Now.Format "2006" }} {{ with .Site.Params.footer.copyright }}{{ . | safeHTML }}{{ else }}{{ with .Site.Author.name }}{{ . }}{{ else }}{{ with .Site.Title }}{{ . }}{{ end }}{{ end }}{{ end }}. {{ i18n "footer.all_rights_reserved" }}
</span>
</footer>

0 comments on commit 6c5c3e7

Please sign in to comment.