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}