Site Essentials for Statamic

Site Essentials for Statamic

Front-end Templates

There are two ways to add the web manifest HTML tag(s) to your site's front-end templates: the dedicated Antlers tag and the metadata provider.

#Using the Antlers Tag

The se_web_manifest Antlers tag may be used to output the HTML tag for your site's generated manifest file:

1<!doctype html>
2<html>
3 <head>
4 {{ se_web_manifest /}}
5 </head>
6</html>

#Using Metadata Providers

If you are already using the {{ se_meta /}} tag, the easiest way to the web manifest tags into your site's front-end template is to register the Site Essentials for Statamic metadata provider:

1<?php
2 
3namespace App\Providers;
4 
5use Illuminate\Support\ServiceProvider;
6use Stillat\StatamicSiteEssentials\Support\Facades\Metadata;
7 
8class AppServiceProvider extends ServiceProvider
9{
10 /**
11 * Bootstrap any application services.
12 */
13 public function boot(): void
14 {
15 // ...
16 
17 Metadata::withDefaults()->addProviders([
18 \Stillat\StatamicSiteEssentials\Metadata\EssentialMetadataProvider::class,
19 ]);
20 
21 // ...
22 }
23}

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.