Skip to content

Commit 54e701e

Browse files
committed
import mimima, bootstrap and admin
1 parent 9ce1bee commit 54e701e

Some content is hidden

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

95 files changed

+9179
-1
lines changed

Gemfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ gem "minima", "~> 2.0"
2121
# If you have any plugins, put them here!
2222
group :jekyll_plugins do
2323
gem "jekyll-feed", "~> 0.6"
24+
gem 'jekyll-admin'
2425
end
2526

2627
# Windows does not include zoneinfo files, so bundle the tzinfo-data gem
2728
gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby]
28-

Gemfile.lock

+25
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ GEM
33
specs:
44
addressable (2.5.1)
55
public_suffix (~> 2.0, >= 2.0.2)
6+
backports (3.8.0)
67
colorator (1.1.0)
78
ffi (1.9.18)
89
forwardable-extended (2.6.0)
@@ -17,6 +18,11 @@ GEM
1718
pathutil (~> 0.9)
1819
rouge (~> 1.7)
1920
safe_yaml (~> 1.0)
21+
jekyll-admin (0.4.1)
22+
addressable (~> 2.4)
23+
jekyll (~> 3.3)
24+
sinatra (~> 1.4)
25+
sinatra-contrib (~> 1.4)
2026
jekyll-feed (0.9.2)
2127
jekyll (~> 3.3)
2228
jekyll-sass-converter (1.5.0)
@@ -31,21 +37,40 @@ GEM
3137
mercenary (0.3.6)
3238
minima (2.1.1)
3339
jekyll (~> 3.3)
40+
multi_json (1.12.1)
3441
pathutil (0.14.0)
3542
forwardable-extended (~> 2.6)
3643
public_suffix (2.0.5)
44+
rack (1.6.6)
45+
rack-protection (1.5.3)
46+
rack
47+
rack-test (0.6.3)
48+
rack (>= 1.0)
3749
rb-fsevent (0.9.8)
3850
rb-inotify (0.9.8)
3951
ffi (>= 0.5.0)
4052
rouge (1.11.1)
4153
safe_yaml (1.0.4)
4254
sass (3.4.23)
55+
sinatra (1.4.8)
56+
rack (~> 1.5)
57+
rack-protection (~> 1.4)
58+
tilt (>= 1.3, < 3)
59+
sinatra-contrib (1.4.7)
60+
backports (>= 2.0)
61+
multi_json
62+
rack-protection
63+
rack-test
64+
sinatra (~> 1.4.0)
65+
tilt (>= 1.3, < 3)
66+
tilt (2.0.7)
4367

4468
PLATFORMS
4569
ruby
4670

4771
DEPENDENCIES
4872
jekyll (= 3.4.3)
73+
jekyll-admin
4974
jekyll-feed (~> 0.6)
5075
minima (~> 2.0)
5176
tzinfo-data

_includes/disqus_comments.html

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{% if page.comments != false and jekyll.environment == "production" %}
2+
3+
<div id="disqus_thread"></div>
4+
<script>
5+
var disqus_config = function () {
6+
this.page.url = '{{ page.url | absolute_url }}';
7+
this.page.identifier = '{{ page.url | absolute_url }}';
8+
};
9+
10+
(function() {
11+
var d = document, s = d.createElement('script');
12+
13+
s.src = 'https://{{ site.disqus.shortname }}.disqus.com/embed.js';
14+
15+
s.setAttribute('data-timestamp', +new Date());
16+
(d.head || d.body).appendChild(s);
17+
})();
18+
</script>
19+
<noscript>Please enable JavaScript to view the <a href="https://disqus.com/?ref_noscript" rel="nofollow">comments powered by Disqus.</a></noscript>
20+
{% endif %}

_includes/footer.html

+46
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
<footer class="site-footer">
2+
3+
<div class="wrapper">
4+
5+
<h2 class="footer-heading">{{ site.title | escape }}</h2>
6+
7+
<div class="footer-col-wrapper">
8+
<div class="footer-col footer-col-1">
9+
<ul class="contact-list">
10+
<li>
11+
{% if site.author %}
12+
{{ site.author | escape }}
13+
{% else %}
14+
{{ site.title | escape }}
15+
{% endif %}
16+
</li>
17+
{% if site.email %}
18+
<li><a href="mailto:{{ site.email }}">{{ site.email }}</a></li>
19+
{% endif %}
20+
</ul>
21+
</div>
22+
23+
<div class="footer-col footer-col-2">
24+
<ul class="social-media-list">
25+
{% if site.github_username %}
26+
<li>
27+
{% include icon-github.html username=site.github_username %}
28+
</li>
29+
{% endif %}
30+
31+
{% if site.twitter_username %}
32+
<li>
33+
{% include icon-twitter.html username=site.twitter_username %}
34+
</li>
35+
{% endif %}
36+
</ul>
37+
</div>
38+
39+
<div class="footer-col footer-col-3">
40+
<p>{{ site.description | escape }}</p>
41+
</div>
42+
</div>
43+
44+
</div>
45+
46+
</footer>

