move demo site to docs/ folder
This commit is contained in:
parent
bb7d9f845f
commit
6552c5774e
65 changed files with 12900 additions and 0 deletions
35
docs/_layouts/base.html
Normal file
35
docs/_layouts/base.html
Normal file
|
@ -0,0 +1,35 @@
|
|||
---
|
||||
common-css:
|
||||
- "/assets/css/bootstrap.min.css"
|
||||
- "/assets/css/bootstrap-social.css"
|
||||
- "/assets/css/main.css"
|
||||
common-ext-css:
|
||||
- "//cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.1/css/all.min.css"
|
||||
common-googlefonts:
|
||||
- "Lora:400,700,400italic,700italic"
|
||||
- "Open+Sans:300italic,400italic,600italic,700italic,800italic,400,300,600,700,800"
|
||||
common-js:
|
||||
- "/assets/js/jquery-1.11.2.min.js"
|
||||
- "/assets/js/bootstrap.min.js"
|
||||
- "/assets/js/main.js"
|
||||
---
|
||||
|
||||
<!DOCTYPE html>
|
||||
<html lang="{{ page.language | default: site.language | default: 'en' }}">
|
||||
<!-- Beautiful Jekyll | MIT license | Copyright Dean Attali 2016 -->
|
||||
{% include head.html %}
|
||||
|
||||
<body>
|
||||
|
||||
{% include gtm_body.html %}
|
||||
|
||||
{% include nav.html %}
|
||||
|
||||
{{ content }}
|
||||
|
||||
{% include footer.html %}
|
||||
|
||||
{% include footer-scripts.html %}
|
||||
|
||||
</body>
|
||||
</html>
|
9
docs/_layouts/default.html
Normal file
9
docs/_layouts/default.html
Normal file
|
@ -0,0 +1,9 @@
|
|||
---
|
||||
layout: base
|
||||
---
|
||||
|
||||
<div class="intro-header"></div>
|
||||
|
||||
<div role="main" class="container">
|
||||
{{ content }}
|
||||
</div>
|
75
docs/_layouts/home.html
Normal file
75
docs/_layouts/home.html
Normal file
|
@ -0,0 +1,75 @@
|
|||
---
|
||||
layout: page
|
||||
---
|
||||
|
||||
{{ content }}
|
||||
|
||||
{% assign posts = paginator.posts | default: site.posts %}
|
||||
|
||||
<div class="posts-list">
|
||||
{% for post in posts %}
|
||||
<article class="post-preview">
|
||||
<a href="{{ post.url | relative_url }}">
|
||||
<h2 class="post-title">{{ post.title }}</h2>
|
||||
|
||||
{% if post.subtitle %}
|
||||
<h3 class="post-subtitle">
|
||||
{{ post.subtitle }}
|
||||
</h3>
|
||||
{% endif %}
|
||||
</a>
|
||||
|
||||
<p class="post-meta">
|
||||
{% assign date_format = site.date_format | default: "%B %-d, %Y" %}
|
||||
Posted on {{ post.date | date: date_format }}
|
||||
</p>
|
||||
|
||||
<div class="post-entry-container">
|
||||
{% if post.image %}
|
||||
<div class="post-image">
|
||||
<a href="{{ post.url | relative_url }}">
|
||||
<img src="{{ post.image | relative_url }}">
|
||||
</a>
|
||||
</div>
|
||||
{% endif %}
|
||||
<div class="post-entry">
|
||||
{% assign excerpt_length = site.excerpt_length | default: 50 %}
|
||||
{{ post.excerpt | strip_html | xml_escape | truncatewords: excerpt_length }}
|
||||
{% assign excerpt_word_count = post.excerpt | number_of_words %}
|
||||
{% if post.content != post.excerpt or excerpt_word_count > excerpt_length %}
|
||||
<a href="{{ post.url | relative_url }}" class="post-read-more">[Read More]</a>
|
||||
{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{% if post.tags.size > 0 %}
|
||||
<div class="blog-tags">
|
||||
Tags:
|
||||
{% if site.link-tags %}
|
||||
{% for tag in post.tags %}
|
||||
<a href="{{ '/tags' | relative_url }}#{{- tag -}}">{{- tag -}}</a>
|
||||
{% endfor %}
|
||||
{% else %}
|
||||
{{ post.tags | join: ", " }}
|
||||
{% endif %}
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
</article>
|
||||
{% endfor %}
|
||||
</div>
|
||||
|
||||
{% if paginator.total_pages > 1 %}
|
||||
<ul class="pager main-pager">
|
||||
{% if paginator.previous_page %}
|
||||
<li class="previous">
|
||||
<a href="{{ paginator.previous_page_path | relative_url }}">← Newer Posts</a>
|
||||
</li>
|
||||
{% endif %}
|
||||
{% if paginator.next_page %}
|
||||
<li class="next">
|
||||
<a href="{{ paginator.next_page_path | relative_url }}">Older Posts →</a>
|
||||
</li>
|
||||
{% endif %}
|
||||
</ul>
|
||||
{% endif %}
|
26
docs/_layouts/minimal.html
Normal file
26
docs/_layouts/minimal.html
Normal file
|
@ -0,0 +1,26 @@
|
|||
---
|
||||
common-css:
|
||||
- "/assets/css/bootstrap.min.css"
|
||||
- "/assets/css/main-minimal.css"
|
||||
common-js:
|
||||
- "/assets/js/jquery-1.11.2.min.js"
|
||||
- "/assets/js/bootstrap.min.js"
|
||||
---
|
||||
|
||||
<!DOCTYPE html>
|
||||
<html lang="{{ page.language | default: site.language | default: 'en' }}">
|
||||
|
||||
{% include head.html %}
|
||||
|
||||
<body>
|
||||
|
||||
<div role="main" class="container main-content">
|
||||
{{ content }}
|
||||
</div>
|
||||
|
||||
{% include footer-minimal.html %}
|
||||
|
||||
{% include footer-scripts.html %}
|
||||
|
||||
</body>
|
||||
</html>
|
14
docs/_layouts/page.html
Normal file
14
docs/_layouts/page.html
Normal file
|
@ -0,0 +1,14 @@
|
|||
---
|
||||
layout: base
|
||||
---
|
||||
|
||||
{% include header.html type="page" %}
|
||||
|
||||
<div class="container" role="main">
|
||||
<div class="row">
|
||||
<div class="col-lg-8 col-lg-offset-2 col-md-10 col-md-offset-1">
|
||||
{{ content }}
|
||||
{% include comments.html %}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
70
docs/_layouts/post.html
Normal file
70
docs/_layouts/post.html
Normal file
|
@ -0,0 +1,70 @@
|
|||
---
|
||||
layout: base
|
||||
---
|
||||
|
||||
{% include header.html type="post" %}
|
||||
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-lg-8 col-lg-offset-2 col-md-10 col-md-offset-1">
|
||||
|
||||
{% if page.gh-repo %}
|
||||
{% assign gh_split = page.gh-repo | split:'/' %}
|
||||
{% assign gh_user = gh_split[0] %}
|
||||
{% assign gh_repo = gh_split[1] %}
|
||||
|
||||
<div id="header-gh-btns">
|
||||
{% if page.gh-badge.size > 0 %}
|
||||
{% for badge in page.gh-badge %}
|
||||
{% case badge %}
|
||||
{% when 'star'%}
|
||||
<iframe src="https://ghbtns.com/github-btn.html?user={{ gh_user }}&repo={{ gh_repo }}&type=star&count=true" frameborder="0" scrolling="0" width="120px" height="20px"></iframe>
|
||||
{% when 'watch'%}
|
||||
<iframe src="https://ghbtns.com/github-btn.html?user={{ gh_user }}&repo={{ gh_repo }}&type=watch&v=2&count=true" frameborder="0" scrolling="0" width="120px" height="20px"></iframe>
|
||||
{% when 'fork'%}
|
||||
<iframe src="https://ghbtns.com/github-btn.html?user={{ gh_user }}&repo={{ gh_repo }}&type=fork&count=true" frameborder="0" scrolling="0" width="120px" height="20px"></iframe>
|
||||
{% when 'follow'%}
|
||||
<iframe src="https://ghbtns.com/github-btn.html?user={{ gh_user }}&type=follow&count=true" frameborder="0" scrolling="0" width="220px" height="20px"></iframe>
|
||||
{% endcase %}
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
<article role="main" class="blog-post">
|
||||
{{ content }}
|
||||
</article>
|
||||
|
||||
{% if page.tags.size > 0 %}
|
||||
<div class="blog-tags">
|
||||
Tags:
|
||||
{% if site.link-tags %}
|
||||
{% for tag in page.tags %}
|
||||
<a href="{{ '/tags' | relative_url }}#{{- tag -}}">{{- tag -}}</a>
|
||||
{% endfor %}
|
||||
{% else %}
|
||||
{{ page.tags | join: ", " }}
|
||||
{% endif %}
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
{% if page.social-share %}
|
||||
{% include social-share.html %}
|
||||
{% endif %}
|
||||
|
||||
<ul class="pager blog-pager">
|
||||
{% if page.previous.url %}
|
||||
<li class="previous">
|
||||
<a href="{{ page.previous.url | relative_url }}" data-toggle="tooltip" data-placement="top" title="{{page.previous.title}}">← Previous Post</a>
|
||||
</li>
|
||||
{% endif %}
|
||||
{% if page.next.url %}
|
||||
<li class="next">
|
||||
<a href="{{ page.next.url | relative_url }}" data-toggle="tooltip" data-placement="top" title="{{page.next.title}}">Next Post →</a>
|
||||
</li>
|
||||
{% endif %}
|
||||
</ul>
|
||||
{% include comments.html %}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
Loading…
Add table
Add a link
Reference in a new issue