jekyll-theme-kagami 0.1.9 → 0.1.10
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +13 -0
- data/_includes/head.html +4 -3
- data/_includes/header.html +1 -9
- data/_includes/site-nav.html +6 -0
- data/_layouts/page.html +2 -1
- data/_layouts/post-list.html +2 -0
- data/_layouts/post.html +2 -13
- data/_sass/kagami/_layout.scss +18 -1
- data/_sass/kagami/_typography.scss +14 -0
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c165ac235a2f81854548e79aff7ca920cabc93c7
|
4
|
+
data.tar.gz: 365c5991d6f4bdfeda69de8e6cd333f35fe76009
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5ab2936ddf2957ee85b4a8836844246ef97c21dd9bb4d39acb05d8cb034d450b069ddfb42ca5d02b80f8b6a2a0314a8af6e6f68ba383b03811683ddc67effd22
|
7
|
+
data.tar.gz: 2d3b0bba0373b86bd776ad9aac05085419aff48ea916c2bcaf7399acde4c54e40914835bfdff6d30dca0f4734bf0ca0db3b24840dbaa7d14bfb9fbfa981e4e9e
|
data/README.md
CHANGED
@@ -29,6 +29,19 @@ Or install it yourself as:
|
|
29
29
|
|
30
30
|
$ gem install jekyll-theme-kagami
|
31
31
|
|
32
|
+
### GitHub Pages
|
33
|
+
|
34
|
+
Jekyll build is integrated with GitHub Pages with limited function. This section is intended for those who
|
35
|
+
want to use the theme with GitHub Pages hosted sites.
|
36
|
+
|
37
|
+
1. Download latest gem file from https://rubygems.org/gems/jekyll-theme-kagami
|
38
|
+
2. Run `gem unpack [path-to-downloaded-gem-file] --target=.` on jekyll site project folder
|
39
|
+
3. Delete the line `theme: ...` in `_config.yml`
|
40
|
+
|
41
|
+
Zip archive downloaded from release page may not work because GitHub does not pack necessary files from submodules.
|
42
|
+
|
43
|
+
Instruction 1 and 2 can also work when you decide to upgrade your installation.
|
44
|
+
|
32
45
|
## Usage
|
33
46
|
|
34
47
|
### Social account links
|
data/_includes/head.html
CHANGED
@@ -6,9 +6,10 @@
|
|
6
6
|
<title>{% if page.title %}{{ page.title | append: " - " | append: site.title | escape }}{% else %}{{ site.title | escape }}{% endif %}</title>
|
7
7
|
<meta name="description" content="{{ page.excerpt | default: site.description | strip_html | normalize_whitespace | truncate: 160 | escape }}">
|
8
8
|
|
9
|
-
|
10
|
-
<link rel="stylesheet" href="{{ "/assets/styles/
|
11
|
-
<link rel="stylesheet" href="{{
|
9
|
+
{% assign v = site.time | date: "%Y%m%d%H%M%S" %}
|
10
|
+
<link rel="stylesheet" href="{{ "/assets/styles/core.css?v=" | append: v | relative_url }}">
|
11
|
+
<link rel="stylesheet" href="{{ "/assets/styles/fontello.css?v=" | append: v | relative_url }}">
|
12
|
+
<link rel="stylesheet" href="{{ page.color_scheme | default: site.color_scheme | default: "default" | prepend: "/assets/styles/highlighting/" | append: ".css?v=" | append: v | relative_url }}">
|
12
13
|
|
13
14
|
<link rel="canonical" href="{{ page.url | replace:'index.html','' | absolute_url }}">
|
14
15
|
<link rel="alternate" type="application/rss+xml" title="{{ site.title | escape }}" href="{{ "/feed.xml" | relative_url }}">
|
data/_includes/header.html
CHANGED
@@ -1,14 +1,6 @@
|
|
1
1
|
<header class="post-header">
|
2
2
|
<a class="site-title" href="{{ "/" | relative_url }}">{{ site.title | escape }}</a>
|
3
|
-
<h1 class="post-title">{{ page.title }}</h1>
|
4
|
-
<nav class="site-nav">
|
5
|
-
<div class="page-list">
|
6
|
-
{% assign sorted_pages = site.pages | where_exp: "page", "page.navlevel == 'header'" | sort: "position" %}
|
7
|
-
{% for my_page in sorted_pages %}
|
8
|
-
<a class="page-link" href="{{ my_page.url | relative_url }}" >{{ my_page.navtitle | default: my_page.title | escape }}</a>
|
9
|
-
{% endfor %}
|
10
|
-
</div>
|
11
|
-
</nav>
|
3
|
+
<h1 class="post-title" itemprop="name headline">{{ page.title | escape | replace: "", "<wbr>" }}</h1>
|
12
4
|
</header>
|
13
5
|
|
14
6
|
{% if page.cover_url %}
|
@@ -0,0 +1,6 @@
|
|
1
|
+
<nav class="site-nav">
|
2
|
+
{% assign sorted_pages = site.pages | where_exp: "page", "page.navlevel == 'header'" | sort: "position" %}
|
3
|
+
{% for my_page in sorted_pages %}
|
4
|
+
<a class="page-link" href="{{ my_page.url | relative_url }}" >{{ my_page.navtitle | default: my_page.title | escape }}</a>
|
5
|
+
{% endfor %}
|
6
|
+
</nav>
|
data/_layouts/page.html
CHANGED
@@ -2,8 +2,9 @@
|
|
2
2
|
layout: default
|
3
3
|
---
|
4
4
|
|
5
|
-
{% include
|
5
|
+
{% include site-nav.html %}
|
6
6
|
|
7
7
|
<article class="page" lang="{{ page.lang | default: site.lang | default: "en" }}" itemscope itemtype="http://schema.org/BlogPosting">
|
8
|
+
{% include header.html %}
|
8
9
|
{{ content }}
|
9
10
|
</article>
|
data/_layouts/post-list.html
CHANGED
data/_layouts/post.html
CHANGED
@@ -1,21 +1,10 @@
|
|
1
1
|
---
|
2
2
|
layout: default
|
3
3
|
---
|
4
|
-
<article class="post" lang="{{ page.lang | default: site.lang | default: "en" }}" itemscope itemtype="http://schema.org/BlogPosting" >
|
5
4
|
|
6
|
-
|
7
|
-
<a class="site-title" href="{{ "/" | relative_url }}">{{ site.title | escape }}</a>
|
8
|
-
<h1 class="post-title" itemprop="name headline">{{ page.title | escape | replace: "", "<wbr>" }}</h1>
|
9
|
-
</header>
|
5
|
+
<article class="post" lang="{{ page.lang | default: site.lang | default: "en" }}" itemscope itemtype="http://schema.org/BlogPosting" >
|
10
6
|
|
11
|
-
{%
|
12
|
-
<div class="post-cover" aria-label="Cover">
|
13
|
-
<div class="post-cover-wrapper">
|
14
|
-
<img src="{{ page.cover_url }}" alt="" />
|
15
|
-
</div>
|
16
|
-
<div class="cover-meta">{{ page.cover_meta | markdownify }}</div>
|
17
|
-
</div>
|
18
|
-
{% endif %}
|
7
|
+
{% include header.html %}
|
19
8
|
|
20
9
|
<div class="post-content" itemprop="articleBody">
|
21
10
|
{{ content }}
|
data/_sass/kagami/_layout.scss
CHANGED
@@ -119,8 +119,25 @@ article {
|
|
119
119
|
margin-bottom: $post-footer-spacing;
|
120
120
|
}
|
121
121
|
|
122
|
+
.site-nav {
|
123
|
+
display: flex;
|
124
|
+
flex-flow: row wrap;
|
125
|
+
align-items: top;
|
126
|
+
justify-content: center;
|
127
|
+
margin-left: -$post-margin-width;
|
128
|
+
margin-right: -$post-margin-width;
|
129
|
+
}
|
130
|
+
|
131
|
+
@media screen and (min-width: $content-width) {
|
132
|
+
.site-nav {
|
133
|
+
height: 0;
|
134
|
+
justify-content: flex-end;
|
135
|
+
}
|
136
|
+
}
|
137
|
+
|
122
138
|
.page-link {
|
123
|
-
|
139
|
+
display: block;
|
140
|
+
padding: 0.5em;
|
124
141
|
}
|
125
142
|
|
126
143
|
.site-footer {
|
@@ -8,6 +8,7 @@ body {
|
|
8
8
|
font-size: font-size();
|
9
9
|
font-weight: 300;
|
10
10
|
font-kerning: normal;
|
11
|
+
border-top: 2px solid currentColor;
|
11
12
|
}
|
12
13
|
|
13
14
|
a, a:hover, a:visited {
|
@@ -126,6 +127,19 @@ article {
|
|
126
127
|
|
127
128
|
.site-nav {
|
128
129
|
font-size: 0.875em;
|
130
|
+
font-variant-caps: all-petite-caps;
|
131
|
+
letter-spacing: 0.12em;
|
132
|
+
}
|
133
|
+
|
134
|
+
.page-link {
|
135
|
+
transition: color 0.2s ease-in;
|
136
|
+
}
|
137
|
+
|
138
|
+
.site-nav:hover {
|
139
|
+
color: lighten($content-color, 50%);
|
140
|
+
.page-link:hover {
|
141
|
+
color: $content-color;
|
142
|
+
}
|
129
143
|
}
|
130
144
|
|
131
145
|
.post-title {
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jekyll-theme-kagami
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.10
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- kamikat
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-05-
|
11
|
+
date: 2017-05-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|
@@ -67,6 +67,7 @@ files:
|
|
67
67
|
- _includes/head.html
|
68
68
|
- _includes/header.html
|
69
69
|
- _includes/retina-image.html
|
70
|
+
- _includes/site-nav.html
|
70
71
|
- _layouts/blank.html
|
71
72
|
- _layouts/default.html
|
72
73
|
- _layouts/home.html
|
@@ -101,7 +102,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
101
102
|
version: '0'
|
102
103
|
requirements: []
|
103
104
|
rubyforge_project:
|
104
|
-
rubygems_version: 2.5.
|
105
|
+
rubygems_version: 2.5.1
|
105
106
|
signing_key:
|
106
107
|
specification_version: 4
|
107
108
|
summary: A peaceful theme for Jekyll and GitHub Pages.
|