jekyll-socials 0.0.1 → 0.0.2
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 +19 -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: 3fcb7cf26ec05b40b0c2627f8434ae64c430946f8355e93b08b33c2ea0eae0e1
|
|
4
|
+
data.tar.gz: f55927ef10e2208472b5655ea9f95d619ce63ff464b4da6e7bb2635a601a4162
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: b7cd08f878d9f84594e860e44296d364e6595010d841b0d6b10bc700128c589aeaa0c3d11c1347e5854cb206b3ad7ca0529836ff4b4573717e1ad85eb710a994
|
|
7
|
+
data.tar.gz: 38881f2f2e5b3fbc900446bda23662faf893a97fa62e636777c7449bb8d7cbefa28e828bdb4f0c94a6635e97314d5d496b303a0d7a1c24e562d96c286207f8b7
|
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,17 @@ 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].active_lang.nil? || context.registers[:site].active_lang.empty?
|
|
136
|
+
url = context.registers[:site].baseurl + social[1]
|
|
137
|
+
else
|
|
138
|
+
url = context.registers[:site].baseurl + '/' + context.registers[:site].active_lang + social[1]
|
|
139
|
+
end
|
|
140
|
+
elsif social[0] == 'rss_icon'
|
|
123
141
|
url = url_template % context.registers[:site].baseurl + '/feed.xml'
|
|
124
142
|
else
|
|
125
143
|
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.2
|
|
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: []
|