From 23e91af44513b3c0c023587703bd5960c3eea318 Mon Sep 17 00:00:00 2001 From: kitian616 Date: Sat, 22 Dec 2018 19:42:13 +0800 Subject: [PATCH] docs: update doc --- README-zh.md | 2 +- _posts/2018-07-01-welcome.md | 2 +- _sass/layout/_article.scss | 2 +- docs/_includes/article/footer/custom.html | 52 ++++++++++++++++++----- test/_posts/2018-07-01-welcome.md | 2 +- 5 files changed, 45 insertions(+), 15 deletions(-) diff --git a/README-zh.md b/README-zh.md index 5d83044dd45..6634319014e 100644 --- a/README-zh.md +++ b/README-zh.md @@ -87,7 +87,7 @@ TeXt 使用 [Tomorrow](https://github.com/chriskempson/tomorrow-theme) 作为它 你的支持是我的动力。你可以通过以下方式支持我: -- 给这个主题点赞 🌟 +- 给该项目点赞 🌟 - 赞同[这个知乎回答](https://www.zhihu.com/question/20223939/answer/122596506) - 关注我的 Github - 打赏 diff --git a/_posts/2018-07-01-welcome.md b/_posts/2018-07-01-welcome.md index 1f6c0064c2d..fc1db6cd5ce 100644 --- a/_posts/2018-07-01-welcome.md +++ b/_posts/2018-07-01-welcome.md @@ -13,4 +13,4 @@ You may want to [config the site](https://tianqi.name/jekyll-TeXt-theme/docs/en/ If you like TeXt, don't forget to give me a star. :star2: - \ No newline at end of file +[![Star This Project](https://img.shields.io/github/stars/kitian616/jekyll-TeXt-theme.svg?label=Stars&style=social)](https://github.com/kitian616/jekyll-TeXt-theme/) \ No newline at end of file diff --git a/_sass/layout/_article.scss b/_sass/layout/_article.scss index 034a9665796..faa3fe60cc1 100644 --- a/_sass/layout/_article.scss +++ b/_sass/layout/_article.scss @@ -5,8 +5,8 @@ .article__footer { margin: map-get($spacers, 4) 0; font-size: map-get($base, font-size-sm); - color: $text-color-l; .article__license { + color: $text-color-l; img { height: map-get($base, font-size) * 1.6; } diff --git a/docs/_includes/article/footer/custom.html b/docs/_includes/article/footer/custom.html index dde331c1b90..6bbb3d8ad2c 100644 --- a/docs/_includes/article/footer/custom.html +++ b/docs/_includes/article/footer/custom.html @@ -1,14 +1,44 @@ - + {% assign _root_path = page.path | slice: 0, 5 %} +{% assign _lang = page.lang | slice: 0, 2 %} {%- if _root_path == '_docs' -%} -
- - Tip Me via PayPal - - - Tip Me via Bitcoin - - -
+ {%- if _lang == 'zh' -%} +
+
+

你的支持是我的动力。你可以通过以下方式支持我:

+ + + + + + + + + + +
微信支付支付宝
微信支付二维码支付宝二维码
+
+ + {%- else -%} +
+
+ Tip Me via PayPal + + Tip Me via Bitcoin +
BTC: 3Fkufxcw2xd8HnaRJBNK4ccdtkUDyyNu4V
+
+
+ Star This Project
+
+ {%- endif -%} {%- endif -%} - \ No newline at end of file + \ No newline at end of file diff --git a/test/_posts/2018-07-01-welcome.md b/test/_posts/2018-07-01-welcome.md index 1f6c0064c2d..fc1db6cd5ce 100644 --- a/test/_posts/2018-07-01-welcome.md +++ b/test/_posts/2018-07-01-welcome.md @@ -13,4 +13,4 @@ You may want to [config the site](https://tianqi.name/jekyll-TeXt-theme/docs/en/ If you like TeXt, don't forget to give me a star. :star2: - \ No newline at end of file +[![Star This Project](https://img.shields.io/github/stars/kitian616/jekyll-TeXt-theme.svg?label=Stars&style=social)](https://github.com/kitian616/jekyll-TeXt-theme/) \ No newline at end of file