Templates for homepage and markdown posts.

Signed-off-by: HE, Tao <sighingnow@gmail.com>
This commit is contained in:
HE, Tao
2019-04-28 19:15:43 +08:00
parent e18e0cee7e
commit 4c29410efa
16 changed files with 479 additions and 0 deletions

42
_includes/toc-date.html Normal file
View File

@@ -0,0 +1,42 @@
<div class="book-summary">
<div id="book-search-input" role="search">
<input type="text" placeholder="Type to search" />
</div>
<nav role="navigation">
<ul class="summary">
{% if page.url == "/index.html" or page.url == "/" %}
<li class="chapter active" data-level="1.1" data-path="{{site.url}}">
{% else %}
<li class="chapter" data-level="1.1" data-path="{{site.url}}">
{% endif %}
<a href="{{site.url}}">
{{ site.title | escape }}
</a>
</li>
<li class="divider"></li>
{% assign reversed_posts = site.posts | reverse %}
{% for post in reversed_posts %}
{% if page.url == post.url %}
<li class="chapter active" data-level="1.2" data-path="{{post.url}}">
{% else %}
<li class="chapter" data-level="1.1" data-path="{{post.url}}">
{% endif %}
<a href="{{post.url}}">
{{ post.title | escape }}
</a>
</li>
{% endfor %}
<li class="divider"></li>
<li>
<a href="https://github.com/sighingnow/jekyll-gitbook" target="blank" class="gitbook-link">
Fork it Now!
</a>
</li>
</ul>
</nav>
</div>