Templates for homepage and markdown posts.
Signed-off-by: HE, Tao <sighingnow@gmail.com>
This commit is contained in:
42
_includes/toc-date.html
Normal file
42
_includes/toc-date.html
Normal 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>
|
Reference in New Issue
Block a user