qumra-engine 2.0.49 → 2.0.50
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -18,12 +18,15 @@ exports.default = new (class SeoExtension {
|
|
|
18
18
|
.replace(/"/g, """);
|
|
19
19
|
const seo = ctx.context.seo || {};
|
|
20
20
|
const page = ctx.context.page || {};
|
|
21
|
+
const store = ctx.context.store || {};
|
|
21
22
|
const pageUrl = seo.canonical || "";
|
|
22
23
|
const pageTitle = seo.title || page.title || "Store";
|
|
23
24
|
const pageDescription = seo.description || page.description || "";
|
|
24
25
|
const pageImage = seo.image || "";
|
|
26
|
+
const favicon = pageImage || "/favicon.ico"; // الأولوية للوجو
|
|
25
27
|
let tags = `
|
|
26
28
|
<title>${escapeHtml(pageTitle)}</title>
|
|
29
|
+
${favicon ? `<link rel="icon" type="image/png" href="${escapeHtml(favicon)}">` : ""}
|
|
27
30
|
${pageDescription ? `<meta name="description" content="${escapeHtml(pageDescription)}">` : ""}
|
|
28
31
|
${pageUrl ? `<link rel="canonical" href="${escapeHtml(pageUrl)}">` : ""}
|
|
29
32
|
<meta property="og:title" content="${escapeHtml(pageTitle)}">
|