Skip to content

RFC: dynamic social links #564

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

RFC: dynamic social links #564

wants to merge 2 commits into from

Conversation

satnaing
Copy link
Owner

Description

  • restructure social and share links components
  • replace constants with dynamic imports
  • centralize path constants in a new constants file

Types of changes

  • Bug Fix (non-breaking change which fixes an issue)
  • New Feature (non-breaking change which adds functionality)
  • Documentation Update (if none of the other choices apply)
  • Others (any other types not listed above)

Checklist

  • I have read the Contributing Guide
  • I have added the necessary documentation (if appropriate)
  • Breaking Change (fix or feature that would cause existing functionality to not work as expected)

Further comments

Related Issue

Closes: #559

satnaing added 2 commits July 20, 2025 14:30
…stants with dynamic imports

- restructure social and share links components
- replace constants with dynamic imports

for (const { id, data } of list) {
// Import the icon dynamically based on the social id
const icon = await import(`./icons/${id}.svg`).catch(() => {
Copy link
Contributor

@eerison eerison Jul 20, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey @satnaing

Would it be possible to create a function that return all available icons?

Or maybe a json with this list 👀
Or maybe generate a json file on build/command line

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

Successfully merging this pull request may close these issues.

[Feature Request]: Get social and share links from json or yaml file
2 participants