Skip to content

Commit ae9141d

Browse files
committed
nav items
footer items
1 parent bf2acbd commit ae9141d

File tree

8 files changed

+51
-35
lines changed

8 files changed

+51
-35
lines changed

_includes/footer.html

+5-17
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,10 @@
11
<footer class="footnote footnote-tiffany">
22
<div class="container">
3-
<span class="word-keep">
4-
<a href="mailto:{{ site.email }}" target="_blank"><span class="octicon octicon-mail"></span>&nbsp;Mail</a>
5-
</span>
6-
7-
<span class="word-keep">
8-
<span class="point"> · </span>
9-
<a href="{{ '/feed.xml' | prepend: site.baseurl | prepend: site.url }}" target="_blank"><span class="octicon octicon-rss"></span>&nbsp;RSS</a>
10-
</span>
11-
12-
<span class="word-keep">
13-
<span class="point"> · </span>
14-
<a href="https://github.com/{{ site.github_username }}" target="_blank"><span class="octicon octicon-mark-github"></span>&nbsp;Github</a>
15-
</span>
16-
17-
<span class="word-keep">
18-
<span class="point"> · </span>
3+
<a class="foot-item" href="mailto:{{ site.email }}" target="_blank"><span class="octicon octicon-mail"></span></a>
4+
<a class="foot-item" href="https://github.com/{{ site.github_username }}" target="_blank"><span class="octicon octicon-mark-github"></span></a>
5+
<a class="foot-item" href="{{ '/feed.xml' | prepend: site.baseurl | prepend: site.url }}" target="_blank"><span class="octicon octicon-rss"></span></a>
6+
<a class="foot-item" href="{{ '/link/' | prepend: site.baseurl | prepend: site.url }}"><span class="octicon octicon-link-external"></span></a>
7+
&nbsp;
198
<a href="http://blog.rainynight.top/"><span>&copy; RainyNight</span></a>
20-
</span>
219
</div>
2210
</footer>

_includes/head.html

+15-13
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,23 @@
11
<head>
22
<title>{% if page.title %}{{ page.title }}{% else %}{{ site.title }}{% endif %}</title>
3-
<meta charset="utf-8">
4-
<meta http-equiv="X-UA-Compatible" content="IE=edge">
5-
<meta name="viewport" content="width=device-width, initial-scale=1">
6-
<meta name="keywords" content="{{ page.title }}, {% for category in page.categories %}{{ category }},{% endfor %} {% for tag in page.tags %}{{ tag }},{% endfor %}">
7-
<meta name="description" content="{{ page.title }}, {% for category in page.categories %}{{ category }},{% endfor %} {% for tag in page.tags %}{{ tag }},{% endfor %} {% if page.excerpt %}{{ page.excerpt | strip_html | strip_newlines | truncate: 160 }}{% else %}{{ site.description }}{% endif %}">
3+
<meta charset="utf-8" />
4+
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
5+
<meta name="viewport" content="width=device-width, initial-scale=1" />
6+
<meta name="keywords" content="{{ page.title }}, {% for category in page.categories %}{{ category }},{% endfor %} {% for tag in page.tags %}{{ tag }},{% endfor %}" />
7+
<meta name="description" content="{{ page.title }}, {% for category in page.categories %}{{ category }},{% endfor %} {% for tag in page.tags %}{{ tag }},{% endfor %} {% if page.excerpt %}{{ page.excerpt | strip_html | strip_newlines | truncate: 160 }}{% else %}{{ site.description }}{% endif %}" />
88

9-
<link rel="shortcut icon" href="{{ '/static/favicon.ico' | prepend: site.baseurl | prepend: site.url}}">
10-
<link rel="canonical" href="{{ page.url | replace:'index.html','' | prepend: site.baseurl | prepend: site.url }}">
11-
<link rel="alternate" type="application/rss+xml" title="{{ site.title }}" href="{{ '/feed.xml' | prepend: site.baseurl | prepend: site.url }}" />
9+
<link rel="shortcut icon" href="{{ '/static/favicon.ico' | prepend: site.baseurl | prepend: site.url}}" />
10+
<link rel="canonical" href="{{ page.url | replace:'index.html','' | prepend: site.baseurl | prepend: site.url }}" />
11+
<link rel="alternate" type="application/rss+xml" title="{{ site.title }}" href="{{ '/feed.xml' | prepend: site.baseurl | prepend: site.url }}" />
12+
13+
<link rel="stylesheet" type="text/css" href="http://apps.bdimg.com/libs/bootstrap/3.3.0/css/bootstrap.min.css" />
14+
<link rel="stylesheet" type="text/css" href="{{ '/static/octicons/octicons.css' | prepend: site.baseurl | prepend: site.url}}" />
1215

