Skip to content

Commit

Permalink
[SEO] Optimization for Google Search Console
Browse files Browse the repository at this point in the history
Add valid `robots.txt` and configure disallowing rules for static
docx and pdf files.

Optimize `logo.svg` file size.

Add Google Search Console HTML verification method file.
  • Loading branch information
n1cogrv committed May 17, 2024
1 parent de9dd87 commit 85d9c07
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 1 deletion.
23 changes: 23 additions & 0 deletions docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -177,8 +177,31 @@ const config = {
// textColor: '#091E42',
isCloseable: true,
},
metadata: [
{
name: 'keywords',
content: 'IPKB, ipkb, 知产智库, 知识产权, 专利法, patent law china, intellectual property knowledge base',
},
],
}),

headTags: [
{
tagName: 'script',
attributes: {
type: 'application/ld+json',
},
innerHTML: JSON.stringify({
'@context': 'https://schema.org/',
'@type': 'Organization',
name: 'Intellectual Property Knowledge Base',
url: 'https://ipkb.jasonchen.icu/',
logo: 'https://ipkb.jasonchen.icu/img/logo.svg',
maintainer: 'Jason Chen',
}),
}
],

plugins: [
[
'@docusaurus/plugin-pwa',
Expand Down
1 change: 1 addition & 0 deletions static/google5105d0fb31cae7b3.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
google-site-verification: google5105d0fb31cae7b3.html
Loading

0 comments on commit 85d9c07

Please sign in to comment.