gingko 0.1.1 → 0.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9d34fcc0d0108410c974bca8b48096c5bd86099039018d10d33038b30526c49b
4
- data.tar.gz: 98fa6ebd1f995451e11e8a3b5ecd018f7714ffe891326dd87f1722046db0715d
3
+ metadata.gz: 4b0ec5770611c00612f09f3bc9aece2061edad185075371131c1b3dc5eb3ebf7
4
+ data.tar.gz: de2ae74b29ad9657804fab9284d5277b7cdb690e56888f061ad1f8b821c5a93b
5
5
  SHA512:
6
- metadata.gz: 2095a205c00e20ccf83b951dbe548355c1aa2f5628c9b73e3f644196af8f97fe6e8178832bd9e5bc8f763c9f4897206201ae7c0cba2399c01328ef73fd46ceee
7
- data.tar.gz: 0717add053b8c10c305618fde946fdb4cbceaba901dcf93172e98ff65cae94d5c78566c78e73edd41724993ea8b8c38c31ad18e9649420fa7e5ab153abf3bb89
6
+ metadata.gz: 874b37cd5cf529d9e92804ca442065b370cc0a47798ff8373ea493b54d6ad51969f9f41d0f676e3b833654bd0b2f5cd627b506cfa467e99634265dd1401fa65e
7
+ data.tar.gz: '08d974de67a82176b61014758af97fbb02ef056f16015fc680895550b5d6b686500bb13a66a1144a0e6e1db1ce085401efd1306da0dacfcc33c956a9b001c9d2'
@@ -0,0 +1,5 @@
1
+ <ul class="sidebar">
2
+ {% for category in site.categories %}
3
+ <div><a href="{{ site.baseurl }}/category/{{ category[0] }}">{{ category[0] | capitalize }} <span> ({{ category[1].size }}) </span></a></div>
4
+ {% endfor %}
5
+ </ul>
@@ -4,8 +4,6 @@
4
4
  </h1>
5
5
  <nav id = "nav">
6
6
  <a href="{{ site.url }}"> 主页 </a>
7
- <a href="{{ site.url }}/archives"> 列表 </a>
8
- <a href="{{ site.url }}/categories"> 分类 </a>
9
7
  <a href="{{ site.url }}/books">书单 </a>
10
8
  <a href="{{ site.url }}/about">关于我 </a>
11
9
  <a class="cta" href="{{ site.url }}/feed.xml">订阅</a>
@@ -0,0 +1,12 @@
1
+ ---
2
+ layout: default
3
+ ---
4
+ <div class="home">
5
+ <ul class="post-list">
6
+ {% for p in site.categories[page.category] %}
7
+ <li>
8
+ <h2><a href="{{ site.baseurl }}{{ p.url }}">{{ p.title }}</a></h2>
9
+ </li>
10
+ {% endfor %}
11
+ </ul>
12
+ </div>
@@ -1,31 +1,38 @@
1
1
  <!DOCTYPE html>
2
- <html lang="{{ site.lang | default: "en-US" }}">
3
- <head>
4
- <meta charset='utf-8'>
5
- <meta http-equiv="X-UA-Compatible" content="IE=edge">
6
- <meta name="viewport" content="width=640">
2
+ <html lang="{{ site.lang | default: "zh-CN" }}">
3
+ <head>
4
+ <meta charset='utf-8'>
5
+ <meta http-equiv="X-UA-Compatible" content="IE=edge">
6
+ <meta name="viewport" content="width=640">
7
7
 
8
- <link rel="stylesheet" href="{{ '/assets/css/style.css?v=' | append: site.github.build_revision | relative_url }}" media="screen">
9
- <link rel="stylesheet" href="{{ '/assets/css/mobile.css' | relative_url }}" media="handheld, only screen and (max-device-width:640px)">
10
- <link rel="stylesheet" href="{{ '/assets/css/non-screen.css' | relative_url }}" media="handheld, only screen and (max-device-width:640px)">
8
+ <link rel="stylesheet" href="{{ '/assets/css/main.css?v=' | append: site.github.build_revision | relative_url }}" media="screen">
9
+ <link rel="stylesheet" href="{{ '/assets/css/mobile.css' | relative_url }}" media="handheld, only screen and (max-device-width:640px)">
10
+ <link rel="stylesheet" href="{{ '/assets/css/non-screen.css' | relative_url }}" media="handheld, only screen and (max-device-width:640px)">
11
11
 
