Merge pull request #14 from adunning/patch-1

Add ORCID support; make social links optional
This commit is contained in:
Maruan 2018-05-07 13:42:24 -04:00 committed by GitHub
commit 923d9ec753
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 13 additions and 11 deletions

View File

@ -17,10 +17,11 @@ last_updated: # leave blank if you don't want to display last updated
# ----------------------------------------------------------------------------- # -----------------------------------------------------------------------------
# Social integration # Social integration
# ----------------------------------------------------------------------------- # -----------------------------------------------------------------------------
github_username: # put your github username github_username: # your GitHub user name
twitter_username: # put your twitter username twitter_username: # your Twitter handle
linkedin_username: # put your linkedin username linkedin_username: # your LinkedIn user name
scholar_authorid: # put your google scholar author id scholar_userid: # your Google Scholar ID
orcid_id: # your ORCID ID
contact_note: > contact_note: >
You can even add a little note about which of these is the best way to reach you. You can even add a little note about which of these is the best way to reach you.
@ -76,8 +77,8 @@ highlighter: pygments
# Includes # Includes
include: ['_pages'] include: ['_pages']
# Gems # Plug-ins
gems: plugins:
- jekyll-email-protect - jekyll-email-protect
- jekyll-paginate - jekyll-paginate
- jekyll/scholar - jekyll/scholar

View File

@ -1,11 +1,12 @@
<div class="social"> <div class="social">
<span class="contacticon center"> <span class="contacticon center">
<a href="mailto:{{ site.email | encode_email }}"><i class="fas fa-envelope"></i></a> <a href="mailto:{{ site.email | encode_email }}"><i class="fas fa-envelope"></i></a>
<a href="https://scholar.google.com/citations?user={{ site.scholar_userid }}" target="_blank" title="Google Scholar"><i class="ai ai-google-scholar"></i></a> {% if site.orcid_id %}<a href="https://orcid.org/{{ site.orcid_id }}" target="_blank" title="ORCID"><i class="ai ai-orcid"></i></a>{% endif %}
<a href="https://github.com/{{ site.github_username }}" target="_blank" title="GitHub"><i class="fab fa-github"></i></a> {% if site.scholar_userid %}<a href="https://scholar.google.com/citations?user={{ site.scholar_userid }}" target="_blank" title="Google Scholar"><i class="ai ai-google-scholar"></i></a>{% endif %}
<a href="https://www.linkedin.com/in/{{ site.linkedin_username }}" target="_blank" title="LinkedIn"><i class="fab fa-linkedin"></i></a> {% if site.github_username %}<a href="https://github.com/{{ site.github_username }}" target="_blank" title="GitHub"><i class="fab fa-github"></i></a>{% endif %}
<a href="https://twitter.com/{{ site.twitter_username }}" target="_blank" title="Twitter"><i class="fab fa-twitter"></i></a> {% if site.linkedin_username %}<a href="https://www.linkedin.com/in/{{ site.linkedin_username }}" target="_blank" title="LinkedIn"><i class="fab fa-linkedin"></i></a>{% endif %}
<a href="https://www.strava.com/athletes/{{ site.strava_userid }}" target="_blank" title="Strava"><i class="fab fa-strava"></i></a> {% if site.twitter_username %}<a href="https://twitter.com/{{ site.twitter_username }}" target="_blank" title="Twitter"><i class="fab fa-twitter"></i></a>{% endif %}
{% if site.strava_userid %}<a href="https://www.strava.com/athletes/{{ site.strava_userid }}" target="_blank" title="Strava"><i class="fab fa-strava"></i></a>{% endif %}
</span> </span>
<div class="col three caption"> <div class="col three caption">