Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Xing and GitLab services to the footer partial #76

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,9 @@ disableKinds = ["taxonomy", "taxonomyTerm"] # This theme does not currently use
# Social media links in footer
twitter = "TomaNistor"
linkedin = "tomanistor"
xing = ""
github = "tomanistor"
gitlab = ""
facebook = ""

# Copyright and theme author credit in footer
Expand Down
2 changes: 2 additions & 0 deletions exampleSite/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,9 @@ disableKinds = ["taxonomy", "taxonomyTerm"] # This theme does not currently use
# Social media links in footer
twitter = "TomaNistor"
linkedin = "tomanistor"
xing = ""
github = "tomanistor"
gitlab = ""
facebook = ""

# Copyright and theme author credit in footer
Expand Down
4 changes: 4 additions & 0 deletions i18n/en.toml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,11 @@ other = "Copyright"
other = "Facebook"
[github]
other = "GitHub"
[gitlab]
other = "GitLab"
[linkedin]
other = "LinkedIn"
[xing]
other = "Xing"
[twitter]
other = "Twitter"
8 changes: 8 additions & 0 deletions layouts/partials/footer.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,18 @@
<div class="col-xs-3 col-md-2"><a target="_blank" rel="noopener" href="/{{ .Site.Params.github }}">{{ i18n "github" }}</a></div>
{{ end }}

{{ if .Site.Params.gitlab }}
<div class="col-xs-3 col-md-2"><a target="_blank" rel="noopener" href="https://gitlab.com/{{ .Site.Params.gitlab }}">{{ i18n "gitlab" }}</a></div>
{{ end }}

{{ if .Site.Params.linkedin }}
<div class="col-xs-3 col-md-2"><a target="_blank" rel="noopener" href="https://linkedin.com/in/{{ .Site.Params.linkedin }}">{{ i18n "linkedin" }}</a></div>
{{ end }}

{{ if .Site.Params.xing }}
<div class="col-xs-3 col-md-2"><a target="_blank" rel="noopener" href="https://www.xing.com/profile/{{ .Site.Params.xing }}">{{ i18n "xing" }}</a></div>
{{ end }}

{{ if .Site.Params.twitter }}
<div class="col-xs-3 col-md-2"><a target="_blank" rel="noopener" href="https://twitter.com/{{ .Site.Params.twitter }}">{{ i18n "twitter" }}</a></div>
{{ end }}
Expand Down