_includes/google-analytics.html

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<script>
2+
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
3+
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
4+
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
5+
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
6+
7+
ga('create', '{{ site.google_analytics }}', 'auto');
8+
ga('send', 'pageview');
9+
10+
</script>
11+

_includes/head.html

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
<head>
2+
<meta charset="utf-8">
3+
<meta http-equiv="X-UA-Compatible" content="IE=edge">
4+
<meta name="viewport" content="width=device-width, initial-scale=1">
5+
6+
<title>{% if page.title %}{{ page.title | escape }}{% else %}{{ site.title | escape }}{% endif %}</title>
7+
<meta name="description" content="{{ page.excerpt | default: site.description | strip_html | normalize_whitespace | truncate: 160 | escape }}">
8+
9+
<link rel="stylesheet" href="{{ "/assets/main.css" | relative_url }}">
10+
<link rel="canonical" href="{{ page.url | replace:'index.html','' | absolute_url }}">
11+
<link rel="alternate" type="application/rss+xml" title="{{ site.title | escape }}" href="{{ "/feed.xml" | relative_url }}">
12+
13+
{% if jekyll.environment == 'production' and site.google_analytics %}
14+
{% include google-analytics.html %}
15+
{% endif %}
16+
</head>

_includes/header.html

+32
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
<header class="site-header" role="banner">
2+
3+
<div class="wrapper">
4+
{% assign default_paths = site.pages | map: "path" %}
5+
{% assign page_paths = site.header_pages | default: default_paths %}
6+
<a class="site-title" href="{{ "/" | relative_url }}">{{ site.title | escape }}</a>
7+
8+
{% if page_paths %}
9+
<nav class="site-nav">
10+
<input type="checkbox" id="nav-trigger" class="nav-trigger" />
11+
<label for="nav-trigger">
12+
<span class="menu-icon">
13+
<svg viewBox="0 0 18 15" width="18px" height="15px">
14+
<path fill="#424242" d="M18,1.484c0,0.82-0.665,1.484-1.484,1.484H1.484C0.665,2.969,0,2.304,0,1.484l0,0C0,0.665,0.665,0,1.484,0 h15.031C17.335,0,18,0.665,18,1.484L18,1.484z"/>
15+
<path fill="#424242" d="M18,7.516C18,8.335,17.335,9,16.516,9H1.484C0.665,9,0,8.335,0,7.516l0,0c0-0.82,0.665-1.484,1.484-1.484 h15.031C17.335,6.031,18,6.696,18,7.516L18,7.516z"/>
16+
<path fill="#424242" d="M18,13.516C18,14.335,17.335,15,16.516,15H1.484C0.665,15,0,14.335,0,13.516l0,0 c0-0.82,0.665-1.484,1.484-1.484h15.031C17.335,12.031,18,12.696,18,13.516L18,13.516z"/>
17+
</svg>
18+
</span>
19+
</label>
20+
21+
<div class="trigger">
22+
{% for path in page_paths %}
23+
{% assign my_page = site.pages | where: "path", path | first %}
24+
{% if my_page.title %}
25+
<a class="page-link" href="{{ my_page.url | relative_url }}">{{ my_page.title | escape }}</a>
26+
{% endif %}
27+
{% endfor %}
28+
</div>
29+
</nav>
30+
{% endif %}
31+
</div>
32+
</header>

_includes/icon-github.html

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
<a href="https://github.com/{{ include.username }}"><span class="icon icon--github">{% include icon-github.svg %}</span><span class="username">{{ include.username }}</span></a>

_includes/icon-github.svg

+1
Loading

_includes/icon-twitter.html

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
<a href="https://twitter.com/{{ include.username }}"><span class="icon icon--twitter">{% include icon-twitter.svg %}</span><span class="username">{{ include.username }}</span></a>

_includes/icon-twitter.svg

+1
Loading

_layouts/default.html

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
<!DOCTYPE html>
2+
<html lang="{{ page.lang | default: site.lang | default: "en" }}">
3+
4+
{% include head.html %}
5+
6+
<body>
7+
8+
{% include header.html %}
9+
10+
<main class="page-content" aria-label="Content">
11+
<div class="wrapper">
12+
{{ content }}
13+
</div>
14+
</main>
15+
16+
{% include footer.html %}
17+
18+
</body>
19+
20+
</html>

