Repository navigation
Expand file tree
/
Copy pathside-panel.html
More file actions
executable file
·43 lines (37 loc) · 2 KB
/
Copy pathside-panel.html
File metadata and controls
executable file
·43 lines (37 loc) · 2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
<header class="panel-cover {% if page.layout == 'post' or page.layout == 'page' %}panel-cover--collapsed{% endif %}" style="background-image: url('/assets/images/background-cover.jpg')">
<div class="panel-main">
<div class="panel-main__inner panel-inverted">
<div class="panel-main__content">
<a href="/#blog" title="前往 {{ site.title }} 的主页" class="blog-button"><img src="/assets/images/avatar.jpg" width="80" alt="{{ site.title }} logo" class="panel-cover__logo logo" /></a>
<h1 class="panel-cover__title panel-title"><a href="/#blog" title="link to homepage for {{ site.title }}" class="blog-button">{{ site.title }}</a></h1>
{% if site.subtitle %}
<span class="panel-cover__subtitle panel-subtitle">{{site.subtitle}}</span>
{% endif %}
<hr class="panel-cover__divider" />
<p class="panel-cover__description">{{ site.description }}</p>
<hr class="panel-cover__divider panel-cover__divider--secondary" />
{% if site.welcome_message %}
<p class="panel-cover__description">{{ site.welcome_message }}</p>
{% endif %}
<div class="navigation-wrapper">
<div>
<nav class="cover-navigation cover-navigation--primary">
<ul class="navigation">
<li class="navigation__item"><a href="/#blog" title="{{site.blog_button.description}}" class="blog-button">{{site.blog_button.title}}</a></li>
{% for item in site.nav %}
<li class="navigation__item"><a href="{{item.url}}" target="_blank" title="{{item.description}}">{{item.title}}</a></li>
{% endfor %}
</ul>
</nav>
</div>
<div>{% include social.html %}</div>
</div>
</div>
</div>
{% if site.cover_color %}
<div class="panel-cover--overlay cover-{{site.cover_color}}"></div>
{% else %}
<div class="panel-cover--overlay cover-disabled"></div>
{% endif %}
</div>
</header>