Skip to content
This repository was archived by the owner on Mar 9, 2022. It is now read-only.

Commit

Permalink
feat(SEO): update SEO config (#393)
Browse files Browse the repository at this point in the history
  • Loading branch information
dillonzq authored May 29, 2020
1 parent 2242e0c commit 89a526d
Show file tree
Hide file tree
Showing 21 changed files with 137 additions and 107 deletions.
2 changes: 1 addition & 1 deletion .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -1 +1 @@
custom: https://www.paypal.me/dillonzq
custom: https://paypal.me/dillonzq
Binary file added exampleSite/assets/images/screenshot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
34 changes: 16 additions & 18 deletions exampleSite/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -936,29 +936,17 @@ enableEmoji = true
# located in "assets/" 位于 "assets/"
# Or 或者
# someJavascript = "https://cdn.example.com/some.js"
# SEO config
# SEO 配置
# Page SEO config
# 页面 SEO 配置
[params.page.seo]
# image URL
# 图片 URL
images = []
# Publisher info
# 出版者信息
[params.page.seo.publisher]
name = "xxxx"
[params.page.seo.publisher.logo]
url = "logo.png"
width = 127
height = 40
# Logo info
# Logo 信息
[params.page.seo.logo]
url = "logo.png"
width = 127
height = 40
# Image info
# 图片信息
[params.page.seo.image]
url = "cover.png"
width = 800
height = 600
logoUrl = "/images/avatar.png"

# TypeIt config
# TypeIt 配置
Expand All @@ -985,6 +973,16 @@ enableEmoji = true
pinterest = ""
baidu = ""

# Site SEO config
# 网站 SEO 配置
[params.seo]
# image URL
# 图片 URL
image = "/images/Apple-Devices-Preview.png"
# thumbnail URL
# 缩略图 URL
thumbnailUrl = "/images/screenshot.png"

# Analytics config
# 网站分析配置
[params.analytics]
Expand Down
2 changes: 1 addition & 1 deletion exampleSite/content/about/index.en.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ math:
>
> It is based on the original [LeaveIt Theme](https://github.com/liuzc/LeaveIt) and [KeepIt Theme](https://github.com/Fastbyte01/KeepIt).
![Hugo Theme LoveIt](Apple-Devices-Preview.png "Hugo Theme LoveIt")
![Hugo Theme LoveIt](/images/Apple-Devices-Preview.png "Hugo Theme LoveIt")

### Features

Expand Down
2 changes: 1 addition & 1 deletion exampleSite/content/about/index.fr.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ Welcome to take the time to propose a translation by [:(fas fa-code-branch fa-fw
>
> It is based on the original [LeaveIt Theme](https://github.com/liuzc/LeaveIt) and [KeepIt Theme](https://github.com/Fastbyte01/KeepIt).
![Hugo Theme LoveIt](Apple-Devices-Preview.png "Hugo Theme LoveIt")
![Hugo Theme LoveIt](/images/Apple-Devices-Preview.png "Hugo Theme LoveIt")

### Features

Expand Down
2 changes: 1 addition & 1 deletion exampleSite/content/about/index.zh-cn.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ math:
>
> 它的原型基于 [LeaveIt 主题](https://github.com/liuzc/LeaveIt)[KeepIt 主题](https://github.com/Fastbyte01/KeepIt)
![Hugo 主题 LoveIt](Apple-Devices-Preview.png "Hugo 主题 LoveIt")
![Hugo 主题 LoveIt](/images/Apple-Devices-Preview.png "Hugo 主题 LoveIt")

### 特性

Expand Down
34 changes: 13 additions & 21 deletions exampleSite/content/posts/theme-documentation-basics/index.en.md
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand All @@ -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
Expand Down Expand Up @@ -803,11 +799,7 @@ into `/static`. They’re 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 >}}

Expand Down
34 changes: 13 additions & 21 deletions exampleSite/content/posts/theme-documentation-basics/index.fr.md
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand All @@ -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
Expand Down Expand Up @@ -808,11 +804,7 @@ into `/static`. They’re 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 >}}

Expand Down
34 changes: 13 additions & 21 deletions exampleSite/content/posts/theme-documentation-basics/index.zh-cn.md
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand All @@ -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
Expand Down Expand Up @@ -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 >}}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,9 @@ library:
# located in "assets/"
# Or
# someJS = "https://cdn.example.com/some.js"
seo:
images: []
# ...
---
```

Expand Down Expand Up @@ -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 >}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,9 @@ library:
# located in "assets/"
# Or
# someJS = "https://cdn.example.com/some.js"
seo:
images: []
# ...
---
```

Expand Down Expand Up @@ -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 >}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,9 @@ library:
# 位于 "assets/"
# 或者
# someJS = "https://cdn.example.com/some.js"
seo:
images: []
# ...
---
```

Expand Down Expand Up @@ -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 >}}
Expand Down
Binary file removed exampleSite/static/logo.png
Binary file not shown.
Loading

0 comments on commit 89a526d

Please sign in to comment.