Skip to content

Commit

Permalink
#12 Move social media configuration from _config.yml to _settings.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
LeNPaul committed May 13, 2021
1 parent 5df317f commit 3479849
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
6 changes: 0 additions & 6 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,3 @@ url: "" # the base hostname & protocol for your site, e.g. http://example.com
baseurl: "" # the subpath of your site, e.g. /blog
title: "academic" # the name of your site, e.g. ACME Corp.
description: "a Jekyll theme for academia"

social:
- {icon: 'github', link: 'https://github.com/LeNPaul'}
- {icon: 'twitter', link: 'https://twitter.com/paululele'}
- {icon: 'instagram', link: 'https://instagram.com/paululele'}
- {icon: 'linkedin', link: 'https://linkedin.com/in/lenpaul'}
6 changes: 6 additions & 0 deletions _data/settings.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,11 @@ courses:
- {name: 'Quantum Mechanics', url: 'quantum-mechanics'}
- {name: 'Stellar Structures', url: 'stellar-structures'}

social:
- {icon: 'github', link: 'https://github.com/LeNPaul'}
- {icon: 'twitter', link: 'https://twitter.com/paululele'}
- {icon: 'instagram', link: 'https://instagram.com/paululele'}
- {icon: 'linkedin', link: 'https://linkedin.com/in/lenpaul'}

contacts:
- {name: 'Dr. Academia', title: 'Professor', department: 'Physics & Astronomy', institution: 'Some University', institution_address: '1 Main Street, Canada', phone: '(000) 000-0000', email: '[email protected]', office: 'Science Building 505', image: 'assets/img/contact.jpg'}
2 changes: 1 addition & 1 deletion _includes/footer.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<footer class="pt-5 my-5 text-muted border-top">
<div class="row">
<div class="col-md-6 text-end social-media-icons">
{% for item in site.social %}
{% for item in site.data.settings.social %}
<a href="{{ item.link }}" class="ms-3 fs-5"><i class="fab fa-{{ item.icon }}"></i></a>
{% endfor %}
</div>
Expand Down

0 comments on commit 3479849

Please sign in to comment.