diff --git a/_config.yml b/_config.yml index 9aac4d9b05c..16485e97551 100644 --- a/_config.yml +++ b/_config.yml @@ -110,7 +110,7 @@ sharing: ## AddThis addthis: - id: # addthis pubid, e.g. ra-5xxxxxxxxxxx + id: # AddThis pubid, e.g. ra-5xxxxxxxxxxx ## => Comments diff --git a/_posts/2018-06-01-header-image.md b/_posts/2018-06-01-header-image.md new file mode 100644 index 00000000000..5e53cdd96be --- /dev/null +++ b/_posts/2018-06-01-header-image.md @@ -0,0 +1,12 @@ +--- +title: Post with Header Image +tags: TeXt +article_header: + type: cover + image: + src: /screenshot.jpg +--- + +A Post with Header Image, See [Page layout](https://tianqi.name/jekyll-TeXt-theme/samples.html#page-layout) for more examples. + + \ No newline at end of file diff --git a/_posts/2018-07-01-welcome.md b/_posts/2018-07-01-welcome.md index 50fed749413..1f6c0064c2d 100644 --- a/_posts/2018-07-01-welcome.md +++ b/_posts/2018-07-01-welcome.md @@ -1,6 +1,5 @@ --- title: Welcome -key: 20180701 tags: TeXt --- diff --git a/docs/_config.dev.yml b/docs/_config.dev.yml index 7769f0def50..460f98e2cc5 100644 --- a/docs/_config.dev.yml +++ b/docs/_config.dev.yml @@ -111,7 +111,7 @@ sharing: ## AddThis addthis: - id: # addthis pubid, e.g. ra-5xxxxxxxxxxx + id: # AddThis pubid, e.g. ra-5xxxxxxxxxxx ## => Comments diff --git a/docs/_config.yml b/docs/_config.yml index 46b090dc8a0..5e492ca90e3 100644 --- a/docs/_config.yml +++ b/docs/_config.yml @@ -112,7 +112,7 @@ sharing: ## AddThis addthis: - id: ra-5be59ee2486770cb # addthis pubid, e.g. ra-5xxxxxxxxxxx + id: ra-5be59ee2486770cb # AddThis pubid, e.g. ra-5xxxxxxxxxxx ## => Comments diff --git a/docs/_docs/en/2.1-configuration.md b/docs/_docs/en/2.1-configuration.md index d7a99a19485..c6adfb66a92 100644 --- a/docs/_docs/en/2.1-configuration.md +++ b/docs/_docs/en/2.1-configuration.md @@ -251,6 +251,7 @@ sources: bootcdn # bootcdn (default), unpkg | Name | Sharing Provider | | --- | --- | | **addtoany** | [AddToAny](https://www.addtoany.com/) | +| **addthis** | [AddThis](https://www.addthis.com/) | ### AddToAny @@ -259,6 +260,15 @@ comments: provider: addtoany ``` +### AddThis + +```yaml +comments: + provider: addthis + addthis: + id: "your-addthis-pubid" +``` + You NEED set `sharing` variable as `true` in the page’s YAML Front Matter to enable sharing on this page, you can find more information [HRER](https://tianqi.name/jekyll-TeXt-theme/docs/en/layouts#article-layout). {:.warning} diff --git a/docs/_docs/zh/2.1-configuration.md b/docs/_docs/zh/2.1-configuration.md index 13912dbd623..503cb475619 100644 --- a/docs/_docs/zh/2.1-configuration.md +++ b/docs/_docs/zh/2.1-configuration.md @@ -249,6 +249,7 @@ sources: bootcdn # bootcdn (default), unpkg | 名称 | 分享系统提供方 | | --- | --- | | **addtoany** | [AddToAny](https://www.addtoany.com/) | +| **addthis** | [AddThis](https://www.addthis.com/) | ### AddToAny @@ -257,6 +258,15 @@ comments: provider: addtoany ``` +### AddThis + +```yaml +comments: + provider: addthis + addthis: + id: "your-addthis-pubid" +``` + 你需要在页面的头信息里设置 `sharing` 属性为 `true` 来开启该页的评论,详情请戳[这里](https://tianqi.name/jekyll-TeXt-theme/docs/zh/layouts#article-%E5%B8%83%E5%B1%80)。 {:.warning} diff --git a/test/_config.yml b/test/_config.yml index cf7078e5e71..6a745f87173 100644 --- a/test/_config.yml +++ b/test/_config.yml @@ -110,7 +110,7 @@ sharing: ## AddThis addthis: - id: # addthis pubid, e.g. ra-5xxxxxxxxxxx + id: # AddThis pubid, e.g. ra-5xxxxxxxxxxx ## => Comments