Skip to content

Commit

Permalink
Added Linkedin, Whatsapp and Telegram items for share links for front…
Browse files Browse the repository at this point in the history
…end add #82
  • Loading branch information
macagua committed Jul 27, 2023
1 parent 98493d8 commit e8baf64
Showing 1 changed file with 29 additions and 6 deletions.
35 changes: 29 additions & 6 deletions frontend/src/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,36 @@ import { DEFAULT_SOCIAL } from '@codesyntax/volto-social-sharing/defaultSettings
import '@plone/volto/config';

// Push new item
DEFAULT_SOCIAL.push({
name: 'Instagram',
fa_name: ['fab', 'instagram'],
color: '#c8232c',
sharing_url: 'http://instagram.com/?url=',
DEFAULT_SOCIAL.push(
// {
// name: 'Twitter',
// fa_name: ['fab', 'twitter'],
// color: '#00acee', //#1da1f2
// sharing_url: 'https://twitter.com/intent/tweet?url=',
// id: 'pt',
// },
{
name: 'Linkedin',
fa_name: ['fab', 'linkedin'],
color: '#0e76a8',
sharing_url: 'https://www.linkedin.com/sharing/share-offsite/?url=',
id: 'pt',
});
},
{
name: 'Whatsapp',
fa_name: ['fab', 'whatsapp'],
color: '#128c7e',
sharing_url: 'https://wa.me/?text=',
id: 'pt',
},
{
name: 'Telegram',
fa_name: ['fab', 'telegram'],
color: '#229ED9',
sharing_url: 'https://telegram.me/share/url?url=',
id: 'pt',
}
);

export default function applyConfig(config) {
config.settings = {
Expand Down

0 comments on commit e8baf64

Please sign in to comment.