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 Instagram option to footer #58

Closed
wants to merge 4 commits into from
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
editing header and footer
  • Loading branch information
cmackenzie1 committed Jan 15, 2019
commit 98f36f68a7f76b28f95df5c7e7149341b73f47e5
53 changes: 30 additions & 23 deletions layouts/partials/footer.html
Original file line number Diff line number Diff line change
@@ -1,30 +1,37 @@
<footer class="row middle-xs center-xs">

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

{{ if .Site.Params.github }}
<div class="col-xs-3 col-md-2"><a target="_blank" href="/{{ .Site.Params.github }}">GitHub</a></div>
{{ end }}
<div class="col-xs-3 col-md-2"><a target="_blank" href="https://goo.gl/maps/osstJoEPzBN2">10950 84 Ave NW<br>Edmonton, Alberta T6G 0V4<br>[email protected]</a></div>

{{ if .Site.Params.facebook }}
<div class="col-xs-3 col-md-2 fab fa-facebook"><a target="_blank" href="https://facebook.com/{{ .Site.Params.facebook }}"> Facebook</a></div>
{{ end }}

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

{{ if .Site.Params.twitter }}
<div class="col-xs-3 col-md-2"><a target="_blank" href="https://twitter.com/{{ .Site.Params.twitter }}">Twitter</a></div>
{{ end }}
{{ if .Site.Params.instagram }}
<div class="col-xs-3 col-md-2 fab fa-instagram"> <a target="_blank" href="https://instagram.com/{{ .Site.Params.instagram }}"> Instagram</a></div>
{{ end }}

{{ if .Site.Params.github }}
<div class="col-xs-3 col-md-2 fab fa-github"><a target="_blank" href="/{{ .Site.Params.github }}"> GitHub</a></div>
{{ end }}

{{ if or (.Site.Params.copyright) (.Site.Params.credit) }}
<div class="col-xs-12">
{{ if .Site.Params.copyright }}
Copyright &copy; {{ now.Format "2006" }} {{ .Site.Title }}.
{{ end }}
{{ if .Site.Params.credit }}
<a href="https://tomanistor.com" target="_blank">Theme developed by Toma Nistor</a>
{{ end }}
</div>
{{ end }}
{{ if .Site.Params.linkedin }}
<div class="col-xs-3 col-md-2"><a target="_blank" href="https://linkedin.com/in/{{ .Site.Params.linkedin }}"> LinkedIn</a></div>
{{ end }}

{{ if .Site.Params.twitter }}
<div class="col-xs-3 col-md-2 fab fa-twitter"><a target="_blank" href="https://twitter.com/{{ .Site.Params.twitter }}"> Twitter</a></div>
{{ end }}

{{ if or (.Site.Params.copyright) (.Site.Params.credit) }}
<div class="col-xs-12">
{{ if .Site.Params.copyright }}
Copyright &copy; {{ now.Format "2006" }} {{ .Site.Title }}.
{{ end }}
{{ if .Site.Params.credit }}
<a href="https://tomanistor.com" target="_blank">Theme developed by Toma Nistor</a>
{{ end }}
</div>
{{ end }}

</footer>
1 change: 1 addition & 0 deletions layouts/partials/header.html
Original file line number Diff line number Diff line change
Expand Up @@ -93,4 +93,5 @@
{{ if .Site.GoogleAnalytics }}
{{ template "_internal/google_analytics.html" . }}
{{ end }}
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.6.3/css/all.css" integrity="sha384-UHRtZLI+pbxtHCWp1t77Bi1L4ZtiqrqD80Kn4Z8NTSRyMA2Fd33n5dQ8lWUE00s/" crossorigin="anonymous">
</head>