Merge pull request #38 from snystrom/academicons

Add support for Academicons (correctly)
This commit is contained in:
Ratan Kulshreshtha 2021-09-20 18:17:00 +05:30 committed by GitHub
commit a332439636
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 22 additions and 0 deletions

View File

@ -140,6 +140,8 @@ stackoverflow = "<stackoverflow_userid>"
twitter = "<twitter_username>"
instagram = "<instagram_usernaem>"
behance = "<behance_username>"
google_scholar = "<googlescholar_userid>"
orcid = "<orcid_userid>"
# To add google analytics

View File

@ -57,6 +57,8 @@ linkedin = "ratanshreshtha"
stackoverflow = "3728911"
email = "deepthought@gmail.com"
twitter = "RatanShreshtha"
#orcid = ""
#google_scholar = ""
[extra.analytics]
google = "UA-176984489-2"

View File

@ -28,6 +28,7 @@
<link href="https://cdnjs.cloudflare.com/ajax/libs/galleria/1.6.1/themes/folio/galleria.folio.min.css" rel="stylesheet" />
<link href="https://cdn.jsdelivr.net/npm/mapbox-gl@2.1.1/dist/mapbox-gl.min.css" rel="stylesheet" />
<link href="https://use.fontawesome.com/releases/v5.15.3/css/all.css" rel="stylesheet" />
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/jpswalsh/academicons@1/css/academicons.min.css">
<link href="https://cdn.jsdelivr.net/npm/bulma@0.9.2/css/bulma.min.css" rel="stylesheet" />
<link href="{{ get_url(path='deep-thought.css') }}" rel="stylesheet" />

View File

@ -1,5 +1,22 @@
{% macro social_links(social_config) %}
<p>
{% if social_config.google_scholar %}
<a href="https://scholar.google.com/citations?user={{ social_config.google_scholar }}" target="_blank">
<span class="icon is-large" title="Google Scholar">
<i class="ai ai-google-scholar ai-lg"></i>
</span>
</a>
{% endif %}
{% if social_config.orcid %}
<a href="https://orcid.org/{{ social_config.orcid }}" target="_blank">
<span class="icon is-large" title="ORCiD">
<i class="fab fa-orcid fa-lg"></i>
</span>
</a>
{% endif %}
{% if social_config.facebook %}
<a href="https://facebook.com/{{ social_config.facebook }}" target="_blank">
<span class="icon is-large" title="Facebook">