mirror of
https://github.com/alrayyes/wiki.git
synced 2024-11-26 13:26:22 +00:00
feat: add transclude-src to transclude 'link to original'
This commit is contained in:
parent
226891b9b1
commit
76f295620c
1 changed files with 3 additions and 3 deletions
|
@ -103,7 +103,7 @@ export function renderPage(
|
||||||
{
|
{
|
||||||
type: "element",
|
type: "element",
|
||||||
tagName: "a",
|
tagName: "a",
|
||||||
properties: { href: inner.properties?.href, class: ["internal"] },
|
properties: { href: inner.properties?.href, class: ["internal", "transclude-src"] },
|
||||||
children: [
|
children: [
|
||||||
{ type: "text", value: i18n(cfg.locale).components.transcludes.linkToOriginal },
|
{ type: "text", value: i18n(cfg.locale).components.transcludes.linkToOriginal },
|
||||||
],
|
],
|
||||||
|
@ -140,7 +140,7 @@ export function renderPage(
|
||||||
{
|
{
|
||||||
type: "element",
|
type: "element",
|
||||||
tagName: "a",
|
tagName: "a",
|
||||||
properties: { href: inner.properties?.href, class: ["internal"] },
|
properties: { href: inner.properties?.href, class: ["internal", "transclude-src"] },
|
||||||
children: [
|
children: [
|
||||||
{ type: "text", value: i18n(cfg.locale).components.transcludes.linkToOriginal },
|
{ type: "text", value: i18n(cfg.locale).components.transcludes.linkToOriginal },
|
||||||
],
|
],
|
||||||
|
@ -170,7 +170,7 @@ export function renderPage(
|
||||||
{
|
{
|
||||||
type: "element",
|
type: "element",
|
||||||
tagName: "a",
|
tagName: "a",
|
||||||
properties: { href: inner.properties?.href, class: ["internal"] },
|
properties: { href: inner.properties?.href, class: ["internal", "transclude-src"] },
|
||||||
children: [
|
children: [
|
||||||
{ type: "text", value: i18n(cfg.locale).components.transcludes.linkToOriginal },
|
{ type: "text", value: i18n(cfg.locale).components.transcludes.linkToOriginal },
|
||||||
],
|
],
|
||||||
|
|
Loading…
Reference in a new issue