Skip to content

Commit

Permalink
feat: landing layout add content key for each sectioin, update README
Browse files Browse the repository at this point in the history
  • Loading branch information
kitian616 committed Dec 21, 2018
1 parent 81522fd commit 3e72de3
Show file tree
Hide file tree
Showing 6 changed files with 21 additions and 13 deletions.
4 changes: 2 additions & 2 deletions README-zh.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# [TeXt Theme](https://github.com/kitian616/jekyll-TeXt-theme)

[![Gem Version](https://img.shields.io/gem/v/jekyll-text-theme.svg)](https://github.com/kitian616/jekyll-TeXt-theme/releases)
[![license](https://img.shields.io/github/license/kitian616/jekyll-TeXt-theme.svg)](https://github.com/kitian616/jekyll-TeXt-theme/blob/master/LICENSE)
[![Gem Version](https://img.shields.io/gem/v/jekyll-text-theme.svg)](https://github.com/kitian616/jekyll-TeXt-theme/releases)
[![Travis](https://img.shields.io/travis/kitian616/jekyll-TeXt-theme.svg)](https://travis-ci.org/kitian616/jekyll-TeXt-theme)
[![Tip Me via PayPal](https://img.shields.io/badge/PayPal-tip%20me-1462ab.svg?logo=paypal)](https://www.paypal.me/kitian616)
[![Tip Me via Bitcoin](https://img.shields.io/badge/Bitcoin-tip%20me-f7931a.svg?logo=bitcoin)](https://raw.githubusercontent.com/kitian616/jekyll-TeXt-theme/master/docs/assets/images/tip_bitcoin.jpg)
[![Tip Me via Bitcoin](https://img.shields.io/badge/Bitcoin-tip%20me-f7931a.svg?logo=bitcoin)](https://raw.githubusercontent.com/kitian616/jekyll-TeXt-theme/master/docs/assets/images/3Fkufxcw2xd8HnaRJBNK4ccdtkUDyyNu4V.jpg)

![TeXt Theme](https://raw.githubusercontent.com/kitian616/jekyll-TeXt-theme/master/screenshots/TeXt-home.jpg)

Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# [TeXt Theme](https://github.com/kitian616/jekyll-TeXt-theme)

[![Gem Version](https://img.shields.io/gem/v/jekyll-text-theme.svg)](https://github.com/kitian616/jekyll-TeXt-theme/releases)
[![license](https://img.shields.io/github/license/kitian616/jekyll-TeXt-theme.svg)](https://github.com/kitian616/jekyll-TeXt-theme/blob/master/LICENSE)
[![Gem Version](https://img.shields.io/gem/v/jekyll-text-theme.svg)](https://github.com/kitian616/jekyll-TeXt-theme/releases)
[![Travis](https://img.shields.io/travis/kitian616/jekyll-TeXt-theme.svg)](https://travis-ci.org/kitian616/jekyll-TeXt-theme)
[![Tip Me via PayPal](https://img.shields.io/badge/PayPal-tip%20me-1462ab.svg?logo=paypal)](https://www.paypal.me/kitian616)
[![Tip Me via Bitcoin](https://img.shields.io/badge/Bitcoin-tip%20me-f7931a.svg?logo=bitcoin)](https://raw.githubusercontent.com/kitian616/jekyll-TeXt-theme/master/docs/assets/images/tip_bitcoin.jpg)
[![Tip Me via Bitcoin](https://img.shields.io/badge/Bitcoin-tip%20me-f7931a.svg?logo=bitcoin)](https://raw.githubusercontent.com/kitian616/jekyll-TeXt-theme/master/docs/assets/images/3Fkufxcw2xd8HnaRJBNK4ccdtkUDyyNu4V.jpg)

![TeXt Theme](https://raw.githubusercontent.com/kitian616/jekyll-TeXt-theme/master/screenshots/TeXt-home.jpg)

Expand Down
8 changes: 8 additions & 0 deletions _layouts/landing.html
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,10 @@ <h4>{{ child.title }}</h4>
{%- endif -%}
{%- endif -%}

{%- if child.content-%}
<p>{{ child.content }}</p>
{%- endif -%}

</div>
{%- endfor-%}

Expand Down Expand Up @@ -149,6 +153,10 @@ <h4>{{ child.title }}</h4>
{%- if _section.image.full_width != true -%}
</div> {% comment %} end hero__content {% endcomment %}
{%- endif -%}

{%- if _section.content-%}
<p>{{ _section.content }}</p>
{%- endif -%}
</section>
{%- endfor -%}
</div>
Expand Down
2 changes: 1 addition & 1 deletion docs/_includes/article/footer/custom.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<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/tip_bitcoin.jpg">
<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>
Expand Down
File renamed without changes
16 changes: 8 additions & 8 deletions docs/landing.html
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,12 @@
background_color: "#515151"
- title: Tip Me
children:
- title: 'PayPal <i class="fas fa-arrow-down"></i>'
image:
src: /docs/assets/images/tip_paypal.jpg
url: https://www.paypal.me/kitian616
style: "max-width: 200px; max-height: 200px"
is_row: true
- title: 'WeChat <i class="fas fa-arrow-down"></i>'
image:
src: /docs/assets/images/tip_wechat.jpg
Expand All @@ -82,15 +88,9 @@
src: /docs/assets/images/tip_alipay.jpg
style: "max-width: 200px; max-height: 200px"
is_row: true
- title: 'PayPal <i class="fas fa-arrow-down"></i>'
image:
src: /docs/assets/images/tip_paypal.jpg
url: https://www.paypal.me/kitian616
style: "max-width: 200px; max-height: 200px"
is_row: true
- title: 'Bitcoin <i class="fas fa-arrow-down"></i>'
image:
src: /docs/assets/images/tip_bitcoin.jpg
src: /docs/assets/images/3Fkufxcw2xd8HnaRJBNK4ccdtkUDyyNu4V.jpg
style: "max-width: 200px; max-height: 200px"
is_row: true
content: '<code style="font-size: .65rem; word-break: break-all">3Fkufxcw2xd8HnaRJBNK4ccdtkUDyyNu4V</code>'
---

0 comments on commit 3e72de3

Please sign in to comment.