This commit is contained in:
2019-05-30 18:52:14 +08:00
commit aa360a22bf
341 changed files with 30369 additions and 0 deletions

View File

@ -0,0 +1,27 @@
{% set paths = page.path.split('/') %}
{% set count = paths.length %}
{% if count > 2 %}
{% set current = 0 %}
{% set link = '' %}
<ul class="breadcrumb">
{% for path in paths %}
{% set current += 1 %}
{% if path != 'index.html' %}
{% if current == count - 1 and paths[count - 1] == 'index.html' %}
<li>{{ path | upper }}</li>
{% else %}
{% if link == '' %}
{% set link = '/' + path %}
{% else %}
{% set link += '/' + path %}
{% endif %}
{% if path.indexOf('.html') == -1 %}
<li><a href="{{ url_for(link) }}/">{{ path | upper }}</a></li>
{% else %}
<li>{{ path.replace('.html', '') | upper }}</li>
{% endif %}
{% endif %}
{% endif %}
{% endfor %}
</ul>
{% endif %}

View File

@ -0,0 +1,15 @@
<header class="post-header">
<{% if theme.seo %}h2{% else %}h1{% endif %} class="post-title" itemprop="name headline">
{{- page.title -}}
{% include '../post-edit.swig' %}
</{% if theme.seo %}h2{% else %}h1{% endif %}>
<div class="post-meta">
{% if page.description %}
<div class="post-description">{{ page.description }}</div>
{% endif %}
{% include 'breadcrumb.swig' %}
</div>
</header>