12
- <script src="{{ '/assets/js/modernizr.js' | relative_url }}"></script>
13
- <script src="https://code.jquery.com/jquery-1.12.4.min.js" integrity="sha256-ZosEbRLbNQzLpnKIkEdrPv7lOy9C27hHQ+Xp8a4MxAQ=" crossorigin="anonymous"></script>
14
- <script src="{{ '/assets/js/headsmart.min.js' | relative_url }}"></script>
15
- <script>
16
- $(document).ready(function () {
17
- $('#main_content').headsmart()
18
- })
19
- </script>
12
+ <script src="{{ '/assets/js/modernizr.js' | relative_url }}"></script>
13
+ <script src="{{ '/assets/js/headsmart.min.js' | relative_url }}"></script>
14
+ <script>
15
+ $(document).ready(function () {
16
+ $('#main_content').headsmart()
17
+ })
18
+ </script>
20
19
 
21
- </head>
20
+ </head>
22
21
 
23
- <body>
24
- {% include header.html %}
25
- <div class="shell">
26
- <section id="main_content">
27
- {{ content }}
28
- </section>
29
- </div>
30
- </body>
22
+ <body>
23
+ {% include header.html %}
24
+ <div class="layout">
25
+ <div class="main">
26
+ <section id="main_content">
27
+ {{ content }}
28
+ </section>
29
+ </div>
30
+ <div class="sidebar">
31
+ {% include categories.html %}
32
+ </div>
33
+ </div>
34
+ <div class="footer">
35
+ {% include footer.html %}
36
+ </div>
37
+ </body>
31
38
  </html>
@@ -1,33 +1,40 @@
1
1
  <!DOCTYPE html>
2
2
  <html lang="{{ site.lang | default: "en-US" }}">
3
- <head>
4
- <meta charset='utf-8'>
5
- <meta http-equiv="X-UA-Compatible" content="IE=edge">
6
- <meta name="viewport" content="width=640">
3
+ <head>
4
+ <meta charset='utf-8'>
5
+ <meta http-equiv="X-UA-Compatible" content="IE=edge">
6
+ <meta name="viewport" content="width=640">
7
7
 
8
- <link rel="stylesheet" href="{{ '/assets/css/style.css?v=' | append: site.github.build_revision | relative_url }}" media="screen">
9
- <link rel="stylesheet" href="{{ '/assets/css/mobile.css' | relative_url }}" media="handheld, only screen and (max-device-width:640px)">
10
- <link rel="stylesheet" href="{{ '/assets/css/non-screen.css' | relative_url }}" media="handheld, only screen and (max-device-width:640px)">
8
+ <link rel="stylesheet" href="{{ '/assets/css/main.css?v=' | append: site.github.build_revision | relative_url }}" media="screen">
9
+ <link rel="stylesheet" href="{{ '/assets/css/mobile.css' | relative_url }}" media="handheld, only screen and (max-device-width:640px)">
10
+ <link rel="stylesheet" href="{{ '/assets/css/non-screen.css' | relative_url }}" media="handheld, only screen and (max-device-width:640px)">
11
11
 
12
- <script src="{{ '/assets/js/modernizr.js' | relative_url }}"></script>
13
- <script src="https://code.jquery.com/jquery-1.12.4.min.js" integrity="sha256-ZosEbRLbNQzLpnKIkEdrPv7lOy9C27hHQ+Xp8a4MxAQ=" crossorigin="anonymous"></script>
14
- <script src="{{ '/assets/js/headsmart.min.js' | relative_url }}"></script>
15
- <script>
16
- $(document).ready(function () {
17
- $('#main_content').headsmart()
18
- })
19
- </script>
12
+ <script src="{{ '/assets/js/modernizr.js' | relative_url }}"></script>
13
+ <script src="{{ '/assets/js/headsmart.min.js' | relative_url }}"></script>
14
+ <script>
15
+ $(document).ready(function () {
16
+ $('#main_content').headsmart()
17
+ })
18
+ </script>
20
19
 
