feat(links): add rel=me html attr on profile links

This commit is contained in:
Matthieu Bessat 2023-11-05 19:45:44 +01:00
parent 9c28963b53
commit 57f12e9a0b
2 changed files with 2 additions and 23 deletions

View file

@ -3,15 +3,7 @@ links: # or profiles
name: Mastodon name: Mastodon
username: lefuturiste username: lefuturiste
url: https://mstdn.io/users/lefuturiste url: https://mstdn.io/users/lefuturiste
# - id: youtube profile: main
# name: YouTube
# legacy: true
# url: https://www.youtube.com/channel/UC0x-gNbsyyrC69HjT5Z44MQ
# - id: twitter
# name: Twitter
# legacy: true
# url: https://twitter.com/_le_futuriste
- id: github - id: github
name: GitHub name: GitHub
username: lefuturiste username: lefuturiste
@ -36,19 +28,6 @@ links: # or profiles
thumbnail: thumbnail:
src: discord.svg src: discord.svg
style: "transform: scale(0.75)" style: "transform: scale(0.75)"
# - id: discord-server
# name:
# fr: Mon serveur discord
# en: My discord server
# legacy: true
# url: https://discord.com/invite/3W94m7ts3H
# thumbnail:
# src: discord.svg
# style: "transform: scale(0.75)"
# - id: soundcloud
# name: Sound Cloud
# legacy: true
# url: https://soundcloud.com/lefuturiste
- id: stackoverflow - id: stackoverflow
name: StackOverflow name: StackOverflow
username: lefuturiste username: lefuturiste

View file

@ -6,7 +6,7 @@
<div class="links-container"> <div class="links-container">
<div class="links"> <div class="links">
{% for link in links %} {% for link in links %}
<a class="link-card" href="{{ link.url }}" data-id="{{ link.id }}"> <a class="link-card" href="{{ link.url }}" data-id="{{ link.id }}" {% if link.profile == "main" %}rel="me"{% endif %}>
<div class="link-card-logo"> <div class="link-card-logo">
<img <img
src="imgs/logos/{{ link.thumbnail.src }}" src="imgs/logos/{{ link.thumbnail.src }}"