diff options
author | Curtis Timson <curt@live.co.uk> | 2018-02-26 00:03:25 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-02-26 00:03:25 +0300 |
commit | 341c404a6b3377ae4276069772096b57dda3411c (patch) | |
tree | 126fa32f406dc46ad20307eca8d3b922e5da9252 | |
parent | ddb2021f39fb5b7b9c576222ba861567cec90234 (diff) | |
parent | 4b990406e3fa49b5f3df0f3cb805ccb7069864f0 (diff) |
Merge pull request #10 from curttimson/feature/social
Feature/social
-rw-r--r-- | exampleSite/data/social.yaml | 6 | ||||
-rw-r--r-- | layouts/partials/footer/index.html | 15 | ||||
-rw-r--r-- | layouts/partials/nav.html | 23 | ||||
-rw-r--r-- | package.json | 2 |
4 files changed, 40 insertions, 6 deletions
diff --git a/exampleSite/data/social.yaml b/exampleSite/data/social.yaml index bd7ba03..7d0bd7f 100644 --- a/exampleSite/data/social.yaml +++ b/exampleSite/data/social.yaml @@ -2,4 +2,8 @@ twitter: "https://twitter.com/" facebook: "https://facebook.com" instagram: "https://instagram.com" linkedin: "https://www.linkedin.com" -github: "https://github.com/"
\ No newline at end of file +github: "https://github.com/" +youtube: "https://youtube.com/" +googleplus: "https://plus.google.com/" +lastfm: "https://last.fm/" +flickr: "https://flickr.com/"
\ No newline at end of file diff --git a/layouts/partials/footer/index.html b/layouts/partials/footer/index.html index c10ed45..692162d 100644 --- a/layouts/partials/footer/index.html +++ b/layouts/partials/footer/index.html @@ -57,9 +57,24 @@ {{ with .instagram}} <li><a href="{{ . }}" class="icon alt fa-instagram"><span class="label">Instagram</span></a></li> {{ end }} + {{ with .linkedin}} + <li><a href="{{ . }}" class="icon alt fa-linkedin"><span class="label">LinkedIn</span></a></li> + {{ end }} {{ with .github}} <li><a href="{{ . }}" class="icon alt fa-github"><span class="label">GitHub</span></a></li> {{ end }} + {{ with .youtube}} + <li><a href="{{ . }}" class="icon alt fa-youtube"><span class="label">Youtube</span></a></li> + {{ end }} + {{ with .googleplus}} + <li><a href="{{ . }}" class="icon alt fa-google-plus"><span class="label">Google Plus</span></a></li> + {{ end }} + {{ with .lastfm}} + <li><a href="{{ . }}" class="icon alt fa-lastfm"><span class="label">Last.fm</span></a></li> + {{ end }} + {{ with .flickr}} + <li><a href="{{ . }}" class="icon alt fa-flickr"><span class="label">Flickr</span></a></li> + {{ end }} </ul> </section> {{ end }} diff --git a/layouts/partials/nav.html b/layouts/partials/nav.html index 16efa35..8057978 100644 --- a/layouts/partials/nav.html +++ b/layouts/partials/nav.html @@ -8,18 +8,33 @@ </ul> {{ with .Site.Data.social }} <ul class="icons"> - {{ with .twitter}} + {{ with .twitter }} <li><a href="{{ . }}" class="icon fa-twitter"><span class="label">Twitter</span></a></li> {{ end }} - {{ with .facebook}} + {{ with .facebook }} <li><a href="{{ . }}" class="icon fa-facebook"><span class="label">Facebook</span></a></li> {{ end }} - {{ with .instagram}} + {{ with .instagram }} <li><a href="{{ . }}" class="icon fa-instagram"><span class="label">Instagram</span></a></li> {{ end }} - {{ with .github}} + {{ with .linkedin }} + <li><a href="{{ . }}" class="icon fa-linkedin"><span class="label">LinkedIn</span></a></li> + {{ end }} + {{ with .github }} <li><a href="{{ . }}" class="icon fa-github"><span class="label">GitHub</span></a></li> {{ end }} + {{ with .youtube }} + <li><a href="{{ . }}" class="icon fa-youtube"><span class="label">Youtube</span></a></li> + {{ end }} + {{ with .googleplus }} + <li><a href="{{ . }}" class="icon fa-google-plus"><span class="label">Google Plus</span></a></li> + {{ end }} + {{ with .lastfm }} + <li><a href="{{ . }}" class="icon fa-lastfm"><span class="label">Last.fm</span></a></li> + {{ end }} + {{ with .flickr }} + <li><a href="{{ . }}" class="icon fa-flickr"><span class="label">Flickr</span></a></li> + {{ end }} </ul> {{ end }} </nav>
\ No newline at end of file diff --git a/package.json b/package.json index 0ed58cb..5c298be 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "hugo-theme-massively", - "version": "0.5.0", + "version": "0.6.0", "description": "HTML5 UP theme Massively for Hugo", "main": "index.js", "scripts": { |