Site Essentials for Statamic

Site Essentials for Statamic

X/Twitter Metadata

The metadata manager will output X/Twitter meta tags by default. The values it uses are pulled from the config/site_essentials/metadata.php configuration file:

1<?php
2 
3return [
4 'twitter' => [
5 'site' => null,
6 'site_id' => null,
7 'creator' => null,
8 'creator_id' => null,
9 
10 'app_name_iphone' => null,
11 'app_id_iphone' => null,
12 'app_url_iphone' => null,
13 
14 'app_name_ipad' => null,
15 'app_id_ipad' => null,
16 'app_url_ipad' => null,
17 
18 'app_name_googleplay' => null,
19 'app_id_googleplay' => null,
20 'app_url_googleplay' => null,
21 ],
22];

For more information about each of the various options, you should consult their documentation at https://developer.twitter.com/en/docs/twitter-for-websites/cards/overview/markup.

If you are not using the Metadata::withDefaults() helper method, you can queue all X/Twitter metadata using the following builder method:

1<?php
2 
3use Stillat\StatamicSiteEssentials\Support\Facades\Metadata;
4 
5Metadata::twitterX()->all();

Some absolutely amazing
people

The following amazing people help support this site and my open source projects ♥️
If you're interesting in supporting my work and want to show up on this list, check out my GitHub Sponsors Profile.