21
- </head>
20
+ </head>
22
21
 
23
- <body>
24
- {% include header.html %}
25
- <div class="shell">
26
- <section id="main_content">
27
- <span><h1 id="title">{{ page.title }}</h1></span>
28
- <span>{{ page.date | date: "%Y-%m-%d" }} by {{ site.author }}</span>
29
- {{ content }}
30
- </section>
31
- </div>
32
- </body>
22
+ <body>
23
+ {% include header.html %}
24
+ <div class="layout">
25
+ <div class="main">
26
+ <section id="main_content">
27
+ <span><h1 id="title">{{ page.title }}</h1></span>
28
+ <span>{{ page.date | date: "%Y-%m-%d" }} by {{ site.author }}</span>
29
+ {{ content }}
30
+ </section>
31
+ </div>
32
+ <div class="sidebar">
33
+ {% include categories.html %}
34
+ </div>
35
+ </div>
36
+ <div class="footer">
37
+ {% include footer.html %}
38
+ </div>
39
+ </body>
33
40
  </html>
@@ -112,12 +112,23 @@ header, footer, section {
112
112
 
113
113
  /* STYLES */
114
114
 
115
- div.shell {
116
- display: block;
117
- width: 800px;
115
+ div.layout {
116
+ width: 1000px;
118
117
  margin: 0 auto;
119
118
  }
120
119
 
120
+ div.main {
121
+ width: 750px;
122
+ display: inline-block;
123
+ margin-right: 45px;
124
+ }
125
+
126
+ div.sidebar {
127
+ display: inline-block;
128
+ width: 200px;
129
+ vertical-align: top;
130
+ }
131
+
121
132
  a#forkme_banner {
122
133
  position: absolute;
123
134
  top: 0;
@@ -267,19 +278,10 @@ span.banner-fix {
267
278
  top: 19px;
268
279
  }
269
280
 
270
- section#main_content {
271
- z-index: 2;
272
- padding: 20px 82px 0;
273
- min-height:185px;
274
- }
275
-
276
281
  /* footer */
277
282
 
278
283
  footer {
279
- background: transparent url(../images/footer-ramp.jpg) center -1px no-repeat;
280
- padding-top: 104px;
281
- //margin: -94px auto 40px;
282
- max-width: 800px;
284
+ padding-top: 50px;
283
285
  text-align: center;
284
286
  }
285
287
 
@@ -0,0 +1,4 @@
1
+ ---
2
+ ---
3
+
4
+ @import 'jekyll-theme-gingko';
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gingko
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - xautjzd
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-09-02 00:00:00.000000000 Z
11
+ date: 2020-09-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll
@@ -34,19 +34,21 @@ files:
34
34
  - LICENSE.txt
35
35
  - README.md
36
36
  - _includes/archives.html
37
+ - _includes/categories.html
37
38
  - _includes/disqus.html
38
39
  - _includes/footer.html
39
40
  - _includes/header.html
40
41
  - _includes/pagination.html
41
42
  - _includes/share.html
43
+ - _layouts/category_index.html
42
44
  - _layouts/default.html
43
45
  - _layouts/post.html
44
- - _sass/jekyll-theme-merlot.scss
46
+ - _sass/jekyll-theme-gingko.scss
45
47
  - _sass/rouge-base16-solarized.scss
46
48
  - _sass/screen.scss
49
+ - assets/css/main.scss
47
50
  - assets/css/mobile.css
48
51
  - assets/css/non-screen.css
49
- - assets/css/style.scss
50
52
  - assets/fonts/opensans-bold-webfont.eot
51
53
  - assets/fonts/opensans-bold-webfont.svg
52
54
  - assets/fonts/opensans-bold-webfont.ttf
@@ -1,4 +0,0 @@
1
- ---
2
- ---
3
-
4
- @import 'jekyll-theme-merlot';