2021-05-19 21:41:09 +08:00
|
|
|
---
|
|
|
|
layout: default
|
2021-05-19 22:38:45 +08:00
|
|
|
home-title: 无相之风战队
|
2021-05-19 21:48:32 +08:00
|
|
|
description: 明德 厚学 求是 创新
|
2021-05-26 15:59:35 +08:00
|
|
|
header-img: assets/img/new_home.png
|
2021-05-19 21:41:09 +08:00
|
|
|
---
|
|
|
|
|
|
|
|
{% include header.html %}
|
|
|
|
|
|
|
|
<div
|
2021-05-19 23:01:32 +08:00
|
|
|
class="g-banner home-banner {{ site.theme-color | prepend: 'banner-theme-' }}"
|
2021-05-19 21:41:09 +08:00
|
|
|
data-theme="{{ site.theme-color }}"
|
|
|
|
style="{% if page.header-img %}background: url({{ page.header-img | relative_url }}) no-repeat center center; background-size: cover;{% endif %}"
|
|
|
|
>
|
|
|
|
<h2>{{ page.home-title }}</h2>
|
|
|
|
<h3>{{ page.description }}</h3>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<main class="g-container home-content">
|
|
|
|
<div class="article-list">
|
|
|
|
{% for post in paginator.posts %}
|
|
|
|
<article class="article-item">
|
|
|
|
{% if post.cover %}
|
|
|
|
<div class="post-cover">
|
|
|
|
<a class="post-link" href="{{ post.url | relative_url }}" title="{{ post.title }}"></a>
|
|
|
|
<img src="{{ post.cover | relative_url }}" href="{{ post.url | relative_url }}" alt="">
|
|
|
|
</div>
|
|
|
|
{% endif %}
|
|
|
|
<section class="post-preview">
|
|
|
|
<a class="post-link" href="{{ post.url | relative_url }}" title="{{ post.title }}"></a>
|
|
|
|
<h2 class="post-title">{{ post.title }}</h2>
|
|
|
|
{% if post.subtitle %}
|
|
|
|
<h3 class="post-subtitle">{{ post.subtitle }}</h3>
|
|
|
|
{% endif %}
|
|
|
|
{% if post.subtitle.size==0 or post.subtitle==nil %}
|
|
|
|
<p class="post-excerpt">{{ post.excerpt | strip_html | strip_newlines | truncate: 126}}</p>
|
|
|
|
{% endif %}
|
|
|
|
</section>
|
|
|
|
<footer class="post-meta">
|
|
|
|
<div class="post-tags">
|
|
|
|
{% if post.tags.size > 0 %}
|
|
|
|
{% for tag in post.tags %}
|
|
|
|
<a href={{ "tags.html#" | append: tag | relative_url }} class="post-tag">{{ tag }}</a>
|
|
|
|
{% endfor %}
|
|
|
|
{% endif %}
|
|
|
|
</div>
|
2021-05-19 22:19:21 +08:00
|
|
|
<time class="post-date" datetime="{{ post.date | date:"%y-%m-%d" }}">{{ post.date | date: "%Y-%m-%d" }}</time>
|
2021-05-19 21:41:09 +08:00
|
|
|
</footer>
|
|
|
|
</article>
|
|
|
|
{% endfor %}
|
|
|
|
|
|
|
|
{% if paginator.total_pages > 1 %}
|
|
|
|
{% include pageNav.html %}
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<aside class="g-sidebar-wrapper">
|
|
|
|
<div class="g-sidebar">
|
|
|
|
<section class="author-card">
|
|
|
|
<div class="avatar">
|
|
|
|
<img src="{{ site.avatar | relative_url }}" alt="">
|
|
|
|
</div>
|
|
|
|
<div class="author-name" rel="author">{{ site.author }}</div>
|
|
|
|
<div class="bio">
|
|
|
|
<p>{{ site.bio }}</p>
|
|
|
|
</div>
|
|
|
|
{% if site.sns.size > 0 %}
|
|
|
|
<ul id="sns-links" class="sns-links">
|
|
|
|
{% for s in site.sns %}
|
|
|
|
<li>
|
|
|
|
<a href="{{ s[1] }}" target="_blank">
|
|
|
|
<i class="iconfont icon-{{ s[0] }}"></i>
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
{% endfor %}
|
|
|
|
</ul>
|
|
|
|
{% endif %}
|
|
|
|
</section>
|
|
|
|
|
|
|
|
{% if site.recommend-tags and site.tags.size>0 %}
|
|
|
|
<section class="tags-card">
|
|
|
|
{% for tag in site.tags %}
|
|
|
|
{% if forloop.index > site.recommend-condition-size %}
|
|
|
|
{% break %}
|
|
|
|
{% endif %}
|
|
|
|
<a href="{{ "tags.html#" | append: tag[0] | relative_url }}" class="tag">{{ tag[0]}}</a>
|
|
|
|
{% endfor %}
|
|
|
|
</section>
|
|
|
|
{% endif %}
|
|
|
|
</div>
|
|
|
|
|
|
|
|
{% if site.search %}
|
|
|
|
<div class="search-card">
|
2021-05-20 00:18:16 +08:00
|
|
|
<input id="search_input" type="text" placeholder="搜索..." autocomplete="off">
|
2021-05-19 21:41:09 +08:00
|
|
|
<i class="iconfont icon-search"></i>
|
|
|
|
<div class="search_result"></div>
|
|
|
|
</div>
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
</aside>
|
|
|
|
|
|
|
|
</main>
|
|
|
|
|
|
|
|
{% include footer.html %}
|