jekyll-theme-fuji 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 2a65375c4b9ad547e0c5dc420f825775fdd691b7441ba7c3cc70b11795465460
4
+ data.tar.gz: 27f65f6fa6944324366031ce3d09c4bc1fa58198735ff798765d276f77c37e19
5
+ SHA512:
6
+ metadata.gz: eba403fb8cc626214937aeb765406add50f0f245e0e38a615237c7f6552ceb028d2c852135196406818364a4cbfa7f39d702f6da4f72a655e126671085854ae7
7
+ data.tar.gz: f34021336d2fb20d819575737694a827c989dd4de373892bf2df5894a705ad5016b42bb671bd2c7079d896956aa491f569524c3e41e0b386861b17d81349fa64
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2018 Fuji Nakahara
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,39 @@
1
+ # jekyll-theme-fuji
2
+
3
+ This is Fuji Nakahara's Jekyll theme.
4
+
5
+ ## Installation
6
+
7
+ Add this line to your Jekyll site's `Gemfile`:
8
+
9
+ ```ruby
10
+ gem 'jekyll-theme-fuji', github: 'fuji-nakahara/jekyll-theme-fuji'
11
+ ```
12
+
13
+ And add this line to your Jekyll site's `_config.yml`:
14
+
15
+ ```yaml
16
+ theme: jekyll-theme-fuji
17
+ ```
18
+
19
+ And then execute:
20
+
21
+ $ bundle
22
+
23
+ ## Contributing
24
+
25
+ Bug reports and pull requests are welcome on GitHub at https://github.com/fuji-nakahara/jekyll-theme-fuji. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
26
+
27
+ ## Development
28
+
29
+ To set up your environment to develop this theme, run `bundle install`.
30
+
31
+ Your theme is setup just like a normal Jekyll site! To test your theme, run `bundle exec jekyll serve` and open your browser at `http://localhost:4000`. This starts a Jekyll server using your theme. Add pages, documents, data, etc. like normal to test your theme's contents. As you make modifications to your theme and to your content, your site will regenerate and you should see the changes in the browser after a refresh, just like normal.
32
+
33
+ When your theme is released, only the files in `_layouts`, `_includes`, `_sass` and `assets` tracked with Git will be bundled.
34
+ To add a custom directory to your theme-gem, please edit the regexp in `jekyll-theme-fuji.gemspec` accordingly.
35
+
36
+ ## License
37
+
38
+ The theme is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
39
+
@@ -0,0 +1,4 @@
1
+ <footer class="text-center mb-3">
2
+ {%- assign current_year = site.time | date: '%Y' -%}
3
+ <small>&copy; {{ site.copyright_year | default: current_year }} <a href="{{ site.homepage | default: default_path }}" class="text-dark">{{ site.author | default: site.title }}</a></small>
4
+ </footer>
@@ -0,0 +1,7 @@
1
+ <script async src="https://www.googletagmanager.com/gtag/js?id={{ site.google_analytics }}"></script>
2
+ <script>
3
+ window.dataLayer = window.dataLayer || [];
4
+ function gtag() { dataLayer.push(arguments); }
5
+ gtag('js', new Date());
6
+ gtag('config', '{{ site.google_analytics }}');
7
+ </script>
@@ -0,0 +1,16 @@
1
+ <head>
2
+ <meta charset="utf-8">
3
+ <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
4
+
5
+ {% seo %}
6
+
7
+ {% feed_meta %}
8
+
9
+ <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css" integrity="sha384-MCw98/SFnGE8fJT3GXwEOngsV7Zt27NXFoaoApmYm81iuXoPkFOJwJ8ERdknLPMO" crossorigin="anonymous">
10
+ <link href="https://fonts.googleapis.com/css?family=Noto+Serif+JP" rel="stylesheet">
11
+ <link rel="stylesheet" href="{{ '/assets/main.css' | relative_url }}">
12
+
13
+ {%- if jekyll.environment == 'production' and site.google_analytics -%}
14
+ {%- include google-analytics.html -%}
15
+ {%- endif -%}
16
+ </head>
@@ -0,0 +1,6 @@
1
+ <!-- jQuery first, then Popper.js, then Bootstrap JS -->
2
+ <script src="https://code.jquery.com/jquery-3.3.1.slim.min.js" integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo" crossorigin="anonymous"></script>
3
+ <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.3/umd/popper.min.js" integrity="sha384-ZMP7rVo3mIykV+2+9J3UJ46jBk0WLaUAdn689aCwoqbBJiSnjAK/l8WvCWPIPm49" crossorigin="anonymous"></script>
4
+ <script src="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/js/bootstrap.min.js" integrity="sha384-ChfqqxuZUCnJSK3+MXmPNIyE6ZbWh2IMqE241rYiqJxyMiZ6OW/JmZQ5stwEULTy" crossorigin="anonymous"></script>
5
+ <!-- Twitter widget -->
6
+ <script src="https://platform.twitter.com/widgets.js" async></script>
@@ -0,0 +1,34 @@
1
+ <nav class="navbar navbar-expand-md navbar-dark bg-dark sticky-top mb-3">
2
+ <div class="container">
3
+ <a class="navbar-brand" href="{{ '/' | relative_url }}">{{ site.title }}</a>
4
+ <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbar-collapse" aria-controls="navbar-collapse"
5
+ aria-expanded="false" aria-label="Toggle navigation">
6
+ <span class="navbar-toggler-icon"></span>
7
+ </button>
8
+
9
+ <div class="collapse navbar-collapse" id="navbar-collapse">
10
+ {%- assign default_paths = site.pages | map: "path" -%}
11
+ {%- assign page_paths = site.header_pages | default: default_paths -%}
12
+ {%- if page_paths -%}
13
+ <ul class="navbar-nav mr-auto">
14
+ {%- for path in page_paths -%}
15
+ {%- assign my_page = site.pages | where: "path", path | first -%}
16
+ {%- if my_page.title -%}
17
+ <li class="nav-item">
18
+ <a class="nav-link" href="{{ my_page.url | relative_url }}">{{ my_page.title }}</a>
19
+ </li>
20
+ {%- endif -%}
21
+ {%- endfor -%}
22
+ </ul>
23
+ {%- endif -%}
24
+ {%- if site.author -%}
25
+ <ul class="navbar-nav">
26
+ <li class="nav-item">
27
+ {%- assign default_path = '/' | relative_url -%}
28
+ <a href="{{ site.homepage | default: default_path }}" class="nav-link">{{ site.author }}</a>
29
+ </li>
30
+ </ul>
31
+ {%- endif -%}
32
+ </div>
33
+ </div>
34
+ </nav>
@@ -0,0 +1,14 @@
1
+ <nav class="mb-3">
2
+ <ul class="pagination justify-content-center">
3
+ {%- if page.previous -%}
4
+ <li class="page-item">
5
+ <a href="{{ page.previous.url | relative_url }}" class="page-link"><span aria-hidden="true">&laquo;</span>{{ page.previous.title }}</a>
6
+ </li>
7
+ {%- endif -%}
8
+ {%- if page.next -%}
9
+ <li class="page-item">
10
+ <a href="{{ page.next.url | relative_url }}" class="page-link">{{ page.next.title }}<span aria-hidden="true">&raquo;</span></a>
11
+ </li>
12
+ {%- endif -%}
13
+ </ul>
14
+ </nav>
@@ -0,0 +1,22 @@
1
+ <!doctype html>
2
+ <html lang="{{ page.lang | default: site.lang | default: 'ja' }}">
3
+
4
+ {%- include head.html -%}
5
+
6
+ <body>
7
+
8
+ {%- include navbar.html -%}
9
+
10
+ <div class="container">
11
+
12
+ {{ content }}
13
+
14
+ {%- include footer.html -%}
15
+
16
+ </div>
17
+
18
+ {%- include javascripts.html -%}
19
+
20
+ </body>
21
+
22
+ </html>
@@ -0,0 +1,11 @@
1
+ <!doctype html>
2
+ <html lang="{{ page.lang | default: site.lang | default: 'ja' }}">
3
+ <head>
4
+ <meta charset="utf-8">
5
+ <link rel="stylesheet" href="{{ '/assets/ebook.css' | relative_url }}" type="text/css">
6
+ </head>
7
+ <body>
8
+ <h1>{{ page.title }}</h1>
9
+ {{ content }}
10
+ </body>
11
+ </html>
@@ -0,0 +1,88 @@
1
+ ---
2
+ layout: default
3
+ ---
4
+
5
+ <header class="jumbotron">
6
+ {%- if site.repository -%}
7
+ <div id="github-ribbon">
8
+ <a href="https://github.com/{{ site.repository }}" target="_blank">
9
+ <img src="https://s3.amazonaws.com/github/ribbons/forkme_right_gray_6d6d6d.png" alt="Fork me on GitHub">
10
+ </a>
11
+ </div>
12
+ {%- endif -%}
13
+ <h1 class="display-4">{{ site.title }}</h1>
14
+ <p class="lead">{{ site.description }}</p>
15
+ <aside>
16
+ <p>
17
+ {%- if site.version -%}
18
+ <data value="{{ site.version }}">Version {{ site.version }}</data>・
19
+ {%- endif -%}
20
+ {%- assign date_format = site.date_format | default: '%Y-%m-%d' -%}
21
+ <time datetime="{{ site.time | date_to_xmlschema }}">{{ site.time | date: date_format }}</time>
22
+ </p>
23
+ </aside>
24
+ <div class="d-sm-flex">
25
+ {%- if site.show_ebooks_from_github_releases -%}
26
+ <aside class="mr-sm-3">
27
+ <ul class="list-unstyled">
28
+ <li><a href="https://github.com/{{ site.repository }}/releases/download/{{ site.version }}/{{ site.ebook.file_name }}.epub" target="_blank">{% octicon book %} .epub</a></li>
29
+ <li><a href="https://github.com/{{ site.repository }}/releases/download/{{ site.version }}/{{ site.ebook.file_name }}.mobi" target="_blank">{% octicon book %} .mobi (for Kindle)</a></li>
30
+ </ul>
31
+ </aside>
32
+ {%- endif -%}
33
+ {%- if site.kakuyomu.work_id or site.narou.ncode -%}
34
+ <aside>
35
+ <ul class="list-unstyled">
36
+ {%- if site.kakuyomu.work_id -%}
37
+ <li><a href="https://kakuyomu.jp/works/{{ site.kakuyomu.work_id }}" target="_blank">{% octicon link-external %} カクヨム</a></li>
38
+ {%- endif -%}
39
+ {%- if site.narou.ncode -%}
40
+ <li><a href="https://ncode.syosetu.com/{{ site.narou.ncode | downcase }}/" target="_blank">{% octicon link-external %} 小説家になろう</a></li>
41
+ {%- endif -%}
42
+ </ul>
43
+ </aside>
44
+ {%- endif -%}
45
+ </div>
46
+ <aside>
47
+ <a class="twitter-share-button"
48
+ href="https://twitter.com/share"
49
+ data-text="{{ site.title }}"
50
+ data-url="{{ '/' | absolute_url }}"
51
+ data-via="{{ site.twitter.username }}"
52
+ data-related="{{ site.twitter.username }}"
53
+ data-size="large">
54
+ Tweet
55
+ </a>
56
+ </aside>
57
+ </header>
58
+
59
+ <section class="mb-3">
60
+ {{ content }}
61
+ </section>
62
+
63
+ {%- if site.posts.size > 0 -%}
64
+ <section class="mb-3">
65
+ <div class="list-group">
66
+ {%- assign posts = site.posts -%}
67
+ {%- if site.reverse_posts_order -%}
68
+ {%- assign posts = posts | reverse -%}
69
+ {%- endif -%}
70
+ {%- for post in posts -%}
71
+ <a href="{{ post.url | relative_url }}" class="list-group-item list-group-item-action">
72
+ <h5>{{ post.title }}</h5>
73
+ {%- if site.show_excerpts -%}
74
+ <div class="text-muted">
75
+ {{ post.excerpt }}
76
+ </div>
77
+ {%- endif -%}
78
+ {%- if site.show_date -%}
79
+ <small class="text-muted">
80
+ {%- assign date_format = site.date_format | default: '%Y-%m-%d' -%}
81
+ <time datetime="{{ post.date | date_to_xmlschema }}">{{ post.date | date: date_format }}</time>
82
+ </small>
83
+ {%- endif -%}
84
+ </a>
85
+ {%- endfor -%}
86
+ </div>
87
+ </section>
88
+ {%- endif -%}
@@ -0,0 +1,7 @@
1
+ ---
2
+ layout: post
3
+ ---
4
+
5
+ <div class="novel">
6
+ {{ content }}
7
+ </div>
@@ -0,0 +1,15 @@
1
+ ---
2
+ layout: default
3
+ ---
4
+
5
+ <article class="mb-3">
6
+
7
+ <header class="text=-center mb-3">
8
+ <h1>{{ page.title }}</h1>
9
+ </header>
10
+
11
+ <main class="mb-3">
12
+ {{ content }}
13
+ </main>
14
+
15
+ </article>
@@ -0,0 +1,30 @@
1
+ ---
2
+ layout: default
3
+ ---
4
+
5
+ <article class="mb-3">
6
+
7
+ {%- include pagination.html -%}
8
+
9
+ <header class="text-center mb-3">
10
+ <h1>{{ page.title }}</h1>
11
+ </header>
12
+
13
+ <main class="mb-3">
14
+ {{ content }}
15
+ </main>
16
+
17
+ <aside class="d-flex justify-content-center mb-3">
18
+ <a class="twitter-share-button"
19
+ href="https://twitter.com/share"
20
+ data-text="{{ page.title }} - {{ site.title }}"
21
+ data-url="{{ page.url | absolute_url }}"
22
+ data-via="{{ site.twitter.username }}"
23
+ data-related="{{ site.twitter.username }}">
24
+ Tweet
25
+ </a>
26
+ </aside>
27
+
28
+ {%- include pagination.html -%}
29
+
30
+ </article>
@@ -0,0 +1,57 @@
1
+ $font-size-lg: 1.25rem;
2
+ $line-height: 1.8;
3
+
4
+ .jumbotron > #github-ribbon {
5
+ display: none;
6
+
7
+ @media (min-width: 576px) {
8
+ display: block;
9
+ float: right;
10
+ margin-top: -4rem;
11
+ margin-right: -2rem;
12
+ }
13
+ }
14
+
15
+ .novel {
16
+ max-width: 690px;
17
+ margin: 0 auto;
18
+ font-family: 游明朝, YuMincho, "ヒラギノ明朝 Pr6N", "Hiragino Mincho Pr6N", "ヒラギノ明朝 ProN", "Hiragino Mincho ProN", "ヒラギノ明朝 StdN", "Hiragino Mincho StdN", HiraMinProN-W3, "Noto Serif JP", serif;
19
+ line-height: $line-height;
20
+
21
+ h1, h2, h3, h4, h5, h6 {
22
+ margin-top: $font-size-lg;
23
+ }
24
+
25
+ p {
26
+ margin: 0;
27
+ }
28
+
29
+ blockquote {
30
+ margin: 1.0rem * $line-height / 2 0;
31
+ color: #6c757d; // text-secondary
32
+ }
33
+
34
+ hr {
35
+ border: 0;
36
+ margin: 0;
37
+ height: 1.0rem * $line-height;
38
+ }
39
+
40
+ em {
41
+ font-style: normal;
42
+ text-emphasis-style: filled dot;
43
+ -webkit-text-emphasis-style: filled dot;
44
+ }
45
+
46
+ pre {
47
+ white-space: pre-wrap;
48
+ }
49
+
50
+ @media (min-width: 768px) {
51
+ font-size: $font-size-lg;
52
+
53
+ hr {
54
+ height: $font-size-lg * $line-height;
55
+ }
56
+ }
57
+ }
data/assets/ebook.css ADDED
@@ -0,0 +1,26 @@
1
+ /* For jekyll-build-ebook */
2
+
3
+ body {
4
+ writing-mode: vertical-rl;
5
+ -epub-writing-mode: vertical-rl;
6
+ -webkit-writing-mode: vertical-rl;
7
+
8
+ text-combine-upright: digits;
9
+ text-align: justify;
10
+ }
11
+
12
+ p {
13
+ margin: 0;
14
+ }
15
+
16
+ hr {
17
+ border: 0;
18
+ margin: 0;
19
+ width: 2em;
20
+ }
21
+
22
+ em {
23
+ font-style: normal;
24
+ text-emphasis-style: filled sesame;
25
+ -webkit-text-emphasis-style: filled sesame;
26
+ }
data/assets/main.scss ADDED
@@ -0,0 +1,5 @@
1
+ ---
2
+ # Only the main Sass file needs front matter (the dashes are enough)
3
+ ---
4
+
5
+ @import "{{ site.theme }}";
metadata ADDED
@@ -0,0 +1,145 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: jekyll-theme-fuji
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Fuji Nakahara
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2019-02-03 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: jekyll
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '3.8'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '3.8'
27
+ - !ruby/object:Gem::Dependency
28
+ name: jekyll-feed
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '0.10'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '0.10'
41
+ - !ruby/object:Gem::Dependency
42
+ name: jekyll-octicons
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '8.1'
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '8.1'
55
+ - !ruby/object:Gem::Dependency
56
+ name: jekyll-seo-tag
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: '2.5'
62
+ type: :runtime
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: '2.5'
69
+ - !ruby/object:Gem::Dependency
70
+ name: bundler
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - "~>"
74
+ - !ruby/object:Gem::Version
75
+ version: '2.0'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - "~>"
81
+ - !ruby/object:Gem::Version
82
+ version: '2.0'
83
+ - !ruby/object:Gem::Dependency
84
+ name: rake
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - "~>"
88
+ - !ruby/object:Gem::Version
89
+ version: '12.0'
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - "~>"
95
+ - !ruby/object:Gem::Version
96
+ version: '12.0'
97
+ description:
98
+ email:
99
+ - fujinakahara2032@gmail.com
100
+ executables: []
101
+ extensions: []
102
+ extra_rdoc_files: []
103
+ files:
104
+ - LICENSE.txt
105
+ - README.md
106
+ - _includes/footer.html
107
+ - _includes/google-analytics.html
108
+ - _includes/head.html
109
+ - _includes/javascripts.html
110
+ - _includes/navbar.html
111
+ - _includes/pagination.html
112
+ - _layouts/default.html
113
+ - _layouts/ebook.html
114
+ - _layouts/home.html
115
+ - _layouts/novel.html
116
+ - _layouts/page.html
117
+ - _layouts/post.html
118
+ - _sass/jekyll-theme-fuji.scss
119
+ - assets/ebook.css
120
+ - assets/main.scss
121
+ homepage: https://github.com/fuji-nakahara/jekyll-theme-fuji
122
+ licenses:
123
+ - MIT
124
+ metadata:
125
+ plugin_type: theme
126
+ post_install_message:
127
+ rdoc_options: []
128
+ require_paths:
129
+ - lib
130
+ required_ruby_version: !ruby/object:Gem::Requirement
131
+ requirements:
132
+ - - ">="
133
+ - !ruby/object:Gem::Version
134
+ version: '0'
135
+ required_rubygems_version: !ruby/object:Gem::Requirement
136
+ requirements:
137
+ - - ">="
138
+ - !ruby/object:Gem::Version
139
+ version: '0'
140
+ requirements: []
141
+ rubygems_version: 3.0.1
142
+ signing_key:
143
+ specification_version: 4
144
+ summary: Jekyll theme for Japanese novels
145
+ test_files: []