sass-template-common 0.9.168 → 0.9.170

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.
@@ -5842,22 +5842,16 @@ const yn = ({
5842
5842
  fontSizeSubTitle: s,
5843
5843
  lineHeightSubTitle: n,
5844
5844
  colorSubTitle: r,
5845
- className: i = "sass-com-nd-description"
5845
+ className: i = "sass-com-nd-description",
5846
+ isH2: o = !1
5846
5847
  }) => {
5847
5848
  if (!e) return null;
5848
- const o = {
5849
+ const l = {
5849
5850
  "--fontSizeSubTitle": s,
5850
5851
  "--lineHeightSubTitle": n,
5851
5852
  "--colorSubTitle": r
5852
5853
  };
5853
- return t ? /* @__PURE__ */ a("p", { className: `sass-com-nd-description ${i}`, style: o, children: Re(e) }) : /* @__PURE__ */ a(
5854
- "h2",
5855
- {
5856
- className: `sass-com-nd-description ${i}`,
5857
- dangerouslySetInnerHTML: { __html: e },
5858
- style: o
5859
- }
5860
- );
5854
+ return t ? /* @__PURE__ */ a("p", { className: `sass-com-nd-description ${i}`, style: l, children: Re(e) }) : ce.createElement(o ? "h2" : "p", { className: `sass-com-nd-description ${i}`, style: l }, e);
5861
5855
  }, ze = (e) => {
5862
5856
  const {
5863
5857
  share: t = !1,
@@ -5954,7 +5948,8 @@ const yn = ({
5954
5948
  cutSubtitle: s,
5955
5949
  fontSizeSubTitle: e.fontSizeSubTitle,
5956
5950
  lineHeightSubTitle: e.lineHeightSubTitle,
5957
- colorSubTitle: e.colorSubTitle
5951
+ colorSubTitle: e.colorSubTitle,
5952
+ isH2: e.isTitle
5958
5953
  }
5959
5954
  ),
5960
5955
  (e?.config?.showtime || e.config?.showauthor) && /* @__PURE__ */ a($, { children: e.authors[0]?.internaluser ? /* @__PURE__ */ a("h3", { children: /* @__PURE__ */ a(
@@ -12342,7 +12337,7 @@ async function bc(e) {
12342
12337
  /* @__PURE__ */ a(Un, { preview: t.preview }),
12343
12338
  e.subtitleBeforeImage && /* @__PURE__ */ p("div", { className: "news-description-before-image", style: { ...e.headerSectionStyles?.common }, children: [
12344
12339
  " ",
12345
- /* @__PURE__ */ a(yn, { subtitle: t.main.subtitle.striped, cutSubtitle: !1 }),
12340
+ /* @__PURE__ */ a(yn, { subtitle: t.main.subtitle.striped, cutSubtitle: !1, isH2: !0 }),
12346
12341
  " "
12347
12342
  ] })
12348
12343
  ] }) : null,