## Description This pull request adds support for Academia.edu profiles to the al-folio social media integrations. Academia.edu is widely used by academics to share and discover research,. The changes are minimal and well-contained: 1. Added configuration options in socials.yml for Academia.edu with organization and username fields 2. Updated social.liquid to handle the new social integration using the Academicons font which already includes support for Academia.edu ## Changes The implementation uses Academicons, which already includes the Academia.edu icon (`ai-academia`), making this addition a natural fit for the theme. Unlike some other social media links that only require a single ID or URL, Academia.edu profiles include both an organization (subdomain) and a username in the format: `https://[organization].academia.edu/[username]`. The implemented solution supports this pattern by adding two parameters in the socials.yml file. ## Why this is important Academia.edu is a popular platform used by millions of researchers worldwide to share their work. Adding support for it in the al-folio theme aligns with the theme's academic focus and enhances its utility for scholarly users. Many academics maintain both personal websites and Academia.edu profiles, and being able to link between them provides better visibility for their research. The Academicons font already includes support for Academia.edu, so adding this feature is a natural extension that makes use of existing resources in the theme. ## Testing The changes have been tested locally with a sample Academia.edu profile, and the icon displays correctly alongside other social media icons. The changes are minimal and don't affect any existing functionality. ## Screenshot <img width="991" alt="image" src="https://github.com/user-attachments/assets/15468b67-3002-44ce-aa25-22bc10766664" />
115 lines
7.3 KiB
Plaintext
115 lines
7.3 KiB
Plaintext
{% for social in site.data.socials %}
|
|
{% case social[0] %}
|
|
{% when 'academia_edu' %}
|
|
<a href="https://{{ social[1].organization }}.academia.edu/{{ social[1].username }}" title="Academia.edu"><i class="ai ai-academia"></i></a>
|
|
{% when 'acm_id' %}
|
|
<a href="https://dl.acm.org/profile/{{ social[1] }}/" title="ACM DL"><i class="ai ai-acm"></i></a>
|
|
{% when 'blogger_url' %}
|
|
<a href="{{ social[1] }}" title="Blogger"><i class="fa-brands fa-blogger-b"></i></a>
|
|
{% when 'bluesky_url' %}
|
|
<a href="{{ social[1] }}" title="Bluesky"><i class="fa-brands fa-bluesky"></i></a>
|
|
{% when 'dblp_url' %}
|
|
<a href="{{ social[1] }}" title="DBLP"><i class="ai ai-dblp"></i></a>
|
|
{% when 'discord_id' %}
|
|
<a href="https://discord.com/users/{{ social[1] }}" title="Discord"><i class="fa-brands fa-discord"></i></a>
|
|
{% when 'email' %}
|
|
<a href="mailto:{{ social[1] | encode_email }}" title="email"><i class="fa-solid fa-envelope"></i></a>
|
|
{% when 'facebook_id' %}
|
|
<a href="https://facebook.com/{{ social[1] }}" title="Facebook"><i class="fa-brands fa-facebook"></i></a>
|
|
{% when 'flickr_id' %}
|
|
<a href="https://www.flickr.com/{{ social[1] }}" title="Flickr"><i class="fa-brands fa-flickr"></i></a>
|
|
{% when 'github_username' %}
|
|
<a href="https://github.com/{{ social[1] }}" title="GitHub"><i class="fa-brands fa-github"></i></a>
|
|
{% when 'gitlab_username' %}
|
|
<a href="https://gitlab.com/{{ social[1] }}" title="GitLab"><i class="fa-brands fa-gitlab"></i></a>
|
|
{% when 'hal_id' %}
|
|
<a href="https://cv.hal.science/{{ social[1] }}/" title="HAL"><i class="ai ai-hal"></i></a>
|
|
{% when 'ieee_id' %}
|
|
<a href="https://ieeexplore.ieee.org/author/{{ social[1] }}/" title="IEEE Xplore"><i class="ai ai-ieee"></i></a>
|
|
{% when 'inspirehep_id' %}
|
|
<a href="https://inspirehep.net/authors/{{ social[1] }}" title="Inspire HEP"><i class="ai ai-inspire"></i></a>
|
|
{% when 'instagram_id' %}
|
|
<a href="https://instagram.com/{{ social[1] }}" title="Instagram"><i class="fa-brands fa-instagram"></i></a>
|
|
{% when 'kaggle_id' %}
|
|
<a href="https://www.kaggle.com/{{ social[1] }}" title="Kaggle"><i class="fa-brands fa-kaggle"></i></a>
|
|
{% when 'keybase_username' %}
|
|
<a href="https://keybase.io/{{ social[1] }}" title="Keybase"><i class="fa-brands fa-keybase"></i></a>
|
|
{% when 'lastfm_id' %}
|
|
<a href="https://www.last.fm/user/{{ social[1] }}" title="Last FM"><i class="fa-brands fa-lastfm"></i></a>
|
|
{% when 'lattes_id' %}
|
|
<a href="http://lattes.cnpq.br/{{ social[1] }}" target="_blank" title="Lattes"><i class="ai ai-lattes"></i></a>
|
|
{% when 'leetcode_id' %}
|
|
<a href="https://leetcode.com/u/{{ social[1] }}/" target="_blank" title="LeetCode"><i class="si si-leetcode"></i></a>
|
|
{% when 'linkedin_username' %}
|
|
<a href="https://www.linkedin.com/in/{{ social[1] }}" title="LinkedIn"><i class="fa-brands fa-linkedin"></i></a>
|
|
{% when 'mastodon_username' %}
|
|
<a rel="me" href="https://{{ social[1] }}" title="Mastodon"><i class="fa-brands fa-mastodon"></i></a>
|
|
{% when 'medium_username' %}
|
|
<a href="https://medium.com/@{{ social[1] }}" title="Medium"><i class="fa-brands fa-medium"></i></a>
|
|
{% when 'orcid_id' %}
|
|
<a href="https://orcid.org/{{ social[1] }}" title="ORCID"><i class="ai ai-orcid"></i></a>
|
|
{% when 'osf_id' %}
|
|
<a href="https://osf.io/{{ social[1] }}/" title="Open Science Framework"><i class="ai ai-osf"></i></a>
|
|
{% when 'pinterest_id' %}
|
|
<a href="https://www.pinterest.com/{{ social[1] }}" title="Pinterest"><i class="fa-brands fa-pinterest"></i></a>
|
|
{% when 'publons_id' %}
|
|
<a href="https://publons.com/a/{{ social[1] }}/" title="Publons"><i class="ai ai-publons"></i></a>
|
|
{% when 'quora_username' %}
|
|
<a href="https://www.quora.com/profile/{{ social[1] }}" title="Quora"><i class="fa-brands fa-quora"></i></a>
|
|
{% when 'research_gate_profile' %}
|
|
<a href="https://www.researchgate.net/profile/{{ social[1] }}/" title="ResearchGate"><i class="ai ai-researchgate"></i></a>
|
|
{% when 'rss_icon' %}
|
|
<a href="{{ site.baseurl }}/feed.xml" title="RSS Feed"><i class="fa-solid fa-square-rss"></i></a>
|
|
{% when 'scholar_userid' %}
|
|
<a href="https://scholar.google.com/citations?user={{ social[1] }}" title="Google Scholar"><i class="ai ai-google-scholar"></i></a>
|
|
{% when 'scopus_id' %}
|
|
<a href="https://www.scopus.com/authid/detail.uri?authorId={{ social[1] }}" title="Scopus"><i class="ai ai-scopus"></i></a>
|
|
{% when 'semanticscholar_id' %}
|
|
<a href="https://www.semanticscholar.org/author/{{ social[1] }}" title="Semantic Scholar"><i class="ai ai-semantic-scholar"></i></a>
|
|
{% when 'spotify_id' %}
|
|
<a href="https://open.spotify.com/user/{{ social[1] }}" title="Spotify"><i class="fa-brands fa-spotify"></i></a>
|
|
{% when 'stackoverflow_id' %}
|
|
<a href="https://stackoverflow.com/users/{{ social[1] }}" title="Stackoverflow"><i class="fa-brands fa-stack-overflow"></i></a>
|
|
{% when 'strava_userid' %}
|
|
<a href="https://www.strava.com/athletes/{{ social[1] }}" title="Strava"><i class="fa-brands fa-strava"></i></a>
|
|
{% when 'telegram_username' %}
|
|
<a href="https://telegram.me/{{ social[1] }}" title="telegram"><i class="fa-brands fa-telegram"></i></a>
|
|
{% when 'unsplash_id' %}
|
|
<a href="https://unsplash.com/@{{ social[1] }}" title="Unsplash"><i class="fa-brands fa-unsplash"></i></a>
|
|
{% when 'wechat_qr' %}
|
|
<a id="WeChatBtn" title="WeChat"><i class="fa-brands fa-weixin"></i></a>
|
|
<div id="WeChatMod" class="wechat-modal">
|
|
<img src="{{ social[1] | prepend: 'assets/img/' | relative_url }}" alt="WeChat QR" id="WeChatQR">
|
|
</div>
|
|
<script defer src="{{ '/assets/js/wechat.js' | relative_url | bust_file_cache }}" type="text/javascript"></script>
|
|
{% when 'whatsapp_number' %}
|
|
<a href="https://wa.me/{{ social[1] }}" title="whatsapp"><i class="fa-brands fa-whatsapp"></i></a>
|
|
{% when 'wikidata_id' %}
|
|
<a href="https://www.wikidata.org/wiki/{{ social[1] }}" title="Wikidata"><i class="fa-solid fa-barcode"></i></a>
|
|
{% when 'wikipedia_id' %}
|
|
<a href="https://wikipedia.org/wiki/User:{{ social[1] }}" title="Wikipedia"><i class="fa-brands fa-wikipedia-w"></i></a>
|
|
{% when 'work_url' %}
|
|
<a href="{{ social[1] }}" title="Work"><i class="fa-solid fa-briefcase"></i></a>
|
|
{% when 'x_username' %}
|
|
<a href="https://twitter.com/{{ social[1] }}" title="X"><i class="fa-brands fa-x-twitter"></i></a>
|
|
{% when 'youtube_id' %}
|
|
<a href="https://youtube.com/@{{ social[1] }}" title="YouTube"><i class="fa-brands fa-youtube"></i></a>
|
|
{% when 'zotero_username' %}
|
|
<a href="https://www.zotero.org/{{ social[1] }}" title="Zotero"><i class="ai ai-zotero"></i></a>
|
|
{% else %}
|
|
<a href="{{ social[1].url }}" title="{{ social[1].title }}">
|
|
{% assign file_ext = social[1].logo | split: '.' | last %}
|
|
{% if file_ext == 'svg' %}
|
|
<svg>
|
|
<image xlink:href="{% if social[1].logo contains '://' %}{{ social[1].logo }}{% else %}{{ social[1].logo | relative_url }}{% endif %}" />
|
|
</svg>
|
|
{% else %}
|
|
<img
|
|
src="{% if social[1].logo contains '://' %}{{ social[1].logo }}{% else %}{{ social[1].logo | relative_url }}{% endif %}"
|
|
alt="{{ social[1].title }}"
|
|
>
|
|
{% endif %}
|
|
</a>
|
|
{% endcase %}
|
|
{% endfor %}
|