Skip to content

Commit

Permalink
docs: add welcome post
Browse files Browse the repository at this point in the history
  • Loading branch information
kitian616 committed Jul 1, 2018
1 parent 4bc9948 commit 12ce0e0
Show file tree
Hide file tree
Showing 12 changed files with 129 additions and 112 deletions.
4 changes: 2 additions & 2 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@
text_skin: default # "default" (default), "dark", "forest", "ocean", "chocolate", "orange"
url : # the base hostname & protocol for your site e.g. https://www.someone.com
baseurl : # does not include hostname
title : Someone's blog
title : Your Site Title
description: > # this means to ignore newlines until "Language & timezone"
Someone's Blog
Your Site Description
## => Language and Timezone
Expand Down
209 changes: 105 additions & 104 deletions _layouts/landing.html
Original file line number Diff line number Diff line change
Expand Up @@ -39,124 +39,125 @@ <h2 itemprop="alternativeHeadline">{{ page.data.sub_title }}</h2>
</section>

{%- for _section in page.data.sections -%}
{%- if _section.theme == 'light' -%}
<section class="section section--light feature">
{%- elsif _section.theme == 'dark' -%}
<section class="section section--dark feature">
{%- else -%}
<section class="section feature">
{%- endif -%}
<div class="section__content">
<div class="content__row">

<h3>{{ _section.title }}</h3>
{%- if _section.description-%}
<p>{{ _section.description }}</p>
{%- endif -%}

{%- if _section.actions -%}
<ul class="menu menu--center">
{%- for _action in _section.actions -%}
{%- assign __path = _action.url -%}
{%- include snippets/get-nav-url.html -%}
{%- assign _url = __return -%}
{%- assign _type = _action.type | default: 'outline-info' -%}
<li><a class="button button--{{ _type }} button--rounded button--lg" href="{{ _url }}">{{ _action.text }}</a></li>
{%- endfor -%}
</ul>
{%- endif -%}

</div>

{%- if _section.children -%}
{%- assign _size = _section.children | size -%}
<div class="grid">
<div class="row">

{%- if _section.theme == 'light' -%}
<section class="section section--light feature" id="section-{{ forloop.index }}">
{%- elsif _section.theme == 'dark' -%}
<section class="section section--dark feature" id="section-{{ forloop.index }}">
{%- else -%}
<section class="section feature" id="section-{{ forloop.index }}">
{%- endif -%}

<div class="section__content">
<div class="content__row">

<h3>{{ _section.title }}</h3>
{%- if _section.description-%}
<p>{{ _section.description }}</p>
{%- endif -%}

{%- for child in _section.children -%}
<div class="content__col col-{{ 12 | divided_by: _size }} col-sm-12">
{%- if _section.actions -%}
<ul class="menu menu--center">
{%- for _action in _section.actions -%}
{%- assign __path = _action.url -%}
{%- include snippets/get-nav-url.html -%}
{%- assign _url = __return -%}
{%- assign _type = _action.type | default: 'outline-info' -%}
<li><a class="button button--{{ _type }} button--rounded button--lg" href="{{ _url }}">{{ _action.text }}</a></li>
{%- endfor -%}
</ul>
{%- endif -%}

<div class="content__row">
<h4>{{ child.title }}</h4>
</div>

{%- if child.description-%}
<p>{{ child.description }}</p>
{%- if _section.children -%}
{%- assign _size = _section.children | size -%}
<div class="grid">
<div class="row">


{%- for child in _section.children -%}
<div class="content__col col-{{ 12 | divided_by: _size }} col-sm-12">

<div class="content__row">
<h4>{{ child.title }}</h4>

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

{%- if child.actions -%}
<ul class="menu menu--center">
{%- for _action in child.actions -%}
{%- assign __path = _action.url -%}
{%- include snippets/get-nav-url.html -%}
{%- assign _url = __return -%}
{%- assign _type = _action.type | default: 'outline-info' -%}
<li><a class="button button--{{ _type }} button--rounded button--lg" href="{{ _url }}">{{ _action.text }}</a></li>
{%- endfor -%}
</ul>
{%- endif -%}
</div>

{%- if child.image -%}

{%- if child.image.url -%}
{%- assign __path = child.image.url -%}
{%- include snippets/get-nav-url.html -%}
{%- assign _item_image_url = __return -%}
{%- else -%}
{%- assign _item_image_url = nil -%}
{%- endif -%}

{%- if child.image.src -%}
{%- assign __path = child.image.src -%}
{%- include snippets/get-nav-url.html -%}
{%- assign _item_image_src = __return -%}
{%- else -%}
{%- assign _item_image_src = nil -%}
{%- endif -%}

{%- if child.image.is_row -%}
<div class="content__row">
{%- endif -%}
{%- if _item_image_url -%}
<a href="{{ _item_image_url }}">
{%- endif -%}
{%- if _item_image_src -%}
<img class="content__cover" src="{{ _item_image_src }}" style="{{ child.image.style }}"></img>
{%- endif -%}
{%- if _item_image_url -%}
</a>
{%- endif -%}
{%- if child.image.is_row -%}
</div>
{%- endif -%}
{%- endif -%}