13-
<link rel="stylesheet" type="text/css" href="http://apps.bdimg.com/libs/bootstrap/3.3.0/css/bootstrap.min.css">
1416
{% if page.date %}
15-
<link rel="stylesheet" type="text/css" href="http://apps.bdimg.com/libs/highlight.js/8.6/styles/{{ site.code_theme }}.min.css">
17+
<link rel="stylesheet" type="text/css" href="http://apps.bdimg.com/libs/highlight.js/8.6/styles/{{ site.code_theme }}.min.css" />
1618
{% endif %}
17-
<link rel="stylesheet" type="text/css" href="{{ '/static/octicons/octicons.css' | prepend: site.baseurl | prepend: site.url}}">
18-
<link rel="stylesheet" type="text/css" href="{{ '/static/css/style.css' | prepend: site.baseurl | prepend: site.url}}">
19-
{% for style in page.styles %}<link rel="stylesheet" type="text/css" href="{{ '/static/css/' | append: style | prepend: site.baseurl | prepend: site.url}}">
19+
20+
<link rel="stylesheet" type="text/css" href="{{ '/static/css/style.css' | prepend: site.baseurl | prepend: site.url}}" />
21+
{% for style in page.styles %}<link rel="stylesheet" type="text/css" href="{{ '/static/css/' | append: style | prepend: site.baseurl | prepend: site.url}}" />
2022
{%endfor%}
2123
</head>

_includes/header.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
<li>{% endif %}
1818
<a href="{{ site.baseurl | prepend: site.url }}/" class="word-keep"><span class="octicon octicon-book"></span></span>&nbsp;&nbsp;Blog</a>
1919
</li>
20-
{% for p in site.pages %}{% if p.title %}
20+
{% for p in site.pages %}{% if p.isNavItem %}
2121
{% if p.url == page.url %}
2222
<li class="active">{% else %}
2323
<li>{% endif %}

pages/1archive.html

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
permalink: /archive/
55
icon: octicon-repo
66
styles: archive.css
7+
isNavItem: true
78
---
89
<section id="cd-timeline" class="cd-container">
910
{% for post in site.posts %}

pages/2category.html

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
icon: octicon-list-unordered
66
styles: [article-list.css, category.css]
77
scripts: [category.js]
8+
isNavItem: true
89
---
910
<div class="row index">
1011

pages/3tags.html

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
icon: octicon-tag
66
styles: [article-list.css, category.css, tagCloud.css, tags.css]
77
scripts: [tagCloud.js, tags.js]
8+
isNavItem: true
89
---
910

1011
<div class="tags-header">

sitemap.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ layout: null
1313
<changefreq>weekly</changefreq>
1414
</url>
1515
{% endfor %}
16-
{% for post in site.pages %}{% if post.title %}
16+
{% for post in site.pages %}{% if post.isNavItem %}
1717
<url>
1818
<loc>{{ post.url | prepend: site.baseurl | prepend: site.url }}</loc>
1919
<lastmod>{{ site.time | date_to_xmlschema }}</lastmod>

static/css/style.css

+26-3
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,32 @@ layout: null
4343
background-color: #fff;
4444
}
4545

46+
.footnote .foot-item{
47+
display: inline-block;
48+
width: 28px;
49+
height: 28px;
50+
line-height: 28px;
51+
font-size: 18px;
52+
padding-top: 1px;
53+
text-align: center;
54+
background: rgba(255,255,255,0.1);
55+
border-radius: 3px 3px;
56+
-webkit-transition: background .4s ease-in-out;
57+
-moz-transition: background .4s ease-in-out;
58+
-ms-transition: background .4s ease-in-out;
59+
-o-transition: background .4s ease-in-out;
60+
transition: background .4s ease-in-out;
61+
}
62+
63+
.footnote .foot-item:hover{
64+
background-color: #2ca6cb;
65+
-webkit-transition: background .4s ease-in-out;
66+
-moz-transition: background .4s ease-in-out;
67+
-ms-transition: background .4s ease-in-out;
68+
-o-transition: background .4s ease-in-out;
69+
transition: background .4s ease-in-out;
70+
}
71+
4672
.st-ui-stamp{
4773
display: none!important;
4874
}
@@ -109,9 +135,6 @@ body a:active {text-decoration: none} /* 选定的链接 */
109135
text-align: center;
110136
}
111137

112-
.footnote .point{
113-
margin: 0 8px;
114-
}
115138

116139
/**
117140
* back to top

0 commit comments

Comments
 (0)