|
124 | 124 | {%- when "acm_id" -%}
|
125 | 125 | {%- assign social_id = "social-acm" -%}
|
126 | 126 | {%- assign social_title = "ACM DL" -%}
|
127 |
| - {%- assign social_url = "https://dl.acm.org/profile/{{ social[1] }}/" -%} |
| 127 | + {%- capture social_url %}"https://dl.acm.org/profile/{{ social[1] }}/"{% endcapture -%} |
128 | 128 | {%- when "blogger_url" -%}
|
129 | 129 | {%- assign social_id = "social-blogger" -%}
|
130 | 130 | {%- assign social_title = "Blogger" -%}
|
131 |
| - {%- assign social_url = social[1] -%} |
| 131 | + {%- capture social_url %}"{{ social[1] }}"{% endcapture -%} |
132 | 132 | {%- when "bluesky_url" -%}
|
133 | 133 | {%- assign social_id = "social-bluesky" -%}
|
134 | 134 | {%- assign social_title = "Bluesky" -%}
|
135 |
| - {%- assign social_url = social[1] -%} |
| 135 | + {%- capture social_url %}"{{ social[1] }}"{% endcapture -%} |
136 | 136 | {%- when "dblp_url" -%}
|
137 | 137 | {%- assign social_id = "social-dblp" -%}
|
138 | 138 | {%- assign social_title = "DBLP" -%}
|
139 |
| - {%- assign social_url = social[1] -%} |
| 139 | + {%- capture social_url %}"{{ social[1] }}"{% endcapture -%} |
140 | 140 | {%- when "discord_id" -%}
|
141 | 141 | {%- assign social_id = "social-discord" -%}
|
142 | 142 | {%- assign social_title = "Discord" -%}
|
143 |
| - {%- assign social_url = "https://discord.com/users/{{ social[1] }}" -%} |
| 143 | + {%- capture social_url %}"https://discord.com/users/{{ social[1] }}"{% endcapture -%} |
144 | 144 | {%- when "email" -%}
|
145 | 145 | {%- assign social_id = "social-email" -%}
|
146 | 146 | {%- assign social_title = "email" -%}
|
147 |
| - {%- assign social_url = "mailto:{{ social[1] | encode_email }}" -%} |
| 147 | + {%- capture social_url %}"mailto:{{ social[1] | encode_email }}"{% endcapture -%} |
148 | 148 | {%- when "facebook_id" -%}
|
149 | 149 | {%- assign social_id = "social-facebook" -%}
|
150 | 150 | {%- assign social_title = "Facebook" -%}
|
151 |
| - {%- assign social_url = "https://facebook.com/{{ social[1] }}" -%} |
| 151 | + {%- capture social_url %}"https://facebook.com/{{ social[1] }}"{% endcapture -%} |
152 | 152 | {%- when "flickr_id" -%}
|
153 | 153 | {%- assign social_id = "social-flickr" -%}
|
154 | 154 | {%- assign social_title = "Flickr" -%}
|
155 |
| - {%- assign social_url = "https://www.flickr.com/{{ social[1] }}" -%} |
| 155 | + {%- capture social_url %}"https://www.flickr.com/{{ social[1] }}"{% endcapture -%} |
156 | 156 | {%- when "github_username" -%}
|
157 | 157 | {%- assign social_id = "social-github" -%}
|
158 | 158 | {%- assign social_title = "GitHub" -%}
|
159 |
| - {%- assign social_url = " |
| 159 | + {%- capture social_url %}"https://github.com/{{ social[1] }}"{% endcapture -%} |
160 | 160 | {%- when "gitlab_username" -%}
|
161 | 161 | {%- assign social_id = "social-gitlab" -%}
|
162 | 162 | {%- assign social_title = "GitLab" -%}
|
163 |
| - {%- assign social_url = "https://gitlab.com/{{ social[1] }}" -%} |
| 163 | + {%- capture social_url %}"https://gitlab.com/{{ social[1] }}"{% endcapture -%} |
164 | 164 | {%- when "ieee_id" -%}
|
165 | 165 | {%- assign social_id = "social-ieee" -%}
|
166 | 166 | {%- assign social_title = "IEEE Xplore" -%}
|
167 |
| - {%- assign social_url = "https://ieeexplore.ieee.org/author/{{ social[1] }}/" -%} |
| 167 | + {%- capture social_url %}"https://ieeexplore.ieee.org/author/{{ social[1] }}/"{% endcapture -%} |
168 | 168 | {%- when "inspirehep_id" -%}
|
169 | 169 | {%- assign social_id = "social-inspire" -%}
|
170 | 170 | {%- assign social_title = "Inspire HEP" -%}
|
171 |
| - {%- assign social_url = "https://inspirehep.net/authors/{{ social[1] }}" -%} |
| 171 | + {%- capture social_url %}"https://inspirehep.net/authors/{{ social[1] }}"{% endcapture -%} |
172 | 172 | {%- when "instagram_id" -%}
|
173 | 173 | {%- assign social_id = "social-instagram" -%}
|
174 | 174 | {%- assign social_title = "Instagram" -%}
|
175 |
| - {%- assign social_url = "https://instagram.com/{{ social[1] }}" -%} |
| 175 | + {%- capture social_url %}"https://instagram.com/{{ social[1] }}"{% endcapture -%} |
176 | 176 | {%- when "kaggle_id" -%}
|
177 | 177 | {%- assign social_id = "social-kaggle" -%}
|
178 | 178 | {%- assign social_title = "Kaggle" -%}
|
179 |
| - {%- assign social_url = "https://www.kaggle.com/{{ social[1] }}" -%} |
| 179 | + {%- capture social_url %}"https://www.kaggle.com/{{ social[1] }}"{% endcapture -%} |
180 | 180 | {%- when "keybase_username" -%}
|
181 | 181 | {%- assign social_id = "social-keybase" -%}
|
182 | 182 | {%- assign social_title = "Keybase" -%}
|
183 |
| - {%- assign social_url = "https://keybase.io/{{ social[1] }}" -%} |
| 183 | + {%- capture social_url %}"https://keybase.io/{{ social[1] }}"{% endcapture -%} |
184 | 184 | {%- when "lastfm_id" -%}
|
185 | 185 | {%- assign social_id = "social-lastfm" -%}
|
186 | 186 | {%- assign social_title = "Last FM" -%}
|
187 |
| - {%- assign social_url = "https://www.last.fm/user/{{ social[1] }}" -%} |
| 187 | + {%- capture social_url %}"https://www.last.fm/user/{{ social[1] }}"{% endcapture -%} |
188 | 188 | {%- when "lattes_id" -%}
|
189 | 189 | {%- assign social_id = "social-lattes" -%}
|
190 | 190 | {%- assign social_title = "Lattes" -%}
|
191 |
| - {%- assign social_url = "http://lattes.cnpq.br/{{ social[1] }}" -%} |
| 191 | + {%- capture social_url %}"http://lattes.cnpq.br/{{ social[1] }}"{% endcapture -%} |
192 | 192 | {%- when "leetcode_id" -%}
|
193 | 193 | {%- assign social_id = "social-leetcode" -%}
|
194 | 194 | {%- assign social_title = "LeetCode" -%}
|
195 |
| - {%- assign social_url = "https://leetcode.com/u/{{ social[1] }}/" -%} |
| 195 | + {%- capture social_url %}"https://leetcode.com/u/{{ social[1] }}/"{% endcapture -%} |
196 | 196 | {%- when "linkedin_username" -%}
|
197 | 197 | {%- assign social_id = "social-linkedin" -%}
|
198 | 198 | {%- assign social_title = "LinkedIn" -%}
|
199 |
| - {%- assign social_url = "https://www.linkedin.com/in/{{ social[1] }}" -%} |
| 199 | + {%- capture social_url %}"https://www.linkedin.com/in/{{ social[1] }}"{% endcapture -%} |
200 | 200 | {%- when "mastodon_username" -%}
|
201 | 201 | {%- assign social_id = "social-mastodon" -%}
|
202 | 202 | {%- assign social_title = "Mastodon" -%}
|
203 |
| - {%- assign social_url = "https://{{ social[1] }}" -%} |
| 203 | + {%- capture social_url %}"https://{{ social[1] }}"{% endcapture -%} |
204 | 204 | {%- when "medium_username" -%}
|
205 | 205 | {%- assign social_id = "social-medium" -%}
|
206 | 206 | {%- assign social_title = "Medium" -%}
|
207 |
| - {%- assign social_url = "https://medium.com/@{{ social[1] }}" -%} |
| 207 | + {%- capture social_url %}"https://medium.com/@{{ social[1] }}"{% endcapture -%} |
208 | 208 | {%- when "orcid_id" -%}
|
209 | 209 | {%- assign social_id = "social-orcid" -%}
|
210 | 210 | {%- assign social_title = "ORCID" -%}
|
211 |
| - {%- assign social_url = "https://orcid.org/{{ social[1] }}" -%} |
| 211 | + {%- capture social_url %}"https://orcid.org/{{ social[1] }}"{% endcapture -%} |
212 | 212 | {%- when "osf_id" -%}
|
213 | 213 | {%- assign social_id = "social-osf" -%}
|
214 | 214 | {%- assign social_title = "Open Science Framework" -%}
|
215 |
| - {%- assign social_url = "https://osf.io/{{ social[1] }}/" -%} |
| 215 | + {%- capture social_url %}"https://osf.io/{{ social[1] }}/"{% endcapture -%} |
216 | 216 | {%- when "pinterest_id" -%}
|
217 | 217 | {%- assign social_id = "social-pinterest" -%}
|
218 | 218 | {%- assign social_title = "Pinterest" -%}
|
219 |
| - {%- assign social_url = "https://www.pinterest.com/{{ social[1] }}" -%} |
| 219 | + {%- capture social_url %}"https://www.pinterest.com/{{ social[1] }}"{% endcapture -%} |
220 | 220 | {%- when "publons_id" -%}
|
221 | 221 | {%- assign social_id = "social-publons" -%}
|
222 | 222 | {%- assign social_title = "Publons" -%}
|
223 |
| - {%- assign social_url = "https://publons.com/a/{{ social[1] }}/" -%} |
| 223 | + {%- capture social_url %}"https://publons.com/a/{{ social[1] }}/"{% endcapture -%} |
224 | 224 | {%- when "quora_username" -%}
|
225 | 225 | {%- assign social_id = "social-quora" -%}
|
226 | 226 | {%- assign social_title = "Quora" -%}
|
227 |
| - {%- assign social_url = "https://www.quora.com/profile/{{ social[1] }}" - |
| 227 | + {%- capture social_url %}"https://www.quora.com/profile/{{ social[1] }}"{% endcapture -%} |
228 | 228 | {%- when "research_gate_profile" -%}
|
229 | 229 | {%- assign social_id = "social-researchgate" -%}
|
230 | 230 | {%- assign social_title = "ResearchGate" -%}
|
231 |
| - {%- assign social_url = "https://www.researchgate.net/profile/{{ social[1] }}/" -%} |
| 231 | + {%- capture social_url %}"https://www.researchgate.net/profile/{{ social[1] }}/"{% endcapture -%} |
232 | 232 | {%- when "rss_icon" -%}
|
233 | 233 | {%- assign social_id = "social-rss" -%}
|
234 | 234 | {%- assign social_title = "RSS Feed" -%}
|
235 |
| - {%- assign social_url = "{{ site.baseurl }}/feed.xml" -%} |
| 235 | + {%- capture social_url %}"{{ site.baseurl }}/feed.xml"{% endcapture -%} |
236 | 236 | {%- when "scholar_userid" -%}
|
237 | 237 | {%- assign social_id = "social-scholar" -%}
|
238 | 238 | {%- assign social_title = "Google Scholar" -%}
|
239 |
| - {%- assign social_url = "https://scholar.google.com/citations?user={{ social[1] }}" -%} |
| 239 | + {%- capture social_url %}"https://scholar.google.com/citations?user={{ social[1] }}"{% endcapture -%} |
240 | 240 | {%- when "scopus_id" -%}
|
241 | 241 | {%- assign social_id = "social-scopus" -%}
|
242 | 242 | {%- assign social_title = "Scopus" -%}
|
243 |
| - {%- assign social_url = "https://www.scopus.com/authid/detail.uri?authorId={{ social[1] }}" -%} |
| 243 | + {%- capture social_url %}"https://www.scopus.com/authid/detail.uri?authorId={{ social[1] }}"{% endcapture -%} |
244 | 244 | {%- when "semanticscholar_id" -%}
|
245 | 245 | {%- assign social_id = "social-semanticscholar" -%}
|
246 | 246 | {%- assign social_title = "Semantic Scholar" -%}
|
247 |
| - {%- assign social_url = "https://www.semanticscholar.org/author/{{ social[1] }}" -%} |
| 247 | + {%- capture social_url %}"https://www.semanticscholar.org/author/{{ social[1] }}"{% endcapture -%} |
248 | 248 | {%- when "spotify_id" -%}
|
249 | 249 | {%- assign social_id = "social-spotify" -%}
|
250 | 250 | {%- assign social_title = "Spotify" -%}
|
251 |
| - {%- assign social_url = "https://open.spotify.com/user/{{ social[1] }}" -%} |
| 251 | + {%- capture social_url %}"https://open.spotify.com/user/{{ social[1] }}"{% endcapture -%} |
252 | 252 | {%- when "stackoverflow_id" -%}
|
253 | 253 | {%- assign social_id = "social-stackoverflow" -%}
|
254 | 254 | {%- assign social_title = "Stackoverflow" -%}
|
255 |
| - {%- assign social_url = "https://stackoverflow.com/users/{{ social[1] }}" -%} |
| 255 | + {%- capture social_url %}"https://stackoverflow.com/users/{{ social[1] }}"{% endcapture -%} |
256 | 256 | {%- when "strava_userid" -%}
|
257 | 257 | {%- assign social_id = "social-strava" -%}
|
258 | 258 | {%- assign social_title = "Strava" -%}
|
259 |
| - {%- assign social_url = "https://www.strava.com/athletes/{{ social[1] }}" -%} |
| 259 | + {%- capture social_url %}"https://www.strava.com/athletes/{{ social[1] }}"{% endcapture -%} |
260 | 260 | {%- when "telegram_username" -%}
|
261 | 261 | {%- assign social_id = "social-telegram" -%}
|
262 | 262 | {%- assign social_title = "telegram" -%}
|
263 |
| - {%- assign social_url = "https://telegram.me/{{ social[1] }}" -%} |
| 263 | + {%- capture social_url %}"https://telegram.me/{{ social[1] }}"{% endcapture -%} |
264 | 264 | {%- when "unsplash_id" -%}
|
265 | 265 | {%- assign social_id = "social-unsplash" -%}
|
266 | 266 | {%- assign social_title = "Unsplash" -%}
|
267 |
| - {%- assign social_url = "https://unsplash.com/@{{ social[1] }}" -%} |
| 267 | + {%- capture social_url %}"https://unsplash.com/@{{ social[1] }}"{% endcapture -%} |
268 | 268 | {%- comment -%}
|
269 | 269 | // check how to add wechat qr code
|
270 | 270 | {%- when "wechat_qr" -%}
|
271 | 271 | {%- assign social_id = "social-wechat" -%}
|
272 | 272 | {%- assign social_title = "WeChat" -%}
|
273 |
| - {%- assign social_url = "https://wechat.com/{{ social[1] }}" -%} |
| 273 | + {%- capture social_url %}"https://wechat.com/{{ social[1] }}"{% endcapture -%} |
274 | 274 | {%- endcomment -%}
|
275 | 275 | {%- when "whatsapp_number" -%}
|
276 | 276 | {%- assign social_id = "social-whatsapp" -%}
|
277 | 277 | {%- assign social_title = "whatsapp" -%}
|
278 |
| - {%- assign social_url = "https://wa.me/{{ social[1] }}" -%} |
| 278 | + {%- capture social_url %}"https://wa.me/{{ social[1] }}"{% endcapture -%} |
279 | 279 | {%- when "wikidata_id" -%}
|
280 | 280 | {%- assign social_id = "social-wikidata" -%}
|
281 | 281 | {%- assign social_title = "Wikidata" -%}
|
282 |
| - {%- assign social_url = "https://www.wikidata.org/wiki/{{ social[1] }}" -%} |
| 282 | + {%- capture social_url %}"https://www.wikidata.org/wiki/{{ social[1] }}"{% endcapture -%} |
283 | 283 | {%- when "wikipedia_id" -%}
|
284 | 284 | {%- assign social_id = "social-wikipedia" -%}
|
285 | 285 | {%- assign social_title = "Wikipedia" -%}
|
286 |
| - {%- assign social_url = "https://wikipedia.org/wiki/User:{{ social[1] }}" -%} |
| 286 | + {%- capture social_url %}"https://wikipedia.org/wiki/User:{{ social[1] }}"{% endcapture -%} |
287 | 287 | {%- when "work_url" -%}
|
288 | 288 | {%- assign social_id = "social-work" -%}
|
289 | 289 | {%- assign social_title = "Work" -%}
|
290 |
| - {%- assign social_url = social[1] -%} |
| 290 | + {%- capture social_url %}"{{ social[1] }}"{% endcapture -%} |
291 | 291 | {%- when "x_username" -%}
|
292 | 292 | {%- assign social_id = "social-x" -%}
|
293 | 293 | {%- assign social_title = "X" -%}
|
294 |
| - {%- assign social_url = "https://twitter.com/{{ social[1] }}" -%} |
| 294 | + {%- capture social_url %}"https://twitter.com/{{ social[1] }}"{% endcapture -%} |
295 | 295 | {%- when "youtube_id" -%}
|
296 | 296 | {%- assign social_id = "social-youtube" -%}
|
297 | 297 | {%- assign social_title = "YouTube" -%}
|
298 |
| - {%- assign social_url = "https://youtube.com/@{{ social[1] }}" -%} |
| 298 | + {%- capture social_url %}"https://youtube.com/@{{ social[1] }}"{% endcapture -%} |
299 | 299 | {%- when "zotero_username" -%}
|
300 | 300 | {%- assign social_id = "social-zotero" -%}
|
301 | 301 | {%- assign social_title = "Zotero" -%}
|
302 |
| - {%- assign social_url = "https://www.zotero.org/{{ social[1] }}" -%} |
| 302 | + {%- capture social_url %}"https://www.zotero.org/{{ social[1] }}"{% endcapture -%} |
303 | 303 | {%- else -%}
|
304 | 304 | {%- assign social_id = "social-" | append: social[0] -%}
|
305 | 305 | {%- assign social_title = social[0] | capitalize -%}
|
306 |
| - {%- assign social_url = social[1].url -%} |
| 306 | + {%- capture social_url %}"{{ social[1].url }}"{% endcapture -%} |
307 | 307 | {%- endcase -%}
|
308 | 308 | {
|
309 | 309 | id: '{{ social_id }}',
|
310 | 310 | title: '{{ social_title }}',
|
311 | 311 | section: 'Socials',
|
312 | 312 | handler: () => {
|
313 |
| - window.open("{{ social_url }}", "_blank"); |
| 313 | + window.open({{ social_url }}, "_blank"); |
314 | 314 | },
|
315 | 315 | },
|
316 | 316 | {%- endfor -%}
|
|
0 commit comments