{%- if child.actions -%}
<ul class="menu menu--center">
{%- for _action in child.actions -%}
{%- assign __path = _action.url -%}
{%- include snippets/get-nav-url.html -%}
{%- assign _url = __return -%}
{%- assign _type = _action.type | default: 'outline-info' -%}
<li><a class="button button--{{ _type }} button--rounded button--lg" href="{{ _url }}">{{ _action.text }}</a></li>
{%- endfor -%}
</ul>
{%- endif -%}
</div>

{%- if child.image -%}

{%- if child.image.url -%}
{%- assign __path = child.image.url -%}
{%- include snippets/get-nav-url.html -%}
{%- assign _item_image_url = __return -%}
{%- else -%}
{%- assign _item_image_url = nil -%}
{%- endif -%}

{%- if child.image.src -%}
{%- assign __path = child.image.src -%}
{%- include snippets/get-nav-url.html -%}
{%- assign _item_image_src = __return -%}
{%- else -%}
{%- assign _item_image_src = nil -%}
{%- endif -%}

{%- if child.image.is_row -%}
<div class="content__row">
{%- endif -%}
{%- if _item_image_url -%}
<a href="{{ _item_image_url }}">
{%- endif -%}
{%- if _item_image_src -%}
<img class="content__cover" src="{{ _item_image_src }}" style="{{ child.image.style }}"></img>
{%- endif -%}
{%- if _item_image_url -%}
</a>
{%- endif -%}
{%- if child.image.is_row -%}
</div>
{%- endif -%}
{%- endif -%}
{%- endfor-%}

</div>
{%- endfor-%}

</div>
</div>
{%- endif -%}

{%- if _section.image -%}
{%- if _section.image.is_row -%}
<div class="content__row">
{%- endif -%}
{%- if child.image.url -%}
<a href="{{ child.image.url }}">

{%- if _section.image -%}
{%- if _section.image.is_row -%}
<div class="content__row">
{%- endif -%}
<img class="content__cover" src="{{ _section.image.src }}" style="{{ _section.image.style }}"></img>
{%- if child.image.url -%}
</a>
{%- if child.image.url -%}
<a href="{{ child.image.url }}">
{%- endif -%}
<img class="content__cover" src="{{ _section.image.src }}" style="{{ _section.image.style }}"></img>
{%- if child.image.url -%}
</a>
{%- endif -%}
{%- if _section.image.is_row -%}
</div>
{%- endif -%}
{%- if _section.image.is_row -%}
</div>
{%- endif -%}
{%- endif -%}

</div>
</section>
</div>
</section>
{%- endfor -%}
</div>

Expand Down
17 changes: 17 additions & 0 deletions _posts/2018-07-01-welcome.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
---
title: Welcome
key: 20180701
tags: TeXt
---

If you see this page, it means you have setup your site, enjoy!

<!--more-->

You may want to [config the site](https://tianqi.name/jekyll-TeXt-theme/docs/en/configuration) or [writing a post](https://tianqi.name/jekyll-TeXt-theme/docs/en/writing-posts) next. Please feel free to [create an issue](https://github.com/kitian616/jekyll-TeXt-theme/issues) or [send me email](mailto:kitian616@outlook.com) if you have any questions.

---

If you like TeXt, don't forget to give me a star :smile:.

![GitHub stars](https://img.shields.io/github/stars/kitian616/jekyll-TeXt-theme.svg?style=social&label=Stars)
4 changes: 2 additions & 2 deletions docs/_config.dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,8 @@ exclude:
- /screenshots
# - /test
- /vendor
- /_posts
- /index.html

defaults:
- scope:
Expand All @@ -191,7 +193,6 @@ defaults:
aside:
toc: true
show_edit_on_github: true
pageview: true
- scope:
path: "docs/zh"
values:
Expand All @@ -203,7 +204,6 @@ defaults:
toc: true
lang: zh
show_edit_on_github: true
pageview: true


## => Plugins
Expand Down
3 changes: 1 addition & 2 deletions docs/_config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,7 @@ exclude:
- /screenshots
# - /test
- /vendor
- /_posts
- /index.html

defaults:
Expand All @@ -192,7 +193,6 @@ defaults:
aside:
toc: true
show_edit_on_github: true
pageview: true
- scope:
path: "docs/zh"
values:
Expand All @@ -204,7 +204,6 @@ defaults:
toc: true
lang: zh
show_edit_on_github: true
pageview: true


## => Plugins
Expand Down
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
4 changes: 2 additions & 2 deletions test/_config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ theme: jekyll-text-theme
text_skin: default # "default" (default), "dark", "forest", "ocean", "chocolate", "orange"
url : # the base hostname & protocol for your site e.g. https://www.someone.com
baseurl : # does not include hostname
title : Someone's blog
title : Your Site Title
description: > # this means to ignore newlines until "Language & timezone"
Someone's Blog
Your Site Description
## => Language and Timezone
Expand Down

0 comments on commit 12ce0e0

Please sign in to comment.