Skip to content

Commit f9165a8

Browse files
authored
Merge pull request #3 from dmil/site-improvements
Site improvements
2 parents d0c7566 + 699680f commit f9165a8

File tree

2 files changed

+35
-43
lines changed

2 files changed

+35
-43
lines changed

_config.yml

Lines changed: 25 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,32 @@
11
title: Dhrumil Mehta
22

3-
4-
github_url: https://github.com/dmil
5-
linkedin_url: https://linkedin.com/in/dhrumilmehta
6-
twitter_url: https://twitter.com/datadhrumil
7-
medium_url: https://medium.com/@DataDhrumil
8-
93
exclude: [screenshots, LICENSE, README.md]
104
markdown: kramdown
115

12-
button_1_text: Work
13-
button_1_url: work
14-
15-
button_2_text: Teaching
16-
button_2_url: teaching
6+
buttons:
7+
- text: Home
8+
url: /
9+
- text: Work
10+
url: work
11+
- text: Teaching
12+
url: teaching
13+
- text: Media
14+
url: media
1715

18-
button_3_text: Media
19-
button_3_url: media
16+
social:
17+
- type: email
18+
value: mailto:[email protected]
19+
class: envelope-o
20+
- type: github
21+
value: https://github.com/dmil
22+
class: github
23+
- type: linkedin
24+
value: https://linkedin.com/in/dhrumilmehta
25+
class: linkedin
26+
- type: twitter
27+
value: https://twitter.com/datadhrumil
28+
class: twitter
29+
- type: medium
30+
value: https://medium.com/@DataDhrumil
31+
class: medium
2032

21-
button_4_text: Home
22-
button_4_url: index

_layouts/default.html

Lines changed: 10 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -18,38 +18,20 @@
1818
<section id="pic">
1919
<a href="index"> <img src="assets/images/flair.jpg"></img> </a>
2020
<br/>
21-
<button type="button" onclick="location.href='{{ site.button_1_url }}';"> {{ site.button_1_text }} </button>
22-
<button type="button" onclick="location.href='{{ site.button_2_url }}';"> {{ site.button_2_text }} </button>
23-
<button type="button" onclick="location.href='{{ site.button_3_url }}';"> {{ site.button_3_text }} </button>
21+
{% for button in site.buttons %}
22+
<button type="button" onclick="location.href='{{ button.url }}';"> {{ button.text }} </button>
23+
{% endfor %}
2424
</section>
2525
<div class="u-cf"></div>
2626
<section id="social-media-links">
2727
<ul>
28-
<li class="social-medium">
29-
<a href="{{ site.medium_url }}">
30-
<i class="fa fa-medium"></i>
31-
</a>
32-
</li>
33-
<li class="social-github">
34-
<a href="{{ site.github_url }}">
35-
<i class="fa fa-github"></i>
36-
</a>
37-
</li>
38-
<li class="social-twitter">
39-
<a href="{{ site.twitter_url }}">
40-
<i class="fa fa-twitter"></i>
41-
</a>
42-
</li>
43-
<li class="social-linkedin">
44-
<a href="{{ site.linkedin_url }}">
45-
<i class="fa fa-linkedin"></i>
46-
</a>
47-
</li>
48-
<li class="social-email">
49-
<a href="mailto:{{ site.email }}">
50-
<i class="fa fa-envelope-o"></i>
51-
</a>
52-
</li>
28+
{% for item in site.social %}
29+
<li class="social-{{ item.type }}">
30+
<a href="{{ item.value }}">
31+
<i class="fa fa-{{ item.class }}"></i>
32+
</a>
33+
</li>
34+
{% endfor %}
5335
</ul>
5436
</section>
5537
</div>

0 commit comments

Comments
 (0)