_layouts/home.html

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
---
2+
layout: default
3+
---
4+
5+
<div class="home">
6+
7+
<h1 class="page-heading">Posts</h1>
8+
9+
{{ content }}
10+
11+
<ul class="post-list">
12+
{% for post in site.posts %}
13+
<li>
14+
{% assign date_format = site.minima.date_format | default: "%b %-d, %Y" %}
15+
<span class="post-meta">{{ post.date | date: date_format }}</span>
16+
17+
<h2>
18+
<a class="post-link" href="{{ post.url | relative_url }}">{{ post.title | escape }}</a>
19+
</h2>
20+
</li>
21+
{% endfor %}
22+
</ul>
23+
24+
<p class="rss-subscribe">subscribe <a href="{{ "/feed.xml" | relative_url }}">via RSS</a></p>
25+
26+
</div>

_layouts/page.html

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
---
2+
layout: default
3+
---
4+
<article class="post">
5+
6+
<header class="post-header">
7+
<h1 class="post-title">{{ page.title | escape }}</h1>
8+
</header>
9+
10+
<div class="post-content">
11+
{{ content }}
12+
</div>
13+
14+
</article>

_layouts/post.html

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
---
2+
layout: default
3+
---
4+
<article class="post" itemscope itemtype="http://schema.org/BlogPosting">
5+
6+
<header class="post-header">
7+
<h1 class="post-title" itemprop="name headline">{{ page.title | escape }}</h1>
8+
<p class="post-meta">
9+
<time datetime="{{ page.date | date_to_xmlschema }}" itemprop="datePublished">
10+
{% assign date_format = site.minima.date_format | default: "%b %-d, %Y" %}
11+
{{ page.date | date: date_format }}
12+
</time>
13+
{% if page.author %}
14+
<span itemprop="author" itemscope itemtype="http://schema.org/Person"><span itemprop="name">{{ page.author }}</span></span>
15+
{% endif %}</p>
16+
</header>
17+
18+
<div class="post-content" itemprop="articleBody">
19+
{{ content }}
20+
</div>
21+
22+
{% if site.disqus.shortname %}
23+
{% include disqus_comments.html %}
24+
{% endif %}
25+
</article>

_sass/_bootstrap.scss

+56
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
/*!
2+
* Bootstrap v3.3.7 (http://getbootstrap.com)
3+
* Copyright 2011-2016 Twitter, Inc.
4+
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
5+
*/
6+
7+
// Core variables and mixins
8+
@import "bootstrap/variables";
9+
@import "bootstrap/mixins";
10+
11+
// Reset and dependencies
12+
@import "bootstrap/normalize";
13+
@import "bootstrap/print";
14+
@import "bootstrap/glyphicons";
15+
16+
// Core CSS
17+
@import "bootstrap/scaffolding";
18+
@import "bootstrap/type";
19+
@import "bootstrap/code";
20+
@import "bootstrap/grid";
21+
@import "bootstrap/tables";
22+
@import "bootstrap/forms";
23+
@import "bootstrap/buttons";
24+
25+
// Components
26+
@import "bootstrap/component-animations";
27+
@import "bootstrap/dropdowns";
28+
@import "bootstrap/button-groups";
29+
@import "bootstrap/input-groups";
30+
@import "bootstrap/navs";
31+
@import "bootstrap/navbar";
32+
@import "bootstrap/breadcrumbs";
33+
@import "bootstrap/pagination";
34+
@import "bootstrap/pager";
35+
@import "bootstrap/labels";
36+
@import "bootstrap/badges";
37+
@import "bootstrap/jumbotron";
38+
@import "bootstrap/thumbnails";
39+
@import "bootstrap/alerts";
40+
@import "bootstrap/progress-bars";
41+
@import "bootstrap/media";
42+
@import "bootstrap/list-group";
43+
@import "bootstrap/panels";
44+
@import "bootstrap/responsive-embed";
45+
@import "bootstrap/wells";
46+
@import "bootstrap/close";
47+
48+
// Components w/ JavaScript
49+
@import "bootstrap/modals";
50+
@import "bootstrap/tooltip";
51+
@import "bootstrap/popovers";
52+
@import "bootstrap/carousel";
53+
54+
// Utility classes
55+
@import "bootstrap/utilities";
56+
@import "bootstrap/responsive-utilities";

0 commit comments

Comments
 (0)