Having Issues locating webappmanifest

In hugo.json (config) I have added

  "outputs": {
    "home": [
      "webappmanifest",
      "html"
    ]
  },

and I have file in

layouts>home.webappmanifest.json

But still hugo warns with the error.

WARN found no layout file for “webappmanifest” for kind “home”: You should create a template file which matches Hugo Layouts Lookup Rules for this combination.

The default suffix for the application/manifest+json media type is webmanifest. See:
https://gohugo.io/configuration/media-types/#default-configuration

If you want to use the json suffix instead, you need to redefine the media type and any output formats that use that media type. See:
https://gohugo.io/configuration/media-types/#modify-a-media-type

For example:

[mediaTypes.'application/manifest+json']
suffixes = ['json']

[outputFormats.webappmanifest]
mediaType = 'application/manifest+json'

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.