jekyll-socials 0.0.1 → 0.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/jekyll-socials/version.rb +1 -1
- data/lib/jekyll-socials.rb +20 -1
- metadata +7 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: a91f03bc17e96d81b9f1882e9e699eeda926b8ea9032217a6f8108e172525ad5
|
|
4
|
+
data.tar.gz: fee959d367d655fcc44c331b5efb479760ba38d1aa88e5e4bc6cd93231ae5073
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 1baab6594e3b0c2faf8cc739c0538f43bf70a0706e001401fd735838af80452a3092356387f547c202f1e3e397f23eb120141c8872989221349278220d23de0d
|
|
7
|
+
data.tar.gz: 5cfd96277e51ad2a01bd4ac308ecb439f02a93c9eefdd067ef869648db2bf8128765203a825963e650a5d569d2db0bf67e432dec89aa7e0844339edf7cd89343
|
data/lib/jekyll-socials.rb
CHANGED
|
@@ -4,8 +4,12 @@ module Jekyll
|
|
|
4
4
|
class SocialLinksTag < Liquid::Tag
|
|
5
5
|
# https://jpswalsh.github.io/academicons/
|
|
6
6
|
ACADEMICONS = {
|
|
7
|
+
'academia_edu' => "<i class='ai ai-academia'></i>",
|
|
7
8
|
'acm_id' => "<i class='ai ai-acm'></i>",
|
|
9
|
+
'arxiv_id' => "<i class='ai ai-arxiv'></i>",
|
|
10
|
+
'cv_pdf' => "<i class='ai ai-cv'></i>",
|
|
8
11
|
'dblp_url' => "<i class='ai ai-dblp'></i>",
|
|
12
|
+
'hal_id' => "<i class='ai ai-hal'></i>",
|
|
9
13
|
'ieee_id' => "<i class='ai ai-ieee'></i>",
|
|
10
14
|
'inspirehep_id' => "<i class='ai ai-inspire'></i>",
|
|
11
15
|
'lattes_id' => "<i class='ai ai-lattes'></i>",
|
|
@@ -61,9 +65,12 @@ module Jekyll
|
|
|
61
65
|
SOCIAL_ICONS = ACADEMICONS.merge(FONT_AWESOME).merge(SCHOLAR_ICONS)
|
|
62
66
|
|
|
63
67
|
SOCIAL_URLS = {
|
|
68
|
+
'academia_edu' => "https://%s.academia.edu/%s",
|
|
64
69
|
'acm_id' => "https://dl.acm.org/profile/%s/",
|
|
70
|
+
'arxiv_id' => "https://arxiv.org/a/%s.html",
|
|
65
71
|
'blogger_url' => "%s",
|
|
66
72
|
'bluesky_url' => "%s",
|
|
73
|
+
'cv_pdf' => "%s",
|
|
67
74
|
'dblp_url' => "%s",
|
|
68
75
|
'discord_id' => "https://discord.com/users/%s",
|
|
69
76
|
'email' => "mailto:%s",
|
|
@@ -71,6 +78,7 @@ module Jekyll
|
|
|
71
78
|
'flickr_id' => "https://www.flickr.com/%s",
|
|
72
79
|
'github_username' => "https://github.com/%s",
|
|
73
80
|
'gitlab_username' => "https://gitlab.com/%s",
|
|
81
|
+
'hal_id' => "https://cv.hal.science/%s",
|
|
74
82
|
'ieee_id' => "https://ieeexplore.ieee.org/author/%s/",
|
|
75
83
|
'inspirehep_id' => "https://inspirehep.net/authors/%s",
|
|
76
84
|
'instagram_id' => "https://instagram.com/%s",
|
|
@@ -119,7 +127,18 @@ module Jekyll
|
|
|
119
127
|
icon = SOCIAL_ICONS[social[0]]
|
|
120
128
|
url_template = SOCIAL_URLS[social[0]]
|
|
121
129
|
if icon && url_template
|
|
122
|
-
if social[0] == '
|
|
130
|
+
if social[0] == 'academia_edu'
|
|
131
|
+
url = url_template % [social[1]['organization'], social[1]['username']]
|
|
132
|
+
elsif social[0] == 'cv_pdf'
|
|
133
|
+
if social[1] =~ %r{://}
|
|
134
|
+
url = social[1]
|
|
135
|
+
elsif !context.registers[:site].respond_to?(:active_lang) || !context.registers[:site].active_lang || context.registers[:site].active_lang.empty?
|
|
136
|
+
url = context.registers[:site].baseurl + social[1]
|
|
137
|
+
else
|
|
138
|
+
# support for jekyll-polyglot
|
|
139
|
+
url = context.registers[:site].baseurl + '/' + context.registers[:site].active_lang + social[1]
|
|
140
|
+
end
|
|
141
|
+
elsif social[0] == 'rss_icon'
|
|
123
142
|
url = url_template % context.registers[:site].baseurl + '/feed.xml'
|
|
124
143
|
else
|
|
125
144
|
url = url_template % social[1]
|
metadata
CHANGED
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: jekyll-socials
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- George Corrêa de Araújo
|
|
8
|
+
autorequire:
|
|
8
9
|
bindir: bin
|
|
9
10
|
cert_chain: []
|
|
10
|
-
date:
|
|
11
|
+
date: 2026-01-14 00:00:00.000000000 Z
|
|
11
12
|
dependencies:
|
|
12
13
|
- !ruby/object:Gem::Dependency
|
|
13
14
|
name: jekyll
|
|
@@ -31,6 +32,7 @@ dependencies:
|
|
|
31
32
|
version: '5.0'
|
|
32
33
|
description: Add beautiful social links to your Jekyll site using Academicons, FontAwesome,
|
|
33
34
|
and Social Icons.
|
|
35
|
+
email:
|
|
34
36
|
executables: []
|
|
35
37
|
extensions: []
|
|
36
38
|
extra_rdoc_files: []
|
|
@@ -45,6 +47,7 @@ metadata:
|
|
|
45
47
|
bug_tracker_uri: https://github.com/george-gca/jekyll-socials/issues
|
|
46
48
|
changelog_uri: https://github.com/george-gca/jekyll-socials/releases
|
|
47
49
|
homepage_uri: https://george-gca.github.io/jekyll-socials/
|
|
50
|
+
post_install_message:
|
|
48
51
|
rdoc_options: []
|
|
49
52
|
require_paths:
|
|
50
53
|
- lib
|
|
@@ -59,7 +62,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
59
62
|
- !ruby/object:Gem::Version
|
|
60
63
|
version: '0'
|
|
61
64
|
requirements: []
|
|
62
|
-
rubygems_version: 3.
|
|
65
|
+
rubygems_version: 3.4.20
|
|
66
|
+
signing_key:
|
|
63
67
|
specification_version: 4
|
|
64
68
|
summary: Add beautiful social links to your Jekyll site.
|
|
65
69
|
test_files: []
|