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

Add optional custom "title" for social links #999

Merged
merged 2 commits into from
Aug 6, 2022

Conversation

Netruk44
Copy link
Contributor

@Netruk44 Netruk44 commented Aug 3, 2022

What does this PR change? What problem does it solve?

Adds an optional title parameter for social links. This enables a user to set a custom label for the social links instead of having all social links use the name of the icon for the label. When no title is provided, it falls back to the current behavior.

Examples of why a user might want to do this:

  • A user might want a "CV" social link to instead read "Résumé" or "Resume".
  • Users may have multiple social accounts with the same provider for different reasons, a custom title could help to differentiate these links.

Was the change discussed in an issue or in the Discussions before?

No, fresh suggestion based on a personal modification.

PR Checklist

  • This change adds/updates translations and I have used the template present here.
  • I have enabled maintainer edits for this PR.
  • I have verified that the code works as described/as intended.
  • This change adds a Social Icon which has a permissive license to use it.
  • This change does not include any CDN resources/links.
  • This change does not include any unrelated scripts such as bash and python scripts.
  • This change updates the overridden internal templates from HUGO's repository.

@adityatelange adityatelange merged commit 42fa989 into adityatelange:master Aug 6, 2022
@sonarqubecloud
Copy link

sonarqubecloud bot commented Aug 6, 2022

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

minyeamer pushed a commit to minyeamer/hugo-PaperMod that referenced this pull request Sep 16, 2022

Co-authored-by: Aditya Telange <21258296+adityatelange@users.noreply.github.com>
RoneoOrg added a commit to RoneoOrg/hugo-theme-offTheRecord that referenced this pull request Sep 30, 2022
* upstream/master: (51 commits)
  [PATCH] Fix date format in schema and opengraph templates
  Fix error with profileMode imageUrl on Windows devices when imageUrl was set with external link resources.Get throws an error
  Use Nullish Coalescing Operator with Fastsearch (adityatelange#1033)
  Update bug report template
  add sketchfab icon (adityatelange#998)
  Fix spotify icon svg (adityatelange#997)
  Updating pagination strings for de (adityatelange#1024)
  Add icons for AniList and osu! (adityatelange#1022)
  Fix spacing around `rawhtml` shortcode (adityatelange#1018)
  Add param 'hiddenInHomeList' to hide certain post from home page
  Fix Code Smell: Unexpected var, use let or const instead.
  Add social icons for DeviantArt and Patreon (adityatelange#1013)
  Adding threema as social icon (adityatelange#1012)
  Feat: Add page nums in list pages
  pages: use github actions as build source - remove older build config (Classic Pages)
  Add more ja translations (adityatelange#1004)
  Updating pagination strings for bn: (adityatelange#1002)
  Add optional custom "title" for social links (adityatelange#999)
  Add a meta tag for naver site verification (adityatelange#991)
  add vimeo icon (adityatelange#975)
  ...
dunklecat pushed a commit to dunklecat/hugo-PaperModX that referenced this pull request Oct 9, 2022
Co-authored-by: Aditya Telange <21258296+adityatelange@users.noreply.github.com>
kylethedeveloper pushed a commit to kylethedeveloper/hugo-PaperMod that referenced this pull request Feb 21, 2023

Co-authored-by: Aditya Telange <21258296+adityatelange@users.noreply.github.com>
@Netruk44 Netruk44 deleted the patch-1 branch December 28, 2023 16:40
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.

2 participants