material-blog-jp 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: dce9ae475c89e456c4662dab195405cb483244761e279ca42f3a43b607d27012
4
+ data.tar.gz: 54b5ded08e2674bad9a85be91663b60b3420ac32e8dd7d1d0152e51e40144e69
5
+ SHA512:
6
+ metadata.gz: 91a42465d4d9294eafe791f9dcf4d3ac8ae323e8f5dfbf2c84dd32d288a0653c3041a6e649f568f7bb653a575cac868e23da1098bac93d3408a33ba17ffb5ba9
7
+ data.tar.gz: 6a86547834bcadbc93f267ac8742459f20cca2617fd8f5fa7a87a8a2c137bc423d2942bfdcbb9d2b2f8d2a918b6f699152fd82cd53cd6b029250ee43a65dec50
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2019 Johnny Pan
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,52 @@
1
+ # material-blog-jp
2
+
3
+ Welcome to your new Jekyll theme! In this directory, you'll find the files you need to be able to package up your theme into a gem. Put your layouts in `_layouts`, your includes in `_includes`, your sass files in `_sass` and any other assets in `assets`.
4
+
5
+ To experiment with this code, add some sample content and run `bundle exec jekyll serve` – this directory is setup just like a Jekyll site!
6
+
7
+ TODO: Delete this and the text above, and describe your gem
8
+
9
+
10
+ ## Installation
11
+
12
+ Add this line to your Jekyll site's `Gemfile`:
13
+
14
+ ```ruby
15
+ gem "material-blog-jp"
16
+ ```
17
+
18
+ And add this line to your Jekyll site's `_config.yml`:
19
+
20
+ ```yaml
21
+ theme: material-blog-jp
22
+ ```
23
+
24
+ And then execute:
25
+
26
+ $ bundle
27
+
28
+ Or install it yourself as:
29
+
30
+ $ gem install material-blog-jp
31
+
32
+ ## Usage
33
+
34
+ TODO: Write usage instructions here. Describe your available layouts, includes, sass and/or assets.
35
+
36
+ ## Contributing
37
+
38
+ Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/hello. 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.
39
+
40
+ ## Development
41
+
42
+ To set up your environment to develop this theme, run `bundle install`.
43
+
44
+ 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.
45
+
46
+ When your theme is released, only the files in `_layouts`, `_includes`, `_sass` and `assets` tracked with Git will be bundled.
47
+ To add a custom directory to your theme-gem, please edit the regexp in `material-design-blog-jp.gemspec` accordingly.
48
+
49
+ ## License
50
+
51
+ The theme is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
52
+
@@ -0,0 +1,14 @@
1
+ <footer class="mdl-mini-footer">
2
+
3
+ <div class="mdl-mini-footer__left-section">
4
+ <div class="mdl-logo">Material-blog-jp</div>
5
+ <ul class="mdl-mini-footer__link-list">
6
+ <li><a href="about.html">About</a></li>
7
+ </ul>
8
+ <div class="mdl-layout-spacer"></div>
9
+ your-email@domain.com
10
+ </div>
11
+ <div class="mdl-mini-footer__right-section">
12
+ <div class="mdl-logo">Your website description</div>
13
+ </div>
14
+ </footer>
@@ -0,0 +1,30 @@
1
+ <head>
2
+ <meta charset="utf-8">
3
+ <meta http-equiv="X-UA-Compatible" content="IE=edge">
4
+ <meta name="description" content="Personal blog where I share my experiences.">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0">
6
+
7
+ <title>{{ page.title }}</title>
8
+
9
+ <!-- Chrome for Android -->
10
+ <meta name="mobile-web-app-capable" content="yes">
11
+ <link rel="icon" sizes="192x192" href="/assets/blog-icon.ico">
12
+
13
+ <!-- iOS -->
14
+ <meta name="apple-mobile-web-app-capable" content="yes">
15
+ <meta name="apple-mobile-web-app-status-bar-style" content="black">
16
+ <meta name="apple-mobile-web-app-title" content="Johnny's Blog">
17
+ <link rel="apple-touch-icon-precomposed" href="/assets/blog-icon.ico">
18
+
19
+ <link rel="shortcut icon" href="/assets/blog-icon.ico">
20
+
21
+ <link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons">
22
+ <link rel="stylesheet" href="https://code.getmdl.io/1.3.0/material.blue_grey-red.min.css" />
23
+ <link rel="stylesheet" href="http://fonts.googleapis.com/css?family=Roboto:300,400,500,700" type="text/css">
24
+ <link rel="stylesheet" href="/assets/css/style.css">
25
+
26
+ <script defer src="https://code.getmdl.io/1.3.0/material.min.js"></script>
27
+ <script src="https://code.jquery.com/jquery-3.4.1.js" integrity="sha256-WpOohJOqMqqyKL9FccASB9O0KwACQJpFTUBLTYOVvVU=" crossorigin="anonymous"></script>
28
+ <script type="text/javascript" src="/assets/script/script.js"></script>
29
+
30
+ </head>
data/_layouts/404.html ADDED
@@ -0,0 +1,33 @@
1
+ ---
2
+ layout: default
3
+ title: 404
4
+ ---
5
+
6
+ <!-- Cards -->
7
+ <center><div>
8
+ <h1>404</h1>
9
+ <h4>Page not found :(</h4>
10
+ <h6>The page you are looking for could not be found. There are no hidden links ;)</h6>
11
+
12
+ </div></center>
13
+ <div>&nbsp;</div>
14
+ <div>&nbsp;</div>
15
+ <div>&nbsp;</div>
16
+ <div>&nbsp;</div>
17
+ <div>&nbsp;</div>
18
+ <div>&nbsp;</div>
19
+ <div>&nbsp;</div>
20
+ <div>&nbsp;</div>
21
+ <div>&nbsp;</div>
22
+ <div>&nbsp;</div>
23
+ <div>&nbsp;</div>
24
+ <div>&nbsp;</div>
25
+ <div>&nbsp;</div>
26
+ <div>&nbsp;</div>
27
+ <div>&nbsp;</div>
28
+
29
+ </div>
30
+ <div class="mdl-layout-spacer"></div>
31
+ </div>
32
+
33
+
@@ -0,0 +1,30 @@
1
+ ---
2
+ layout: default
3
+ title: About
4
+ ---
5
+
6
+ <!-- Cards -->
7
+ <div class="demo-card-wide mdl-card mdl-shadow--2dp">
8
+ <div class="mdl-card__post">
9
+ <h2 class="mdl-card__title-text">About</h2>
10
+ </div>
11
+ <div class="mdl-card__supporting-text">
12
+ Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent quis nulla ut elit lobortis eleifend. Nunc ut dui erat. In nunc mi, commodo quis ornare consequat, sodales nec turpis. Morbi eget felis tempus, viverra turpis eget, tempus dui. Sed ac mattis eros. Donec vel imperdiet odio, quis tempus diam. In faucibus, turpis eu pulvinar gravida, nibh turpis varius sem, eget ultricies est nulla sed turpis. Proin vehicula in leo eu rutrum. Nullam posuere justo sit amet iaculis finibus. Etiam hendrerit, risus ut laoreet ullamcorper, elit augue tincidunt eros, at scelerisque eros justo nec libero. Nam pretium et justo nec luctus.
13
+ </div>
14
+
15
+ <div class="mdl-card__supporting-text">
16
+ Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent quis nulla ut elit lobortis eleifend. Nunc ut dui erat. In nunc mi, commodo quis ornare consequat, sodales nec turpis. Morbi eget felis tempus, viverra turpis eget, tempus dui. Sed ac mattis eros. Donec vel imperdiet odio, quis tempus diam. In faucibus, turpis eu pulvinar gravida, nibh turpis varius sem, eget ultricies est nulla sed turpis. Proin vehicula in leo eu rutrum. Nullam posuere justo sit amet iaculis finibus. Etiam hendrerit, risus ut laoreet ullamcorper, elit augue tincidunt eros, at scelerisque eros justo nec libero. Nam pretium et justo nec luctus.
17
+ </div>
18
+
19
+ <div class="mdl-card__supporting-text">
20
+ Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent quis nulla ut elit lobortis eleifend. Nunc ut dui erat. In nunc mi, commodo quis ornare consequat, sodales nec turpis. Morbi eget felis tempus, viverra turpis eget, tempus dui. Sed ac mattis eros. Donec vel imperdiet odio, quis tempus diam. In faucibus, turpis eu pulvinar gravida, nibh turpis varius sem, eget ultricies est nulla sed turpis. Proin vehicula in leo eu rutrum. Nullam posuere justo sit amet iaculis finibus. Etiam hendrerit, risus ut laoreet ullamcorper, elit augue tincidunt eros, at scelerisque eros justo nec libero. Nam pretium et justo nec luctus.
21
+ </div>
22
+ <div>&nbsp;</div>
23
+ </div>
24
+ <div>&nbsp;</div>
25
+
26
+ </div>
27
+ <div class="mdl-layout-spacer"></div>
28
+ </div>
29
+
30
+
@@ -0,0 +1,55 @@
1
+ <!DOCTYPE html>
2
+ <html lang="{{ page.lang | default: site.lang | default: 'en' }}">
3
+
4
+ {%- include head.html -%}
5
+
6
+ <body>
7
+ <div class="demo-layout-transparent mdl-layout--fixed-header mdl-js-layout">
8
+ <header class="mdl-layout__header mdl-layout__header--transparent">
9
+ <div class="mdl-layout__header-row">
10
+ <span class="mdl-layout-title">Material-blog-jp</span>
11
+ <div class="mdl-layout-spacer"></div>
12
+ <nav class="mdl-navigation remove-mdl-navigation-link">
13
+ <a class="mdl-navigation__link" href="/index.html">Home</a>
14
+ <a class="mdl-navigation__link" href="/search.html">Search</a>
15
+ <a class="mdl-navigation__link" href="/about.html">About</a>
16
+
17
+ </nav>
18
+ </div>
19
+ </header>
20
+ <div class="mdl-layout__drawer">
21
+ <span class="mdl-layout-title">Johnny Pan</span>
22
+ <nav class="mdl-navigation">
23
+ <a class="mdl-navigation__link" href="/index.html">Home</a>
24
+ <a class="mdl-navigation__link" href="/search.html">Search</a>
25
+ <a class="mdl-navigation__link" href="/about.html">About</a>
26
+ </nav>
27
+ </div>
28
+ <main class="mdl-layout__content">
29
+
30
+ </main>
31
+ </div>
32
+ </div>
33
+
34
+ <div>&nbsp;</div>
35
+ <div>&nbsp;</div>
36
+ <div>&nbsp;</div>
37
+ <div>&nbsp;</div>
38
+
39
+
40
+
41
+ <div class="mdl-grid">
42
+ <div class="mdl-layout-spacer"></div>
43
+ <div class="mdl-cell mdl-cell--4-col">
44
+
45
+ {{ content }}
46
+
47
+ <button class="mdl-button mdl-js-button mdl-button--fab mdl-js-ripple-effect mdl-button--colored mdl-arrowup-button-right back-to-top">
48
+ <i class="material-icons">arrow_upward</i>
49
+ </button>
50
+
51
+ {%- include footer.html -%}
52
+
53
+ </body>
54
+
55
+ </html>
@@ -0,0 +1,32 @@
1
+ ---
2
+ layout: default
3
+ ---
4
+
5
+ {%- for post in site.posts -%}
6
+ <div class="demo-card-wide mdl-card mdl-shadow--2dp">
7
+ <div class="mdl-card__title" style="background: url('/assets/{{ post.date | date: '%Y-%m-%d' }}.jpg') center / cover;">
8
+ <h2 class="mdl-card__title-text">{{ post.title }}</h2>
9
+ </div>
10
+ <div class="mdl-card__supporting-text">
11
+ {{ post.date | date: '%b %d, %Y' }}
12
+ </div>
13
+ <div class="mdl-card__supporting-text" style="font-size: 1.3em">
14
+ {{ post.excerpt }}
15
+ </div>
16
+ <div class="mdl-card__actions mdl-card--border">
17
+ <a class="mdl-button mdl-button--colored mdl-js-button mdl-js-ripple-effect" href="{{ post.url | relative_url }}">
18
+ Read More
19
+ </a>
20
+ </div>
21
+ <div class="mdl-card__menu">
22
+ <button class="mdl-button mdl-button--icon mdl-js-button mdl-js-ripple-effect" onclick="location.href='https://www.twitter.com/intent/tweet?text=https://johnnypan.me{{ post.url }}'">
23
+ <i class="material-icons">share</i>
24
+ </button>
25
+ </div>
26
+ </div>
27
+ <div>&nbsp;</div>
28
+ {%- endfor -%}
29
+
30
+ </div>
31
+ <div class="mdl-layout-spacer"></div>
32
+ </div>
@@ -0,0 +1,27 @@
1
+ ---
2
+ layout: default
3
+ ---
4
+
5
+ <!-- Cards -->
6
+ <div class="demo-card-wide mdl-card mdl-shadow--2dp">
7
+ <div class="mdl-card__post" style="background: url('/assets/{{ page.date | date: '%Y-%m-%d' }}.jpg') center / cover;">
8
+ <h2 class="mdl-card__title-text">{{ page.title }}</h2>
9
+ </div>
10
+ <div class="mdl-card__supporting-text">
11
+ {{ page.date | date: '%b %d, %Y' }}
12
+ </div>
13
+ <div class="mdl-card__supporting-text" style="font-size: 1.3em">
14
+ {{ content }}
15
+ </div>
16
+ <div class="mdl-card__actions mdl-card--border">
17
+ <a class="mdl-button mdl-button--colored mdl-js-button mdl-js-ripple-effect nav-button" href="{{page.previous.url}}">&lt;</a>
18
+
19
+ <a class="mdl-button mdl-button--colored mdl-js-button mdl-js-ripple-effect nav-button" href="{{page.next.url}}">&gt;</a>
20
+ </div>
21
+
22
+ </div>
23
+ <div>&nbsp;</div>
24
+
25
+ </div>
26
+ <div class="mdl-layout-spacer"></div>
27
+ </div>
@@ -0,0 +1,61 @@
1
+ ---
2
+ layout: default
3
+ title: Search
4
+ ---
5
+
6
+ <script src="https://cdnjs.cloudflare.com/ajax/libs/simple-jekyll-search/1.7.2/simple-jekyll-search.min.js" integrity="sha256-DsgE6Y6cI5eAZoTg8tJ5VBxFs+rnL8smPwt/u8tyAYo=" crossorigin="anonymous"></script>
7
+
8
+ <!--
9
+ <input type="text" id="search-input" placeholder="Search blog posts..">
10
+ <ul id="results-container"></ul>
11
+ -->
12
+
13
+ <form action="#">
14
+ <div class="mdl-textfield mdl-js-textfield mdl-textfield--floating-label">
15
+ <input class="mdl-textfield__input" type="text" id="search-input">
16
+ <label class="mdl-textfield__label" for="search-input">Search Here</label>
17
+ <ul id="results-container"></ul>
18
+ </div>
19
+ </form>
20
+
21
+
22
+ <script type="text/javascript">
23
+ var sjs = SimpleJekyllSearch({
24
+ searchInput: document.getElementById('search-input'),
25
+ resultsContainer: document.getElementById('results-container'),
26
+ json: '{{ site.base_url }}/search.json',
27
+ searchResultTemplate: '<li><a href="{url}">{title}</a></li>',
28
+ noResultsText: 'No results found',
29
+ fuzzy: false
30
+ })
31
+
32
+ </script>
33
+
34
+
35
+ <div>&nbsp;</div>
36
+ <div>&nbsp;</div>
37
+ <div>&nbsp;</div>
38
+
39
+ {%- for post in site.posts limit:2 -%}
40
+ <div class="demo-card-wide mdl-card mdl-shadow--2dp">
41
+ <div class="mdl-card__post" style="background: url('/assets/{{ post.date | date: '%Y-%m-%d' }}.jpg') center / cover;">
42
+ <h2 class="mdl-card__title-text">{{ post.title }}</h2>
43
+ </div>
44
+ <div class="mdl-card__supporting-text">
45
+ {{ post.date | date: '%b %d, %Y' }}
46
+ </div>
47
+ <div class="mdl-card__supporting-text" style="font-size: 1.3em">
48
+ {{ post.excerpt }}
49
+ </div>
50
+ <div>&nbsp;</div>
51
+ </div>
52
+ <div>&nbsp;</div>
53
+ {%- endfor -%}
54
+
55
+
56
+ </div>
57
+ <div class="mdl-layout-spacer"></div>
58
+ </div>
59
+
60
+
61
+
Binary file
Binary file
Binary file
@@ -0,0 +1,85 @@
1
+ html, body {
2
+ font-family: 'Roboto', 'Helvetica', sans-serif;
3
+ margin: 0;
4
+ padding: 0;
5
+ }
6
+
7
+ .demo-layout-transparent {
8
+ background: url('/assets/header.jpg') center / cover;
9
+ }
10
+
11
+ .demo-layout-transparent .mdl-layout__header,
12
+ .demo-layout-transparent .mdl-layout__drawer-button {
13
+ color: white;
14
+ }
15
+
16
+ @media screen and (min-width: 800px) {
17
+ .demo-card-wide.mdl-card {
18
+ width: 800px;
19
+ }
20
+
21
+ .mdl-cell--4-col {
22
+ width:800px;
23
+ }
24
+
25
+ }
26
+
27
+ /* Card CSS */
28
+
29
+ @media screen and (max-width: 512px) {
30
+ .demo-card-wide.mdl-card {
31
+ max-width: 100%;
32
+ }
33
+
34
+ .remove-mdl-navigation-link {
35
+ display: none;
36
+ }
37
+
38
+ .demo-card-wide.mdl-card {
39
+ width: 512px;
40
+ }
41
+ }
42
+
43
+
44
+ .demo-card-wide>.mdl-card__title {
45
+ color: #fff;
46
+ height: 512px;
47
+ background: url('/assets/transparent.jpg') center / cover;
48
+ }
49
+
50
+ .demo-card-wide>.mdl-card__post {
51
+ color: #fff;
52
+ height: 60px;
53
+ padding:15px;
54
+ background: url('/assets/transparent.jpg') top / cover;
55
+ }
56
+
57
+ .demo-card-wide>.mdl-card__menu {
58
+ color: #fff;
59
+ }
60
+
61
+ .mdl-arrowup-button-right {
62
+ position: fixed;
63
+ display: block;
64
+ right: 0;
65
+ bottom: 0;
66
+ margin-right: 40px;
67
+ margin-bottom: 40px;
68
+ z-index: 900;
69
+ }
70
+
71
+ .nav-button {
72
+ width: 40px;
73
+ height: 40px;
74
+ min-width: initial;
75
+ }
76
+
77
+ .mdl-demo .mdl-layout__content section:not(:last-of-type) {
78
+ position: relative;
79
+ margin-bottom: 48px;
80
+ }
81
+
82
+
83
+
84
+
85
+
data/assets/header.jpg ADDED
Binary file
@@ -0,0 +1,5 @@
1
+ $(document).ready(function(){
2
+ $(".back-to-top").click(function() {
3
+ $('html, body').animate({scrollTop:0}, 'slow');
4
+ });
5
+ });
@@ -0,0 +1,6 @@
1
+ /*!
2
+ * Simple-Jekyll-Search v1.7.2 (https://github.com/christian-fei/Simple-Jekyll-Search)
3
+ * Copyright 2015-2018, Christian Fei
4
+ * Licensed under the MIT License.
5
+ */
6
+ !function(){"use strict";var f={load:function w(t,e){var n=function r(){return window.XMLHttpRequest?new window.XMLHttpRequest:new ActiveXObject("Microsoft.XMLHTTP")}();n.open("GET",t,!0),n.onreadystatechange=function i(e,n){return function(){if(4===e.readyState&&200===e.status)try{n(null,JSON.parse(e.responseText))}catch(t){n(t,null)}}}(n,e),n.send()}};(function y(t){if(!function e(t){return!!t&&"undefined"!=typeof t.required&&t.required instanceof Array}(t))throw new Error("-- OptionsValidator: required options missing");if(!(this instanceof y))return new y(t);var r=t.required;this.getRequiredOptions=function(){return r},this.validate=function(e){var n=[];return r.forEach(function(t){"undefined"==typeof e[t]&&n.push(t)}),n}});var n=function g(t,e){var n=e.length,r=t.length;if(n<r)return!1;if(r===n)return t===e;t:for(var i=0,o=0;i<r;i++){for(var u=t.charCodeAt(i);o<n;)if(e.charCodeAt(o++)===u)continue t;return!1}return!0},e=new function t(){this.matches=function(t,e){return n(e.toLowerCase(),t.toLowerCase())}};var r=new function O(){this.matches=function(e,t){return!!e&&(e=e.trim().toLowerCase(),(t=t.trim().toLowerCase()).split(" ").filter(function(t){return 0<=e.indexOf(t)}).length===t.split(" ").length)}};var l={put:function z(t){if(c(t))return s(t);if(function e(t){return Boolean(t)&&"[object Array]"===Object.prototype.toString.call(t)}(t))return function i(t){var e=[];a();for(var n=0,r=t.length;n<r;n++)c(t[n])&&e.push(s(t[n]));return e}(t);return undefined},clear:a,search:function S(t){return t?function a(t,e,n,r){for(var i=[],o=0;o<t.length&&i.length<r.limit;o++){var u=d(t[o],e,n,r);u&&i.push(u)}return i}(o,t,u.searchStrategy,u).sort(u.sort):[]},setOptions:function q(t){(u=t||{}).fuzzy=t.fuzzy||!1,u.limit=t.limit||10,u.searchStrategy=t.fuzzy?e:r,u.sort=t.sort||i}};function i(){return 0}var o=[],u={};function a(){return o.length=0,o}function c(t){return Boolean(t)&&"[object Object]"===Object.prototype.toString.call(t)}function s(t){return o.push(t),o}function d(t,e,n,r){for(var i in t)if(!p(t[i],r.exclude)&&n.matches(t[i],e))return t}function p(t,e){for(var n=!1,r=0,i=(e=e||[]).length;r<i;r++){var o=e[r];!n&&new RegExp(t).test(o)&&(n=!0)}return n}u.fuzzy=!1,u.limit=10,u.searchStrategy=u.fuzzy?e:r,u.sort=i;var h={compile:function j(r){return m.template.replace(m.pattern,function(t,e){var n=m.middleware(e,r[e],m.template);return void 0!==n?n:r[e]||t})},setOptions:function C(t){m.pattern=t.pattern||m.pattern,m.template=t.template||m.template,"function"==typeof t.middleware&&(m.middleware=t.middleware)}},m={};m.pattern=/\{(.*?)\}/g,m.template="",m.middleware=function(){};var v={merge:function L(t,e){var n={};for(var r in t)n[r]=t[r],"undefined"!=typeof e[r]&&(n[r]=e[r]);return n},isJSON:function M(t){try{return!!(t instanceof Object&&JSON.parse(JSON.stringify(t)))}catch(e){return!1}}};!function(t){var o={searchInput:null,resultsContainer:null,json:[],success:Function.prototype,searchResultTemplate:'<li><a href="{url}" title="{desc}">{title}</a></li>',templateMiddleware:Function.prototype,sortMiddleware:function(){return 0},noResultsText:"No results found",limit:10,fuzzy:!1,exclude:[]},n=["searchInput","resultsContainer","json"],r=function y(e){if(!function n(t){return!!t&&"undefined"!=typeof t.required&&t.required instanceof Array}(e))throw new Error("-- OptionsValidator: required options missing");if(!(this instanceof y))return new y(e);var r=e.required;this.getRequiredOptions=function(){return r},this.validate=function(e){var n=[];return r.forEach(function(t){"undefined"==typeof e[t]&&n.push(t)}),n}}({required:n});function i(t){o.success(t),l.put(t),function e(){o.searchInput.addEventListener("keyup",function(t){(function e(t){return-1===[13,16,20,37,38,39,40,91].indexOf(t)})(t.which)&&(u(),c(t.target.value))})}()}function u(){o.resultsContainer.innerHTML=""}function a(t){o.resultsContainer.innerHTML+=t}function c(t){(function e(t){return t&&0<t.length})(t)&&(u(),function i(t,e){var n=t.length;if(0===n)return a(o.noResultsText);for(var r=0;r<n;r++)t[r].query=e,a(h.compile(t[r]))}(l.search(t),t))}function s(t){throw new Error("SimpleJekyllSearch --- "+t)}t.SimpleJekyllSearch=function(t){return 0<r.validate(t).length&&s("You must specify the following required options: "+n),o=v.merge(o,t),h.setOptions({template:o.searchResultTemplate,middleware:o.templateMiddleware}),l.setOptions({fuzzy:o.fuzzy,limit:o.limit,sort:o.sortMiddleware}),v.isJSON(o.json)?i(o.json):function e(n){f.load(n,function(t,e){t&&s("failed to get JSON ("+n+")"),i(e)})}(o.json),{search:c}}}(window)}();
Binary file
metadata ADDED
@@ -0,0 +1,103 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: material-blog-jp
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Johnny Pan
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2019-08-05 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: bundler
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '1.16'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '1.16'
41
+ - !ruby/object:Gem::Dependency
42
+ name: rake
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '12.0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '12.0'
55
+ description:
56
+ email:
57
+ - contact@johnnypan.me
58
+ executables: []
59
+ extensions: []
60
+ extra_rdoc_files: []
61
+ files:
62
+ - LICENSE.txt
63
+ - README.md
64
+ - _includes/footer.html
65
+ - _includes/head.html
66
+ - _layouts/404.html
67
+ - _layouts/about.html
68
+ - _layouts/default.html
69
+ - _layouts/home.html
70
+ - _layouts/post.html
71
+ - _layouts/search.html
72
+ - assets/2019-08-01.jpg
73
+ - assets/2019-08-02.jpg
74
+ - assets/blog-icon.ico
75
+ - assets/css/style.css
76
+ - assets/header.jpg
77
+ - assets/script/script.js
78
+ - assets/script/search-script.js
79
+ - assets/transparent.jpg
80
+ homepage: https://www.johnnypan.me
81
+ licenses:
82
+ - MIT
83
+ metadata: {}
84
+ post_install_message:
85
+ rdoc_options: []
86
+ require_paths:
87
+ - lib
88
+ required_ruby_version: !ruby/object:Gem::Requirement
89
+ requirements:
90
+ - - ">="
91
+ - !ruby/object:Gem::Version
92
+ version: '0'
93
+ required_rubygems_version: !ruby/object:Gem::Requirement
94
+ requirements:
95
+ - - ">="
96
+ - !ruby/object:Gem::Version
97
+ version: '0'
98
+ requirements: []
99
+ rubygems_version: 3.0.3
100
+ signing_key:
101
+ specification_version: 4
102
+ summary: Created a theme for my blog using Material Design Lite.
103
+ test_files: []