Skip to content

Commit

Permalink
docs: update doc
Browse files Browse the repository at this point in the history
  • Loading branch information
kitian616 committed Dec 22, 2018
1 parent 4b2229c commit 23e91af
Show file tree
Hide file tree
Showing 5 changed files with 45 additions and 15 deletions.
2 changes: 1 addition & 1 deletion README-zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ TeXt 使用 [Tomorrow](https://github.com/chriskempson/tomorrow-theme) 作为它

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

- 给这个主题点赞 🌟
- 给该项目点赞 🌟
- 赞同[这个知乎回答](https://www.zhihu.com/question/20223939/answer/122596506)
- 关注我的 Github
- 打赏
Expand Down
2 changes: 1 addition & 1 deletion _posts/2018-07-01-welcome.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:

<iframe src="https://ghbtns.com/github-btn.html?user=kitian616&repo=jekyll-TeXt-theme&type=star&count=true" frameborder="0" scrolling="0" width="170px" height="20px"></iframe>
[![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/)
2 changes: 1 addition & 1 deletion _sass/layout/_article.scss
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
52 changes: 41 additions & 11 deletions docs/_includes/article/footer/custom.html
Original file line number Diff line number Diff line change
@@ -1,14 +1,44 @@
<!-- start custom article top snippet -->
<!-- start custom article footer snippet -->
{% assign _root_path = page.path | slice: 0, 5 %}
{% assign _lang = page.lang | slice: 0, 2 %}
{%- if _root_path == '_docs' -%}
<div class="my-3">
<a href="https://www.paypal.me/kitian616">
<img src="https://img.shields.io/badge/PayPal-tip%20me-1462ab.svg?logo=paypal" alt="Tip Me via PayPal" />
</a>
<a href="https://raw.githubusercontent.com/kitian616/jekyll-TeXt-theme/master/docs/assets/images/3Fkufxcw2xd8HnaRJBNK4ccdtkUDyyNu4V.jpg">
<img src="https://img.shields.io/badge/Bitcoin-tip%20me-f7931a.svg?logo=bitcoin" alt="Tip Me via Bitcoin" />
</a>
<iframe src="https://ghbtns.com/github-btn.html?user=kitian616&repo=jekyll-TeXt-theme&type=star&count=true" frameborder="0" scrolling="0" width="170px" height="20px"></iframe>
</div>
{%- if _lang == 'zh' -%}
<div class="article__content my-3">
<hr />
<p><strong>你的支持是我的动力。你可以通过以下方式支持我:</strong></p>
<ul>
<li>给该项目点赞&nbsp;<a style="vertical-align: text-bottom;" href="https://github.com/kitian616/jekyll-TeXt-theme/">
<img src="https://img.shields.io/github/stars/kitian616/jekyll-TeXt-theme.svg?label=Stars&style=social" alt="给该项目点赞" />
</a></li>
<li>赞同<a href="https://www.zhihu.com/question/20223939/answer/122596506">这个知乎回答</a></li>
<li>关注我的 Github&nbsp;<a style="vertical-align: text-bottom;" href="https://github.com/kitian616/">
<img src="https://img.shields.io/github/followers/kitian616.svg?label=Follow&style=social" alt="关注我的 Github" />
</a></li>
<li>打赏</li>
</ul>
<table>
<thead><tr>
<th>微信支付</th>
<th>支付宝</th>
</tr></thead>
<tbody><tr>
<td><img style="max-widht: 150px; max-height: 150px" src="https://raw.githubusercontent.com/kitian616/jekyll-TeXt-theme/master/docs/assets/images/tip_wechat.jpg" alt="微信支付二维码" /></td>
<td><img style="max-widht: 150px; max-height: 150px" src="https://raw.githubusercontent.com/kitian616/jekyll-TeXt-theme/master/docs/assets/images/tip_alipay.jpg" alt="支付宝二维码" /></td>
</tr></tbody>
</table>
</div>

{%- else -%}
<div class="my-3">
<div class="my-2"><a href="https://www.paypal.me/kitian616">
<img src="https://img.shields.io/badge/PayPal-tip%20me-1462ab.svg?logo=paypal" alt="Tip Me via PayPal" /></a>
<a href="https://raw.githubusercontent.com/kitian616/jekyll-TeXt-theme/master/docs/assets/images/3Fkufxcw2xd8HnaRJBNK4ccdtkUDyyNu4V.jpg">
<img src="https://img.shields.io/badge/Bitcoin-tip%20me-f7931a.svg?logo=bitcoin" alt="Tip Me via Bitcoin" /></a>
<div>BTC: <code>3Fkufxcw2xd8HnaRJBNK4ccdtkUDyyNu4V</code></div>
</div>
<div><a href="https://github.com/kitian616/jekyll-TeXt-theme/">
<img src="https://img.shields.io/github/stars/kitian616/jekyll-TeXt-theme.svg?label=Stars&style=social" alt="Star This Project" /></a></div>
</div>
{%- endif -%}
{%- endif -%}
<!-- end custom article top snippet -->
<!-- end custom article footer snippet -->
2 changes: 1 addition & 1 deletion test/_posts/2018-07-01-welcome.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:

<iframe src="https://ghbtns.com/github-btn.html?user=kitian616&repo=jekyll-TeXt-theme&type=star&count=true" frameborder="0" scrolling="0" width="170px" height="20px"></iframe>
[![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/)

0 comments on commit 23e91af

Please sign in to comment.