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 >}}

View File

@@ -578,25 +578,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]
@@ -617,6 +606,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
@@ -808,11 +804,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 >}}

View File

@@ -576,25 +576,14 @@ hugo
# 位于 "assets/"
# 或者
# someJavascript = "https://cdn.example.com/some.js"
# {{< version 0.2.0 >}} SEO config
# {{< version 0.2.10 changed >}} 页面 SEO 配置
[params.page.seo]
# 图片 URL
images = []
# 出版者信息
[params.page.seo.publisher]
name = "xxxx"
[params.page.seo.publisher.logo]
url = "logo.png"
width = 127
height = 40
# Logo 信息
[params.page.seo.logo]
url = "logo.png"
width = 127
height = 40
# 图片信息
[params.page.seo.image]
url = "cover.png"
width = 800
height = 600
name = ""
logoUrl = ""
# {{< version 0.2.5 >}} TypeIt 配置
[params.typeit]
@@ -615,6 +604,13 @@ hugo
pinterest = ""
baidu = ""
# {{< version 0.2.10 >}} 网站 SEO 配置
[params.seo]
# 图片 URL
image = ""
# 缩略图 URL
thumbnailUrl = ""
# {{< version 0.2.0 >}} 网站分析配置
[params.analytics]
enable = false
@@ -807,11 +803,7 @@ hugo
可以自定义 `browserconfig.xml``site.webmanifest` 文件来设置 theme-color 和 background-color.
### 3.3 增加网站 logo 和封面用于 SEO 优化
`static` 目录增加一个 logo 图片 (127x40) 和一个封面图片 (800x600).
### 3.4 自定义样式
### 3.3 自定义样式
{{< version 0.2.8 changed >}}

View File

@@ -124,6 +124,9 @@ library:
# located in "assets/"
# Or
# someJS = "https://cdn.example.com/some.js"
seo:
images: []
# ...
---
```
@@ -160,6 +163,7 @@ library:
* **share**: the same as the `params.page.share` part in the [site configuration](../theme-documentation-basics#site-configuration).
* **comment**: {{< version 0.2.0 changed >}} the same as the `params.page.comment` part in the [site configuration](../theme-documentation-basics#site-configuration).
* **library**: {{< version 0.2.7 >}} the same as the `params.page.library` part in the [site configuration](../theme-documentation-basics#site-configuration).
* **seo**: {{< version 0.2.10 >}} the same as the `params.page.seo` part in the [site configuration](../theme-documentation-basics#site-configuration).
{{< admonition tip >}}
{{< version 0.2.10 >}}

View File

@@ -129,6 +129,9 @@ library:
# located in "assets/"
# Or
# someJS = "https://cdn.example.com/some.js"
seo:
images: []
# ...
---
```
@@ -165,6 +168,7 @@ library:
* **share**: the same as the `params.page.share` part in the [site configuration](../theme-documentation-basics#site-configuration).
* **comment**: {{< version 0.2.0 changed >}} the same as the `params.page.comment` part in the [site configuration](../theme-documentation-basics#site-configuration).
* **library**: {{< version 0.2.7 >}} the same as the `params.page.library` part in the [site configuration](../theme-documentation-basics#site-configuration).
* **seo**: {{< version 0.2.10 >}} the same as the `params.page.seo` part in the [site configuration](../theme-documentation-basics#site-configuration).
{{< admonition tip >}}
{{< version 0.2.10 >}}

View File

@@ -123,6 +123,9 @@ library:
# 位于 "assets/"
# 或者
# someJS = "https://cdn.example.com/some.js"
seo:
images: []
# ...
---
```
@@ -159,6 +162,7 @@ library:
* **share**: 和 [网站配置](../theme-documentation-basics#site-configuration) 中的 `params.page.share` 部分相同.
* **comment**: {{< version 0.2.0 changed >}} 和 [网站配置](../theme-documentation-basics#site-configuration) 中的 `params.page.comment` 部分相同.
* **library**: {{< version 0.2.7 >}} 和 [网站配置](../theme-documentation-basics#site-configuration) 中的 `params.page.library` 部分相同.
* **seo**: {{< version 0.2.10 >}} 和 [网站配置](../theme-documentation-basics#site-configuration) 中的 `params.page.seo` 部分相同.
{{< admonition tip >}}
{{< version 0.2.10 >}}