Skip to content

Commit 1844171

Browse files
committed
feat: optimize seo title
1 parent 6bcbe6e commit 1844171

File tree

3 files changed

+26
-10
lines changed

3 files changed

+26
-10
lines changed

packages/crd-theme/markdown/index.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ const components = {
1313

1414
function Markdown(markdownProps) {
1515
const { props } = markdownProps
16+
console.log('props', props)
17+
// todo props.title
1618
const { relative } = props
1719
const [MarkdownCP, setMarkdownCP] = useState(null)
1820
const markdownWrapperRef = useRef(null)

packages/crd-theme/package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,5 +25,8 @@
2525
},
2626
"author": "muyunyun",
2727
"license": "MIT",
28-
"gitHead": "ffc5e4cbc94a7356da558c2dbf46e2f39bb8b199"
28+
"gitHead": "ffc5e4cbc94a7356da558c2dbf46e2f39bb8b199",
29+
"devDependencies": {
30+
"react-helmet": "^6.1.0"
31+
}
2932
}

yarn.lock

Lines changed: 20 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4096,15 +4096,6 @@ crd-prerender-spa-plugin@^0.2.0:
40964096
"@prerenderer/renderer-puppeteer" "^0.2.0"
40974097
html-minifier "^4.0.0"
40984098

4099-
4100-
version "0.2.24"
4101-
resolved "https://registry.npmjs.org/crd-seed/-/crd-seed-0.2.24.tgz#50ace28c8fe1c96a3cbef259ffcef08677eb5ba2"
4102-
integrity sha512-YwQKdCh3LNkQxOqnLeKPmhpfMuNVT1uGh4hhkEF/8yQ465sfnTKtntflVvOIRpF6DAr8SBCpiILXyw8xkxaD/g==
4103-
dependencies:
4104-
react-markdown "^3.3.0"
4105-
react-router-dom "^4.2.2"
4106-
react-switch "^5.0.1"
4107-
41084099
41094100
version "2.2.2"
41104101
resolved "https://registry.npmjs.org/cross-fetch/-/cross-fetch-2.2.2.tgz#a47ff4f7fc712daba8f6a695a11c948440d45723"
@@ -10105,6 +10096,21 @@ react-error-overlay@^4.0.0:
1010510096
resolved "https://registry.npmjs.org/react-error-overlay/-/react-error-overlay-4.0.1.tgz#417addb0814a90f3a7082eacba7cee588d00da89"
1010610097
integrity sha512-xXUbDAZkU08aAkjtUvldqbvI04ogv+a1XdHxvYuHPYKIVk/42BIOD0zSKTHAWV4+gDy3yGm283z2072rA2gdtw==
1010710098

10099+
react-fast-compare@^3.1.1:
10100+
version "3.2.0"
10101+
resolved "https://registry.npmjs.org/react-fast-compare/-/react-fast-compare-3.2.0.tgz#641a9da81b6a6320f270e89724fb45a0b39e43bb"
10102+
integrity sha512-rtGImPZ0YyLrscKI9xTpV8psd6I8VAtjKCzQDlzyDvqJA8XOW78TXYQwNRNd8g8JZnDu8q9Fu/1v4HPAVwVdHA==
10103+
10104+
react-helmet@^6.1.0:
10105+
version "6.1.0"
10106+
resolved "https://registry.npmjs.org/react-helmet/-/react-helmet-6.1.0.tgz#a750d5165cb13cf213e44747502652e794468726"
10107+
integrity sha512-4uMzEY9nlDlgxr61NL3XbKRy1hEkXmKNXhjbAIOVw5vcFrsdYbH2FEwcNyWvWinl103nXgzYNlns9ca+8kFiWw==
10108+
dependencies:
10109+
object-assign "^4.1.1"
10110+
prop-types "^15.7.2"
10111+
react-fast-compare "^3.1.1"
10112+
react-side-effect "^2.1.0"
10113+
1010810114
react-hot-loader@^4.1.1:
1010910115
version "4.13.0"
1011010116
resolved "https://registry.npmjs.org/react-hot-loader/-/react-hot-loader-4.13.0.tgz#c27e9408581c2a678f5316e69c061b226dc6a202"
@@ -10166,6 +10172,11 @@ react-router@^4.3.1:
1016610172
prop-types "^15.6.1"
1016710173
warning "^4.0.1"
1016810174

10175+
react-side-effect@^2.1.0:
10176+
version "2.1.1"
10177+
resolved "https://registry.npmjs.org/react-side-effect/-/react-side-effect-2.1.1.tgz#66c5701c3e7560ab4822a4ee2742dee215d72eb3"
10178+
integrity sha512-2FoTQzRNTncBVtnzxFOk2mCpcfxQpenBMbk5kSVBg5UcPqV9fRbgY2zhb7GTWWOlpFmAxhClBDlIq8Rsubz1yQ==
10179+
1016910180
react-switch@^5.0.1:
1017010181
version "5.0.1"
1017110182
resolved "https://registry.npmjs.org/react-switch/-/react-switch-5.0.1.tgz#449277f4c3aed5286fffd0f50d5cbc2a23330406"

0 commit comments

Comments
 (0)