openseo-template 0.1.16 → 0.1.18
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.
- package/dist/index.js +4 -10
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +4 -10
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -25,7 +25,6 @@ __export(index_exports, {
|
|
|
25
25
|
module.exports = __toCommonJS(index_exports);
|
|
26
26
|
|
|
27
27
|
// components/HeroSection.tsx
|
|
28
|
-
var import_react = require("react");
|
|
29
28
|
var import_HeroSection = require("./HeroSection-J5ZDDEXJ.css");
|
|
30
29
|
var import_jsx_runtime = require("react/jsx-runtime");
|
|
31
30
|
var HeroSection = ({
|
|
@@ -34,17 +33,12 @@ var HeroSection = ({
|
|
|
34
33
|
className = "",
|
|
35
34
|
style
|
|
36
35
|
}) => {
|
|
37
|
-
const
|
|
36
|
+
const finalBreadcrumb = breadcrumb || {
|
|
38
37
|
name: "News",
|
|
39
38
|
path: "/news"
|
|
40
|
-
}
|
|
41
|
-
(0, import_react.useEffect)(() => {
|
|
42
|
-
if (breadcrumb) {
|
|
43
|
-
setCurrentBreadcrumb(breadcrumb);
|
|
44
|
-
}
|
|
45
|
-
}, [breadcrumb]);
|
|
39
|
+
};
|
|
46
40
|
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("nav", { className: `hero-breadcrumb ${className}`, style, "aria-label": "Breadcrumb", children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("ol", { className: "hero-breadcrumb-list", children: [
|
|
47
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("li", { className: "hero-breadcrumb-item", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("a", { className: "hero-breadcrumb-link", href:
|
|
41
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("li", { className: "hero-breadcrumb-item", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("a", { className: "hero-breadcrumb-link", href: finalBreadcrumb.path, children: finalBreadcrumb.name }) }),
|
|
48
42
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("li", { className: "hero-breadcrumb-separator", "aria-hidden": "true", children: "/" }),
|
|
49
43
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
50
44
|
"li",
|
|
@@ -294,7 +288,7 @@ var Template3 = ({ data, topBreadcrumb }) => {
|
|
|
294
288
|
};
|
|
295
289
|
return /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("div", { className: "template3", children: [
|
|
296
290
|
/* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("header", { className: "template3-hero", children: [
|
|
297
|
-
data.main_image_url && /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("div", { className: "template3-hero-bg", children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("img", { src: data.main_image_url, alt:
|
|
291
|
+
data.main_image_url && /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("div", { className: "template3-hero-bg", children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("img", { src: data.main_image_url, alt: data.main_title }) }),
|
|
298
292
|
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("div", { className: "template3-hero-container", children: /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("div", { className: "template3-hero-content", children: [
|
|
299
293
|
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
|
|
300
294
|
HeroSection_default,
|