/
head.html
48 lines (47 loc) · 3.06 KB
/
head.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
<!--/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~ Copyright 2021 Adobe
~
~ Licensed under the Apache License, Version 2.0 (the "License");
~ you may not use this file except in compliance with the License.
~ You may obtain a copy of the License at
~
~ http://www.apache.org/licenses/LICENSE-2.0
~
~ Unless required by applicable law or agreed to in writing, software
~ distributed under the License is distributed on an "AS IS" BASIS,
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
~ See the License for the specific language governing permissions and
~ limitations under the License.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/-->
<template data-sly-template.head="${ @ page, pwa }"
data-sly-use.headlibRenderer="headlibs.html"
data-sly-use.headResources="head.resources.html">
<meta charset="UTF-8">
<title>${page.title}${page.brandSlug ? ' | ' : ''}${page.brandSlug}</title>
<meta data-sly-test.keywords="${page.keywords}" name="keywords" content="${keywords}"/>
<meta data-sly-test.description="${page.description || properties['jcr:description']}" name="description" content="${description}"/>
<meta data-sly-test.templateName="${page.templateName}" name="template" content="${templateName}"/>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta data-sly-test="${page.robotsTags}" name="robots" content="${page.robotsTags @ join=', '}">
<sly data-sly-test="${pwa.enabled}">
<link rel="manifest" href="${pwa.manifestPath}" crossorigin="use-credentials"/>
<meta name="theme-color" content="${pwa.themeColor}"/>
<link rel="apple-touch-icon" href="${pwa.iconPath}"/>
<sly data-sly-use.clientlib="core/wcm/components/commons/v1/templates/clientlib.html"
data-sly-call="${clientlib.css @ categories='core.wcm.components.page.v2.pwa'}"></sly>
<meta name="cq:sw_path" content="${pwa.serviceWorkerPath @ context ='text'}"/>
</sly>
<sly data-sly-include="head.links.html"></sly>
<sly data-sly-include="customheaderlibs.html"></sly>
<sly data-sly-call="${headlibRenderer.headlibs @
page = page,
designPath = page.designPath,
staticDesignPath = page.staticDesignPath,
clientLibCategories = page.clientLibCategories,
clientLibCategoriesJsHead = page.clientLibCategoriesJsHead,
hasCloudconfigSupport = page.hasCloudconfigSupport}"></sly>
<sly data-sly-test.appResourcesPath=${page.appResourcesPath} data-sly-call="${headResources.favicons @ path = appResourcesPath}"></sly>
<sly data-sly-list="${page.htmlPageItems}"><script data-sly-test="${item.location.name == 'header'}"
data-sly-element="${item.element.name @ context='unsafe'}" data-sly-attribute="${item.attributes}"></script>
</sly>
</template>