Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A molecule for social media icons management #158

Open
antoine4livre opened this issue Jan 29, 2024 · 2 comments
Open

A molecule for social media icons management #158

antoine4livre opened this issue Jan 29, 2024 · 2 comments
Assignees
Labels
enhancement New feature or request

Comments

@antoine4livre
Copy link
Contributor

Idea of parameters :

{% set links = [
  { name: 'x', url: 'https://x.com/user' },
  { name: 'instagram', url: 'https://instagram.com/user' },
  { name: 'youtube', url: 'https://youtube.com/user' },
] %}

It will output every social media icons in a link element with title, href, target, rel attributes.

@antoine4livre antoine4livre added the enhancement New feature or request label Jan 29, 2024
@antoine4livre antoine4livre self-assigned this Jan 29, 2024
@antoine4livre
Copy link
Contributor Author

An update for the API:

{% include '@ui/molecules/SocialIcons/SocialIcons.twig' with {
  x: 'https://x.com/user',
  instagram: 'https://instagram.com/user',
  youtube: 'https://youtube.com/user',
} only %}

Keys are the icons' names and are reed programmatically.

What do you think about @titouanmathis ?

@titouanmathis
Copy link
Contributor

The API is good for me 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants