HtmlDocument
Helps you create standard HTML headers and footers.
See the HtmlDocument guide to learn how to work with the HtmlDocument module.
Configuration
titleThe page titledescriptionThe page descriptioncopyrightThe page copyright infokeywordsAn array of the page keywordslanguageCodeThe language code of the page, from the ISO 639-1 standard (https://www.w3schools.com/tags/ref_language_codes.asp). Default:encharsetThe page character set. Default:utf-8isAllowRobotsIndexWhether to allow robots to index the document. Default:trueisAllowRobotsFollowWhether to allow robots to follow links on the document. Default:trueisDeferJavascriptWhether to defer loading of JavaScript or not. Default:falsegoogleAnalyticsTrackingIdThe Google Analytics id, if any.matomoTrackingIdThe Matomo (Piwik) tracking id, if any.matomoServerUrlThe Matomo (Piwik) server URL, if any.mobileViewportConfiguration for the site when viewed in a mobile device, via theviewportmetawidthThe width of the viewport: A number of pixels ordevice-width. Default:device-widthuserScalableWhether or not to let the user pinch to zoom in/out. Default:trueinitialScaleOptional, the initial scalemaximumScaleOptional, the maximum scale
microsoftApplicationInfoApplication info for Microsoft standards (i.e: When adding the web as a shortcut in Windows >8)nameThe name of the apptileColorThe color of the tile on Windows >8, in HTML hexadecimal format (i.e:#dd2153)tileImageURL of an image to use as a tile image for Windows >8. Must be in png format.
appleApplicationInfoApplication info for Apple standards (i.e: When adding the web as a shortcut in iOs devices, or to hint the users about the App store APP for this site)nameThe name of the appiTunesAppIdiconsA hash array of icon sizes where the key is in the [width]x[height] syntax and the value is the icon URL in png format. The standard keys to use here are:57x57,114x114,72x72,144x144,60x60,120x120,76x76and152x152. Default:false
iTunesAppIdThe id of a corresponding App in the Apple store. Default:falsefavIconsA hash array of icon sizes where the key is in the [width]x[height] syntax and the value is the icon URL in png format. The standard keys to use here are:196x196,160x160,96x96,16x16and32x32. Default:falsecssSetsAn array of the Css set names to link in the HTML document in a single request, or, to add different Css requests instead of one, an array where each item represents a single request, and is an array of Css set names that will be included in each single request. If set tofalse, all available sets will be linked in a single request. Default:falsejavascriptSetsAn array of the Javascript set names to link in the HTML document in a single request, or, to add different Javascript requests instead of one, an array where each item represents a single request, and is an array of Javascript set names that will be included in each single request. If set tofalse, all available sets will be linked in a single request. Default:falsegoogleFontsAn array of the Google fonts to include, where each item is a hash array containing the following keys:familyThe font family (i.e:Duru Sans)weightThe font weight (i.e:300)subsetThe subset (i.e:latin)
Last updated
Was this helpful?