Skip to content
This repository was archived by the owner on Aug 8, 2023. It is now read-only.

Commit abd4f9e

Browse files
committed
自動生成だと使い方が分かりづらいので、手動生成に変更した:
- index.html を header/footer/default に切り分けた - 内容を修正したいときは index.md を修正するだけで良いようにした - ついでに favicon や HTML 全体もモバイル対応した - Jekyll を導入して、必要な設定とGemも一通り揃えた - `bundle install` して `bundle exec jekyll serve -w` で変更結果を手元でに確認できるようにした - 参考元: [yasslab/yasslab.github.io](https://github.com/yasslab/yasslab.github.io)
1 parent 7a70ab8 commit abd4f9e

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

47 files changed

+308
-160
lines changed

Gemfile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
source 'http://rubygems.org'
2+
3+
gem 'jekyll'
4+
gem 'redcarpet'
5+
gem 'rake'

Gemfile.lock

Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
GEM
2+
remote: http://rubygems.org/
3+
specs:
4+
blankslate (2.1.2.4)
5+
celluloid (0.16.0)
6+
timers (~> 4.0.0)
7+
classifier-reborn (2.0.3)
8+
fast-stemmer (~> 1.0)
9+
coffee-script (2.4.1)
10+
coffee-script-source
11+
execjs
12+
coffee-script-source (1.9.1.1)
13+
colorator (0.1)
14+
execjs (2.5.2)
15+
fast-stemmer (1.0.2)
16+
ffi (1.9.8)
17+
hitimes (1.2.2)
18+
jekyll (2.5.3)
19+
classifier-reborn (~> 2.0)
20+
colorator (~> 0.1)
21+
jekyll-coffeescript (~> 1.0)
22+
jekyll-gist (~> 1.0)
23+
jekyll-paginate (~> 1.0)
24+
jekyll-sass-converter (~> 1.0)
25+
jekyll-watch (~> 1.1)
26+
kramdown (~> 1.3)
27+
liquid (~> 2.6.1)
28+
mercenary (~> 0.3.3)
29+
pygments.rb (~> 0.6.0)
30+
redcarpet (~> 3.1)
31+
safe_yaml (~> 1.0)
32+
toml (~> 0.1.0)
33+
jekyll-coffeescript (1.0.1)
34+
coffee-script (~> 2.2)
35+
jekyll-gist (1.2.1)
36+
jekyll-paginate (1.1.0)
37+
jekyll-sass-converter (1.3.0)
38+
sass (~> 3.2)
39+
jekyll-watch (1.2.1)
40+
listen (~> 2.7)
41+
kramdown (1.7.0)
42+
liquid (2.6.2)
43+
listen (2.10.0)
44+
celluloid (~> 0.16.0)
45+
rb-fsevent (>= 0.9.3)
46+
rb-inotify (>= 0.9)
47+
mercenary (0.3.5)
48+
parslet (1.5.0)
49+
blankslate (~> 2.0)
50+
posix-spawn (0.3.11)
51+
pygments.rb (0.6.3)
52+
posix-spawn (~> 0.3.6)
53+
yajl-ruby (~> 1.2.0)
54+
rake (10.4.2)
55+
rb-fsevent (0.9.4)
56+
rb-inotify (0.9.5)
57+
ffi (>= 0.5.0)
58+
redcarpet (3.2.3)
59+
safe_yaml (1.0.4)
60+
sass (3.4.13)
61+
timers (4.0.1)
62+
hitimes
63+
toml (0.1.2)
64+
parslet (~> 1.5.0)
65+
yajl-ruby (1.2.1)
66+
67+
PLATFORMS
68+
ruby
69+
70+
DEPENDENCIES
71+
jekyll
72+
rake
73+
redcarpet

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
The MIT License (MIT)
2+
3+
Copyright (c) 2015 CoderDojo Japan
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 all
13+
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 THE
21+
SOFTWARE.

_config.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
permalink: /:title
2+
author:
3+
name: Yohei Yasukawa
4+
email: yohei@yasslab.jp
5+
6+
highlighter: pygments
7+
markdown: redcarpet
8+
exclude: ["vendor", "Gemfile", "Gemfile.lock"]

_includes/footer.html

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<script type="text/javascript">
2+
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
3+
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
4+
</script>
5+
<script type="text/javascript">
6+
try {
7+
var pageTracker = _gat._getTracker("UA-62337761-1");
8+
pageTracker._trackPageview();
9+
} catch(err) {}
10+
</script>
11+
</body>
12+
</html>

_includes/header.html

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
<!DOCTYPE html>
2+
<html lang="{{ page.lang }}">
3+
<head>
4+
<meta charset="utf-8">
5+
<meta http-equiv="X-UA-Compatible" content="chrome=1">
6+
<meta name="description" content="CoderDojoは小・中学生のためのプログラミング道場です。2011年にアイルランドで始まり、2015年4月現在では55カ国・550拠点で開催されています。" />
7+
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
8+
<link href="https://fonts.googleapis.com/css?family=Architects+Daughter"
9+
rel="stylesheet" type="text/css">
10+
<link rel="stylesheet" type="text/css" href="/css/stylesheet.css" media="screen">
11+
<link rel="stylesheet" type="text/css" href="/css/pygment_trac.css" media="screen">
12+
<link rel="stylesheet" type="text/css" href="/css/print.css" media="print">
13+
14+
<link rel="apple-touch-icon" sizes="57x57" href="/img/apple-icon-57x57.png">
15+
<link rel="apple-touch-icon" sizes="60x60" href="/img/apple-icon-60x60.png">
16+
<link rel="apple-touch-icon" sizes="72x72" href="/img/apple-icon-72x72.png">
17+
<link rel="apple-touch-icon" sizes="76x76" href="/img/apple-icon-76x76.png">
18+
<link rel="apple-touch-icon" sizes="114x114" href="/img/apple-icon-114x114.png">
19+
<link rel="apple-touch-icon" sizes="120x120" href="/img/apple-icon-120x120.png">
20+
<link rel="apple-touch-icon" sizes="144x144" href="/img/apple-icon-144x144.png">
21+
<link rel="apple-touch-icon" sizes="152x152" href="/img/apple-icon-152x152.png">
22+
<link rel="apple-touch-icon" sizes="180x180" href="/img/apple-icon-180x180.png">
23+
<link rel="icon" type="image/png" sizes="192x192" href="/img/android-icon-192x192.png">
24+
<link rel="icon" type="image/png" sizes="32x32" href="/img/favicon-32x32.png">
25+
<link rel="icon" type="image/png" sizes="96x96" href="/img/favicon-96x96.png">
26+
<link rel="icon" type="image/png" sizes="16x16" href="/img/favicon-16x16.png">
27+
<link rel="manifest" href="/manifest.json">
28+
<meta name="msapplication-TileColor" content="#ffffff">
29+
<meta name="msapplication-TileImage" content="/img/ms-icon-144x144.png">
30+
<meta name="theme-color" content="#ffffff">
31+
32+
<!--[if lt IE 9]>
33+
<script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
34+
<![endif]-->
35+
36+
<title>{{ page.title }}</title>
37+
</head>
38+
<body>

_layouts/default.html

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
{% include header.html %}
2+
3+
<!-- HEADER -->
4+
<header>
5+
<div class="inner">
6+
<h1>CoderDojo Japan</h1>
7+
<h2>小・中学生のためのプログラミング道場</h2>
8+
<a href="https://github.com/coderdojo-japan" class="button"><small>Follow me on</small> GitHub</a>
9+
</div>
10+
</header>
11+
12+
<!-- MAIN CONTENT -->
13+
<div id="content-wrapper">
14+
<div class="inner clearfix">
15+
<section id="main-content">
16+
{{ content }}
17+
</section>
18+
</div>
19+
</div>
20+
21+
<!-- FOOTER -->
22+
<div id="footer_wrap" class="outer">
23+
<footer class="inner">
24+
<p>
25+
Copyright &copy; 2015 CoderDojo Japan All Rights Reserved.
26+
</p>
27+
</footer>
28+
</div>
29+
30+
{% include footer.html %}
File renamed without changes.
File renamed without changes.

stylesheets/stylesheet.css renamed to css/stylesheet.css

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -433,7 +433,7 @@ body {
433433
font-weight: 400;
434434
line-height: 1.5;
435435
color: #666;
436-
background: #fafafa url(../images/body-bg.jpg) 0 0 repeat;
436+
background: #fafafa url(/img/body-bg.jpg) 0 0 repeat;
437437
}
438438

439439
p {
@@ -451,7 +451,7 @@ header {
451451
padding-top: 40px;
452452
padding-bottom: 40px;
453453
font-family: 'Architects Daughter', 'Helvetica Neue', Helvetica, Arial, serif;
454-
background: #2e7bcf url(../images/header-bg.jpg) 0 0 repeat-x;
454+
background: #2e7bcf url(/img/header-bg.jpg) 0 0 repeat-x;
455455
border-bottom: solid 1px #275da1;
456456
}
457457

@@ -504,7 +504,7 @@ aside#sidebar {
504504
padding-left: 20px;
505505
font-size: 12px;
506506
line-height: 1.3;
507-
background: transparent url(../images/sidebar-bg.jpg) 0 0 no-repeat;
507+
background: transparent url(/img/sidebar-bg.jpg) 0 0 no-repeat;
508508
}
509509

510510
aside#sidebar p.repo-owner,
@@ -534,15 +534,15 @@ header a.button {
534534
position: absolute;
535535
top: 0;
536536
right: 0;
537-
background: transparent url(../images/github-button.png) 0 0 no-repeat;
537+
background: transparent url(/img/github-button.png) 0 0 no-repeat;
538538
}
539539
aside a.button {
540540
display: block;
541541
width: 138px;
542542
padding-left: 64px;
543543
margin-bottom: 20px;
544544
font-size: 21px;
545-
background: transparent url(../images/download-button.png) 0 0 no-repeat;
545+
background: transparent url(/img/download-button.png) 0 0 no-repeat;
546546
}
547547

548548
code, pre {
@@ -747,7 +747,7 @@ footer {
747747
margin-top: 40px;
748748
font-size: 13px;
749749
color: #aaa;
750-
background: transparent url('../images/hr.png') 0 0 no-repeat;
750+
background: transparent url('/img/bg_hr.png') 0 0 no-repeat;
751751
}
752752

753753
footer a {

0 commit comments

Comments
 (0)