feat(SEO): update SEO config (#393)

This commit is contained in:
Dillon
2020-05-29 11:11:21 +08:00
committed by GitHub
parent 2242e0c3c7
commit 89a526d693
21 changed files with 137 additions and 107 deletions

View File

@@ -573,25 +573,14 @@ Please open the code block below to view the complete sample configuration :(far
# located in "assets/"
# Or
# someJavascript = "https://cdn.example.com/some.js"
# {{< version 0.2.0 >}} SEO config
# {{< version 0.2.10 changed >}} Page SEO config
[params.page.seo]
# image URL
images = []
# Publisher info
[params.page.seo.publisher]
name = "xxxx"
[params.page.seo.publisher.logo]
url = "logo.png"
width = 127
height = 40
# Logo info
[params.page.seo.logo]
url = "logo.png"
width = 127
height = 40
# Image info
[params.page.seo.image]
url = "cover.png"
width = 800
height = 600
name = ""
logoUrl = ""
# {{< version 0.2.5 >}} TypeIt config
[params.typeit]
@@ -612,6 +601,13 @@ Please open the code block below to view the complete sample configuration :(far
pinterest = ""
baidu = ""
# {{< version 0.2.10 >}} Site SEO config
[params.seo]
# image URL
image = ""
# thumbnail URL
thumbnailUrl = ""
# {{< version 0.2.0 >}} Analytics config
[params.analytics]
enable = false
@@ -803,11 +799,7 @@ into `/static`. Theyre easily created via [https://realfavicongenerator.net/]
Customize `browserconfig.xml` and `site.webmanifest` to set theme-color and background-color.
### 3.3 Add Logo and Cover for SEO
Add a logo image (127x40) and a cover image (800x600) in the `static` directory.
### 3.4 Style Customization
### 3.3 Style Customization
{{< version 0.2.8 changed >}}