diff options
Diffstat (limited to 'layouts/partials')
-rw-r--r-- | layouts/partials/footer.html | 47 | ||||
-rw-r--r-- | layouts/partials/social.html | 16 |
2 files changed, 63 insertions, 0 deletions
diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index eb1e7e7..d60e941 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html | |||
@@ -1,5 +1,52 @@ | |||
1 | <footer> | 1 | <footer> |
2 | <div class="container"> | 2 | <div class="container"> |
3 | <h3>{{ .Site.Title }}</h3> | 3 | <h3>{{ .Site.Title }}</h3> |
4 | <div class="grid"> | ||
5 | <div class="flex col"> | ||
6 | <section> | ||
7 | <h4>Contact Info</h4> | ||
8 | <p>Phone: {{ .Site.Params.phone }}</p> | ||
9 | <p>Email: {{ .Site.Params.email }}</p> | ||
10 | </section> | ||
11 | <section> | ||
12 | <h4>Connect</h4> | ||
13 | <ul> | ||
14 | {{ range $key, $value := .Site.Social }} | ||
15 | <li> | ||
16 | {{ partial "social.html" (dict "social" $key "username" $value) }} | ||
17 | </li> | ||
18 | {{ end }} | ||
19 | </ul> | ||
20 | </section> | ||
21 | </div> | ||
22 | {{ with .Site.Params.friends }} | ||
23 | <div class="friends-list"> | ||
24 | <h3>Friends</h3> | ||
25 | <ul> | ||
26 | {{ range . }} | ||
27 | <li> | ||
28 | <a href="{{ .url }}" target="_blank"> | ||
29 | {{ if isset . "icon" }} | ||
30 | <img src="{{ .icon }}" alt="{{ .name }}" /> | ||
31 | {{ else }} | ||
32 | {{ .name }} | ||
33 | {{ end }} | ||
34 | </a> | ||
35 | </li> | ||
36 | {{ end }} | ||
37 | </ul> | ||
38 | </div> | ||
39 | {{ end }} | ||
40 | <section> | ||
41 | <h4>Navigation</h4> | ||
42 | <ul> | ||
43 | {{ range .Site.Menus.main }} | ||
44 | <li><a href="{{ .URL }}">{{ .Name }}</a></li> | ||
45 | {{ end }} | ||
46 | </ul> | ||
47 | </section> | ||
48 | </div> | ||
49 | </div> | ||
50 | <div class="copyright">© Copyright {{ now.Format "2006" }} | All Rights Reserved | ||
4 | </div> | 51 | </div> |
5 | </footer> \ No newline at end of file | 52 | </footer> \ No newline at end of file |
diff --git a/layouts/partials/social.html b/layouts/partials/social.html new file mode 100644 index 0000000..03645ad --- /dev/null +++ b/layouts/partials/social.html | |||
@@ -0,0 +1,16 @@ | |||
1 | {{ $social := .social }} | ||
2 | {{ $username := .username }} | ||
3 | |||
4 | {{ $url := "" }} | ||
5 | |||
6 | {{ if eq $social "github" }} | ||
7 | {{ $url = printf "https://github.com/%s" $username }} | ||
8 | {{ else if eq $social "linkedin" }} | ||
9 | {{ $url = printf "https://www.linkedin.com/in/%s" $username }} | ||
10 | {{ else }} | ||
11 | {{ $url = "#" }} | ||
12 | {{ end }} | ||
13 | |||
14 | <a href="{{ $url }}" target="_blank"> | ||
15 | {{ title $social }} | ||
16 | </a> \ No newline at end of file | ||