Skip to content

Commit

Permalink
Add visual attribution
Browse files Browse the repository at this point in the history
  • Loading branch information
stp-ip committed Oct 18, 2017
1 parent 88dfe8d commit 6fb49b3
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 0 deletions.
1 change: 1 addition & 0 deletions exampleSite/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ googleAnalytics = ""
[params]
name = "Okkur Labs"
description = "Open Source Theme for your next project"
attribution = "true"

# Branding options
[params.branding]
Expand Down
2 changes: 2 additions & 0 deletions i18n/de.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
# General
- id: attribution
translation: "Webseite basiert auf"
- id: de
translation: "deutsch"

Expand Down
2 changes: 2 additions & 0 deletions i18n/en.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
# General
- id: attribution
translation: "Website based on"
- id: en
translation: "English"

Expand Down
16 changes: 16 additions & 0 deletions layouts/partials/footer.html
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,22 @@
</div>
</div>
</div>
{{ if .Site.Params.attribution }}
<div class="col-auto mx-auto">
<div class="row navbar-text text-center
{{- if eq $bg "dark" -}}
{{- printf " text-%s" "secondary" -}}
{{- else -}}
{{- printf " text-%s" "dark" -}}
{{- end -}}
">
{{- i18n "attribution" -}}
<a href="https://github.com/okkur/syna" class="ml-1">
{{- printf "Syna" -}}
</a>
</div>
</div>
{{ end }}
{{ if .Site.Menus.legalfooter }}
<div class="col-md">
<div class="row my-2 justify-content-center">
Expand Down

0 comments on commit 6fb49b3

Please sign in to comment.