jekyll-theme-nangka 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (65) hide show
  1. checksums.yaml +7 -0
  2. data/LICENSE.txt +21 -0
  3. data/README.md +52 -0
  4. data/_includes/footer.html +17 -0
  5. data/_includes/head.html +12 -0
  6. data/_includes/header.html +35 -0
  7. data/_includes/partial/analytics.html +10 -0
  8. data/_includes/partial/breadcrumb.html +37 -0
  9. data/_includes/partial/disqus.html +23 -0
  10. data/_includes/partial/manifest.html +52 -0
  11. data/_includes/partial/mini-bio.html +16 -0
  12. data/_includes/partial/post-item.html +40 -0
  13. data/_includes/partial/scrimage.html +26 -0
  14. data/_includes/svg/icon-facebook.svg +1 -0
  15. data/_includes/svg/icon-github.html +1 -0
  16. data/_includes/svg/icon-github.svg +1 -0
  17. data/_includes/svg/icon-twitter.html +1 -0
  18. data/_includes/svg/icon-twitter.svg +1 -0
  19. data/_layouts/blog.html +21 -0
  20. data/_layouts/compress.html +9 -0
  21. data/_layouts/default.html +17 -0
  22. data/_layouts/home.html +11 -0
  23. data/_layouts/page.html +11 -0
  24. data/_layouts/post.html +50 -0
  25. data/_sass/_base.scss +298 -0
  26. data/_sass/_layout.scss +270 -0
  27. data/_sass/_normalize.scss +525 -0
  28. data/_sass/_syntax-highlighting.scss +204 -0
  29. data/_sass/print.scss +102 -0
  30. data/assets/404.html +24 -0
  31. data/assets/blog.json +5 -0
  32. data/assets/browserconfig.xml +15 -0
  33. data/assets/crossdomain.xml +19 -0
  34. data/assets/css/main.scss +56 -0
  35. data/assets/humans.txt +21 -0
  36. data/assets/icons/114.png +0 -0
  37. data/assets/icons/120.png +0 -0
  38. data/assets/icons/144.png +0 -0
  39. data/assets/icons/150.png +0 -0
  40. data/assets/icons/152.png +0 -0
  41. data/assets/icons/16.png +0 -0
  42. data/assets/icons/180.png +0 -0
  43. data/assets/icons/192.png +0 -0
  44. data/assets/icons/256.png +0 -0
  45. data/assets/icons/310.png +0 -0
  46. data/assets/icons/32.png +0 -0
  47. data/assets/icons/36.png +0 -0
  48. data/assets/icons/48.png +0 -0
  49. data/assets/icons/512.png +0 -0
  50. data/assets/icons/57.png +0 -0
  51. data/assets/icons/60.png +0 -0
  52. data/assets/icons/70.png +0 -0
  53. data/assets/icons/72.png +0 -0
  54. data/assets/icons/76.png +0 -0
  55. data/assets/icons/96.png +0 -0
  56. data/assets/icons/favicon.ico +0 -0
  57. data/assets/icons/icon.svg +31 -0
  58. data/assets/images/avatar.jpg +0 -0
  59. data/assets/js/app.js +35 -0
  60. data/assets/js/sw.js +174 -0
  61. data/assets/manifest.json +70 -0
  62. data/assets/opensearch.xml +13 -0
  63. data/assets/robots.txt +7 -0
  64. data/assets/search.html +16 -0
  65. metadata +261 -0
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: baa7aa42a427288aad8ad46597a571ccef6179b9075e53e4573676c2cca0aef0
4
+ data.tar.gz: c8349a9100d3bfd945d43a05a9e603671af12fc74b69981e9c5e6c05cd404810
5
+ SHA512:
6
+ metadata.gz: ada596342ed3b9f7719d204db14370cb8da65ef60733dda872aefb3f081f7e6eeac64c4d2a726e22b02925b2daf52ba71b30a881e3b7197b334981fba5902d62
7
+ data.tar.gz: 6d141f87e5fd4cd9201ec472d893ef512c7f4ddad404731b64d3df00f1e9b6d6cbfbdd752e35ef4b10617b6b4ca467f04b0630479b3a6b7f7378b97a283c4106
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2018 Rahmat Subekti
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
+ # jekyll-theme-nangka
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 "jekyll-theme-nangka"
16
+ ```
17
+
18
+ And add this line to your Jekyll site's `_config.yml`:
19
+
20
+ ```yaml
21
+ theme: jekyll-theme-nangka
22
+ ```
23
+
24
+ And then execute:
25
+
26
+ $ bundle
27
+
28
+ Or install it yourself as:
29
+
30
+ $ gem install jekyll-theme-nangka
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 `jekyll-theme-nangka.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,17 @@
1
+ <footer class="site-footer">
2
+ <small class="copy">
3
+ {{ site.title }} &copy; {{ site.time | date: '%Y' }}
4
+ </small>
5
+ </footer>
6
+ {%- unless jekyll.environment == "development" -%}
7
+ {%- include partial/analytics.html -%}
8
+ <!--script src="https://www.gstatic.com/firebasejs/3.6.1/firebase.js"></script-->
9
+ <script type="text/javascript" src="{{ '/assets/js/app.js' | absolute_url }}" async></script>
10
+ {%- endunless -%}
11
+ {%- if page.script -%}
12
+ {%- if page.script contains '://' -%}
13
+ <script type="text/javascript" src="{{ page.script }}" async></script>
14
+ {%- else -%}
15
+ <script type="text/javascript" src="{{ page.script | absolute_url }}" async></script>
16
+ {%- endif -%}
17
+ {%- endif -%}
@@ -0,0 +1,12 @@
1
+ <head>
2
+ <meta charset="UTF-8">
3
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
4
+ <meta http-equiv="X-UA-Compatible" content="ie=edge">
5
+ <title>{%- if page.title -%}{{ page.title }} - {{ site.title }}{%- else -%}{{ site.title }}{%- endif -%}</title>
6
+ {%- seo title=false -%}
7
+ {%- include partial/scrimage.html post=page type='ogimage' -%}
8
+ <meta name="generator" content="Jekyll {{ jekyll.version }}" />
9
+ <link rel="stylesheet" href="{{ '/assets/css/main.css' | relative_url }}" />{%- feed_meta -%}
10
+ {%- include partial/manifest.html -%}
11
+ {%- if site.google_site_verification -%}<meta name="google-site-verification" content="{{site.google_site_verification}}" />{%- endif -%}
12
+ </head>
@@ -0,0 +1,35 @@
1
+ <header class="site-header">
2
+ {%- if page.layout == "home" or page.layout == "blog" or page.layout == "default"-%}
3
+ <h1 class="site-title">
4
+ <a href="{{ '/' | relative_url }}">{{ site.title }}</a>
5
+ </h1>
6
+ {%- else -%}
7
+ <h3 class="site-title">
8
+ <a href="{{ '/' | relative_url }}">{{ site.title }}</a>
9
+ </h3>
10
+ {%- endif -%}
11
+ <nav class="site-nav" role="navigation">
12
+ <input type="checkbox" id="nav-trigger" class="hidden">
13
+ <label for="nav-trigger"><svg viewBox="0 0 18 15" width="16px" height="13px">
14
+ <path 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.032C17.335,0,18,0.665,18,1.484L18,1.484z M18,7.516C18,8.335,17.335,9,16.516,9H1.484C0.665,9,0,8.335,0,7.516l0,0 c0-0.82,0.665-1.484,1.484-1.484h15.032C17.335,6.031,18,6.696,18,7.516L18,7.516z M18,13.516C18,14.335,17.335,15,16.516,15H1.484 C0.665,15,0,14.335,0,13.516l0,0c0-0.82,0.665-1.483,1.484-1.483h15.032C17.335,12.031,18,12.695,18,13.516L18,13.516z"></path>
15
+ </svg></label>
16
+ <div class="nav-links">
17
+ {%- assign blog = true -%}
18
+ {%- for page in site.pages -%}
19
+ {%- if page.menu -%}
20
+ {%- if page.layout == 'blog' -%}
21
+ {%- if blog -%}
22
+ {%- assign blog = false -%}
23
+ <a href="{{ page.url | relative_url }}">{{ page.menu }}</a>
24
+ {%- endif -%}
25
+ {%- else -%}
26
+ <a href="{{ page.url | relative_url }}">{{ page.menu }}</a>
27
+ {%- endif -%}
28
+ {%- endif -%}
29
+ {%- endfor -%}
30
+ {%- if site.github_username -%}
31
+ <a aria-label="My github profile page" rel="nofollow" href="https://github.com/{{ site.github_username }}">Github</a>
32
+ {%- endif -%}
33
+ </div>
34
+ </nav>
35
+ </header>
@@ -0,0 +1,10 @@
1
+ {%- if site.google_analytics -%}
2
+ <script>
3
+ (function(s,u,b,e,k,t,i){s['GoogleAnalyticsObject']=k;s[k]=s[k]||function(){
4
+ (s[k].q=s[k].q||[]).push(arguments)},s[k].l=1*new Date();t=u.createElement(b),
5
+ i=u.getElementsByTagName(b)[0];t.async=1;t.src=e;i.parentNode.insertBefore(t,i)
6
+ })(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
7
+ ga('create', '{{ site.google_analytics }}', 'auto');
8
+ ga('send', 'pageview');
9
+ </script>
10
+ {%- endif -%}
@@ -0,0 +1,37 @@
1
+ <ol itemscope itemtype="https://schema.org/BreadcrumbList" class="breadcrumb">
2
+ <li itemprop="itemListElement" itemscope itemtype="https://schema.org/ListItem">
3
+ <a href="/" itemprop="item">
4
+ <span itemprop="name">Home</span>
5
+ </a>
6
+ <meta itemprop="position" content="1" />
7
+ </li>
8
+ {% assign crumbs = page.url | split: '/' %}
9
+ {% assign crumbs_total = crumbs | size | minus: 1 %}
10
+ {% for crumb in crumbs offset: 1 %}
11
+ {%- assign position = forloop.index |plus: 1 -%}
12
+ {% if forloop.index == crumbs_total %}
13
+ <li itemprop="itemListElement" itemscope itemtype="https://schema.org/ListItem" class="active">
14
+ <a itemprop="item" href="{{ site.baseurl }}{{ page.url }}">
15
+ <span itemprop="name">{{page.title}}</span>
16
+ </a>
17
+ <meta itemprop="position" content={{ position }} />
18
+ </li>
19
+ {% else %}
20
+ {% assign crumb_limit = forloop.index | plus: 1 %}
21
+ {% capture crumb_url %}{% for c in crumbs limit: crumb_limit %}{{ c | append: '/' }}{% endfor %}{% endcapture %}
22
+ {% capture crumb_with_index %}{{ crumb_url | append: 'index.html' }}{% endcapture %}
23
+ {% capture current_page %}{{ site.baseurl }}{{ page.url }}{% endcapture %}
24
+ {% for p in site.pages %}
25
+ {% if crumb_with_index != current_page and crumb_with_index == p.url %}
26
+ <li itemprop="itemListElement" itemscope itemtype="https://schema.org/ListItem">
27
+ <a itemprop="item" href="{{ crumb_with_index }}">
28
+ <span itemprop="name">{{ crumb | replace:'-',' ' | capitalize}}</span>
29
+ </a>
30
+ <meta itemprop="position" content={{ position }} />
31
+ </li>
32
+ {% break %}
33
+ {% endif %}
34
+ {% endfor %}
35
+ {% endif %}
36
+ {% endfor %}
37
+ </ol>
@@ -0,0 +1,23 @@
1
+ {%- if page.comments and site.disqus_shortname -%}
2
+ <div id="disqus_thread"></div>
3
+ <script>
4
+
5
+ /**
6
+ * RECOMMENDED CONFIGURATION VARIABLES: EDIT AND UNCOMMENT THE SECTION BELOW TO INSERT DYNAMIC VALUES FROM YOUR PLATFORM OR CMS.
7
+ * LEARN WHY DEFINING THESE VARIABLES IS IMPORTANT: https://disqus.com/admin/universalcode/#configuration-variables
8
+ */
9
+ /*
10
+ var disqus_config = function () {
11
+ this.page.url = PAGE_URL; // Replace PAGE_URL with your page's canonical URL variable
12
+ this.page.identifier = PAGE_IDENTIFIER; // Replace PAGE_IDENTIFIER with your page's unique identifier variable
13
+ };
14
+ */
15
+ (function() { // DON'T EDIT BELOW THIS LINE
16
+ var d = document, s = d.createElement('script');
17
+ s.src = 'https://{{site.disqus_shortname}}.disqus.com/embed.js';
18
+ s.setAttribute('data-timestamp', +new Date());
19
+ (d.head || d.body).appendChild(s);
20
+ })();
21
+ </script>
22
+ <noscript>Please enable JavaScript to view the <a href="https://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript>
23
+ {%- endif -%}
@@ -0,0 +1,52 @@
1
+ <!-- See https://goo.gl/OOhYW5 -->
2
+ <link rel="manifest" href="{{ '/manifest.json' | relative_url }}">
3
+ <!-- See https://goo.gl/qRE0vM -->
4
+ <meta name="theme-color" content="#a2466c">
5
+ <!-- Add to homescreen for Chrome on Android. Fallback for manifest.json -->
6
+ <meta name="mobile-web-app-capable" content="yes">
7
+ <meta name="application-name" content="{{ site.title }}"/>
8
+ <!-- Default icons -->
9
+ <link rel="icon" href="{{ site.favicon | default: '/assets/icons/favicon.ico' | relative_url}}" type="image/x-icon">
10
+ <link rel="shortcut icon" href="{{ site.favicon | default: '/assets/icons/favicon.ico' | relative_url}}" type="image/x-icon">
11
+ <link rel="icon" type="image/png" href="{{'/assets/icons/32.png' | relative_url}}" sizes="32x32">
12
+ <link rel="icon" type="image/png" href="{{'/assets/icons/192.png' | relative_url}}" sizes="192x192">
13
+ <link rel="icon" type="image/png" href="{{'/assets/icons/96.png' | relative_url}}" sizes="96x96">
14
+ <link rel="icon" type="image/png" href="{{'/assets/icons/16.png' | relative_url}}" sizes="16x16">
15
+ <link rel="mask-icon" href="{{'/assets/icons/icon.svg' | relative_url}}" color="#5bbad5">
16
+ <!-- Homescreen icons -->
17
+ <link rel="apple-touch-icon" href="{{'/assets/icons/48.png' | relative_url}}">
18
+ <link rel="apple-touch-icon" sizes="57x57" href="{{'/assets/icons/57.png' | relative_url}}">
19
+ <link rel="apple-touch-icon" sizes="60x60" href="{{'/assets/icons/60.png' | relative_url}}">
20
+ <link rel="apple-touch-icon" sizes="72x72" href="{{'/assets/icons/72.png' | relative_url}}">
21
+ <link rel="apple-touch-icon" sizes="76x76" href="{{'/assets/icons/76.png' | relative_url}}">
22
+ <link rel="apple-touch-icon" sizes="96x96" href="{{'/assets/icons/96.png' | relative_url}}">
23
+ <link rel="apple-touch-icon" sizes="120x120" href="{{'/assets/icons/120.png' | relative_url}}">
24
+ <link rel="apple-touch-icon" sizes="144x144" href="{{'/assets/icons/144.png' | relative_url}}">
25
+ <link rel="apple-touch-icon" sizes="152x152" href="{{'/assets/icons/152.png' | relative_url}}">
26
+ <link rel="apple-touch-icon" sizes="180x180" href="{{'/assets/icons/180.png' | relative_url}}">
27
+ <link rel="apple-touch-icon" sizes="192x192" href="{{'/assets/icons/192.png' | relative_url}}">
28
+ <!-- Add to homescreen for Safari on iOS -->
29
+ <meta name="apple-mobile-web-app-capable" content="yes">
30
+ <meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
31
+ <meta name="apple-mobile-web-app-title" content="{{ site.title }}">
32
+ <!-- specifying a startup image -->
33
+ <link rel="apple-touch-startup-image" href="{{'/assets/icons/144.png' | relative_url}}">
34
+ <!-- enables or disables automatic detection of possible phone numbers -->
35
+ <meta name="format-detection" content="telephone=no">
36
+ <!-- Tile icon for Windows 8 (144x144 + tile color) -->
37
+ <meta name="msapplication-TileImage" content="{{'/assets/icons/144.png' | relative_url}}">
38
+ <meta name="msapplication-TileColor" content="#fff">
39
+ <meta name="msapplication-tap-highlight" content="no">
40
+ <meta name="msapplication-navbutton-color" content="#fff">
41
+ <link href="{{ '/opensearch.xml' | relative_url }}" rel="search" title="{{ site.title }}" type="application/opensearchdescription+xml">
42
+ <!-- Dublin Core metadata -->
43
+ <meta name="DC.title" content="{{ page.title | default: site.title }}" />
44
+ <meta name="DC.creator" content="{{ page.author | default: site.twitter_username}}" />
45
+ {%- if page.editor -%}
46
+ <meta name="DC.contributor" content="{{ page.editor }}" />
47
+ {%- endif -%}
48
+ {%- if page.rights -%}
49
+ <meta name="DC.rights" content="{{ page.rights }}" />
50
+ {%- endif -%}
51
+ <meta name="DC.date" content="{{ page.date | default: site.time }}" />
52
+ <meta name="DC.source" content="{{ site.title }}" />
@@ -0,0 +1,16 @@
1
+ <div class="mini-bio">
2
+ <div class="author" itemprop="author" itemscope itemtype="http://schema.org/Person">
3
+ <a rel="me" href="http://twitter.com/{{ site.twitter_username }}">
4
+ <img alt="{{ site.title }}" class="avatar" src="{{ site.author_avatar | default: '/assets/icons/512.png' | relative_url }}" width="70" height="70">
5
+ <div><span class="name" itemprop="name">{{ site.title }}</span><span>{{ site.description }}</span></div>
6
+ </a>
7
+ </div>
8
+ <span class="share">
9
+ <a class="twitter" id="twitter" aria-labelledby="twitter post-title" href="https://twitter.com/intent/tweet?text={{ page.url | prepend: site.baseurl | prepend: site.url }} - {{page.title}} by @{{ site.twitter.username }}">
10
+ <span class="icon">{%- include svg/icon-twitter.svg -%} Tweet</span>
11
+ </a>
12
+ <a class="facebook" id="facebook" aria-labelledby="facebook post-title" href="https://www.facebook.com/dialog/feed?app_id=600141373527242&display=popup&amp;caption={{ page.title | url_encode }}&link={{ site.url | append: site.baseurl | append: page.url | url_encode }}&redirect_uri={{ site.url | append: site.baseurl | append: page.url | url_encode }}">
13
+ <span class="icon">{%- include svg/icon-facebook.svg -%} Share</span>
14
+ </a>
15
+ </span>
16
+ </div>
@@ -0,0 +1,40 @@
1
+ {%- assign post = include.post -%}
2
+ {%- assign foundImage = false -%}
3
+ {%- assign imgAlt = false -%}
4
+ {%- assign images = post.content | split:"<img " -%}
5
+ {%- for image in images -%}
6
+ {%- if image contains 'src=' -%}
7
+ {%- if foundImage == false -%}
8
+ {%- assign imgAlt = image | split: 'alt="' | last -%}
9
+ {%- assign imgAlt = capt | split: '" />' | first -%}
10
+ {%- assign foundImage = image | split:'src="' | last -%}
11
+ {%- assign foundImage = foundImage | split:'" alt=' | first -%}
12
+ {% break %}
13
+ {%- endif -%}
14
+ {%- endif -%}
15
+ {%- endfor -%}
16
+ {%- if post.image -%} {%- assign foundImage = post.image -%}{%- endif -%}
17
+
18
+ <a class="post-item" href="{{ post.url | prepend: site.baseurl }}">
19
+ {%- unless foundImage -%}
20
+ <h3>{{ post.title | capitalize }}</h3>
21
+ <small class="post-meta">{{ post.date | date: "%b %-d, %Y" }}</small>
22
+ <p class="description">
23
+ {%- if post.description -%}
24
+ {{ post.description | strip_html | strip_newlines | truncate: 120 }}
25
+ {%- else -%}
26
+ {{ post.content | strip_html | strip_newlines | truncate: 120 }}
27
+ {%- endif -%}
28
+ </p>
29
+ {%- else -%}
30
+ <img src="{{ post.image | default: foundImage }}" alt="{{ imgAlt | default: post.title }}" />
31
+ <div class="image-caption">
32
+ <div class="post-title"><h3>{{ post.title | capitalize }}</h3></div>
33
+ <small class="post-meta">
34
+ <time datetime="{{ page.date | date_to_xmlschema }}" itemprop="datePublished">
35
+ {{ post.date | date: "%b %-d, %Y" }}
36
+ </time>
37
+ </small>
38
+ </div>
39
+ {%- endunless -%}
40
+ </a>
@@ -0,0 +1,26 @@
1
+ {% assign post = include.post %}
2
+ {%- assign foundImage = false -%}
3
+ {%- assign imageUrl = false -%}
4
+ {%- assign images = post.content | split:'<img ' -%}
5
+ {%- for image in images -%}
6
+ {%- if image contains 'src' -%}
7
+ {%- unless foundImage -%}
8
+ {%- assign foundImage = image | split:'/>' | first -%}
9
+ {%- assign curImage = image | split:'src="' | last -%}
10
+ {%- assign imageUrl = curImage | split:'" alt=' | first -%}
11
+ {% break %}
12
+ {%- endunless -%}
13
+ {%- endif -%}
14
+ {%- endfor -%}
15
+
16
+ {%- if post.date -%}
17
+ {%- case include.type -%}
18
+ {%- when 'microdata' -%}
19
+ <meta itemprop="image" content="{{ post.image | default : imageUrl | default : '/assets/icons/512.png' | absolute_url }}" />
20
+ {% when 'ogimage' %}
21
+ {%- unless post.image -%}
22
+ <meta property="og:image" content="{{ imageUrl | default : '/assets/icons/512.png' | absolute_url }}" />
23
+ {%- endunless -%}
24
+ {%- else -%}
25
+ {% endcase %}
26
+ {% endif %}
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M18.77 7.46H14.5v-1.9c0-.9.6-1.1 1-1.1h3V.5h-4.33C10.24.5 9.5 3.44 9.5 5.32v2.15h-3v4h3v12h5v-12h3.85l.42-4z"/></svg>
@@ -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>
@@ -0,0 +1 @@
1
+ <svg width="15px" height="15px" viewBox="0 0 16 16"><path fill="#828282" d="M7.999,0.431c-4.285,0-7.76,3.474-7.76,7.761 c0,3.428,2.223,6.337,5.307,7.363c0.388,0.071,0.53-0.168,0.53-0.374c0-0.184-0.007-0.672-0.01-1.32 c-2.159,0.469-2.614-1.04-2.614-1.04c-0.353-0.896-0.862-1.135-0.862-1.135c-0.705-0.481,0.053-0.472,0.053-0.472 c0.779,0.055,1.189,0.8,1.189,0.8c0.692,1.186,1.816,0.843,2.258,0.645c0.071-0.502,0.271-0.843,0.493-1.037 C4.86,11.425,3.049,10.76,3.049,7.786c0-0.847,0.302-1.54,0.799-2.082C3.768,5.507,3.501,4.718,3.924,3.65 c0,0,0.652-0.209,2.134,0.796C6.677,4.273,7.34,4.187,8,4.184c0.659,0.003,1.323,0.089,1.943,0.261 c1.482-1.004,2.132-0.796,2.132-0.796c0.423,1.068,0.157,1.857,0.077,2.054c0.497,0.542,0.798,1.235,0.798,2.082 c0,2.981-1.814,3.637-3.543,3.829c0.279,0.24,0.527,0.713,0.527,1.437c0,1.037-0.01,1.874-0.01,2.129 c0,0.208,0.14,0.449,0.534,0.373c3.081-1.028,5.302-3.935,5.302-7.362C15.76,3.906,12.285,0.431,7.999,0.431z"/></svg>
@@ -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>
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M23.44 4.83c-.8.37-1.5.38-2.22.02.93-.56.98-.96 1.32-2.02-.88.52-1.86.9-2.9 1.1-.82-.88-2-1.43-3.3-1.43-2.5 0-4.55 2.04-4.55 4.54 0 .36.03.7.1 1.04-3.77-.2-7.12-2-9.36-4.75-.4.67-.6 1.45-.6 2.3 0 1.56.8 2.95 2 3.77-.74-.03-1.44-.23-2.05-.57v.06c0 2.2 1.56 4.03 3.64 4.44-.67.2-1.37.2-2.06.08.58 1.8 2.26 3.12 4.25 3.16C5.78 18.1 3.37 18.74 1 18.46c2 1.3 4.4 2.04 6.97 2.04 8.35 0 12.92-6.92 12.92-12.93 0-.2 0-.4-.02-.6.9-.63 1.96-1.22 2.56-2.14z"/></svg>
@@ -0,0 +1,21 @@
1
+ ---
2
+ layout: default
3
+ menu: Blog
4
+ ---
5
+ <div class="home">
6
+ <h4 class="page-heading">Page {{ paginator.page }}/{{ paginator.total_pages }}</h4>
7
+ <section class="post-list">
8
+ {%- for post in paginator.posts -%}
9
+ {%- include partial/post-item.html post=post -%}
10
+ {%- endfor -%}
11
+ </section>
12
+ {%- if paginator.total_pages > 1 -%}
13
+ <!-- Pagination links -->
14
+ <div class="pagination">
15
+ {%- if paginator.previous_page -%} <a href="{{ paginator.previous_page_path | prepend: site.baseurl }}" class="prev">Newer</a>
16
+ {%- endif -%}
17
+ {%- if paginator.next_page -%} <a href="{{ paginator.next_page_path | prepend: site.baseurl }}" class="next">Older</a>
18
+ {%- endif -%}
19
+ </div>
20
+ {%- endif -%}
21
+ </div>
@@ -0,0 +1,9 @@
1
+ ---
2
+ # Jekyll layout that compresses HTML
3
+ # v3.0.1
4
+ # http://jch.penibelst.de/
5
+ # © 2014–2015 Anatol Broder
6
+ # MIT License
7
+ ---
8
+ {%- capture _LINE_FEED -%}
9
+ {%- endcapture -%}{%- if site.compress_html.ignore.envs contains jekyll.environment -%}{{ content }}{%- else -%}{%- capture _content -%}{{ content }}{%- endcapture -%}{%- assign _profile = site.compress_html.profile -%}{%- if site.compress_html.endings == "all" -%}{%- assign _endings = "html head body li dt dd p rt rp optgroup option colgroup caption thead tbody tfoot tr td th" | split: " " -%}{%- else -%}{%- assign _endings = site.compress_html.endings -%}{%- endif -%}{%- for _element in _endings -%}{%- capture _end -%}</{{ _element }}>{%- endcapture -%}{%- assign _content = _content | remove: _end -%}{%- endfor -%}{%- if _profile and _endings -%}{%- assign _profile_endings = _content | size | plus: 1 -%}{%- endif -%}{%- for _element in site.compress_html.startings -%}{%- capture _start -%}<{{ _element }}>{%- endcapture -%}{%- assign _content = _content | remove: _start -%}{%- endfor -%}{%- if _profile and site.compress_html.startings -%}{%- assign _profile_startings = _content | size | plus: 1 -%}{%- endif -%}{%- if site.compress_html.comments == "all" -%}{%- assign _comments = "<!-- -->" | split: " " -%}{%- else -%}{%- assign _comments = site.compress_html.comments -%}{%- endif -%}{%- if _comments.size == 2 -%}{%- capture _comment_befores -%}.{{ _content }}{%- endcapture -%}{%- assign _comment_befores = _comment_befores | split: _comments.first -%}{%- for _comment_before in _comment_befores -%}{%- if forloop.first -%}{%- continue -%}{%- endif -%}{%- capture _comment_outside -%}{%- if _carry -%}{{ _comments.first }}{%- endif -%}{{ _comment_before }}{%- endcapture -%}{%- capture _comment -%}{%- unless _carry -%}{{ _comments.first }}{%- endunless -%}{{ _comment_outside | split: _comments.last | first }}{%- if _comment_outside contains _comments.last -%}{{ _comments.last }}{%- assign _carry = false -%}{%- else -%}{%- assign _carry = true -%}{%- endif -%}{%- endcapture -%}{%- assign _content = _content | remove_first: _comment -%}{%- endfor -%}{%- if _profile -%}{%- assign _profile_comments = _content | size | plus: 1 -%}{%- endif -%}{%- endif -%}{%- assign _pre_befores = _content | split: "<pre" -%}{%- assign _content = "" -%}{%- for _pre_before in _pre_befores -%}{%- assign _pres = _pre_before | split: "</pre>" -%}{%- assign _pres_after = "" -%}{%- if _pres.size != 0 -%}{%- if site.compress_html.blanklines -%}{%- assign _lines = _pres.last | split: _LINE_FEED -%}{%- assign _lastchar = _pres.last | split: "" | last -%}{%- assign _outerloop = forloop -%}{%- capture _pres_after -%}{%- for _line in _lines -%}{%- assign _trimmed = _line | split: " " | join: " " -%}{%- if forloop.last and _lastchar == _LINE_FEED -%}{%- unless _outerloop.last -%}{{ _LINE_FEED }}{%- endunless -%}{%- continue -%}{%- endif -%}{%- if _trimmed != empty or forloop.last -%}{%- unless forloop.first -%}{{ _LINE_FEED }}{%- endunless -%}{{ _line }}{%- endif -%}{%- endfor -%}{%- endcapture -%}{%- else -%}{%- assign _pres_after = _pres.last | split: " " | join: " " -%}{%- endif -%}{%- endif -%}{%- capture _content -%}{{ _content }}{%- if _pre_before contains "</pre>" -%}<pre{{ _pres.first }}</pre>{%- endif -%}{%- unless _pre_before contains "</pre>" and _pres.size == 1 -%}{{ _pres_after }}{%- endunless -%}{%- endcapture -%}{%- endfor -%}{%- if _profile -%}{%- assign _profile_collapse = _content | size | plus: 1 -%}{%- endif -%}{%- if site.compress_html.clippings == "all" -%}{%- assign _clippings = "html head title base link meta style body article section nav aside h1 h2 h3 h4 h5 h6 hgroup header footer address p hr blockquote ol ul li dl dt dd figure figcaption main div table caption colgroup col tbody thead tfoot tr td th" | split: " " -%}{%- else -%}{%- assign _clippings = site.compress_html.clippings -%}{%- endif -%}{%- for _element in _clippings -%}{%- assign _edges = " <e;<e; </e>;</e>;</e> ;</e>" | replace: "e", _element | split: ";" -%}{%- assign _content = _content | replace: _edges[0], _edges[1] | replace: _edges[2], _edges[3] | replace: _edges[4], _edges[5] -%}{%- endfor -%}{%- if _profile and _clippings -%}{%- assign _profile_clippings = _content | size | plus: 1 -%}{%- endif -%}{{ _content }}{%- if _profile -%} <table id="compress_html_profile_{{ site.time | date: "%Y%m%d" }}" class="compress_html_profile"> <thead> <tr> <td>Step <td>Bytes <tbody> <tr> <td>raw <td>{{ content | size }}{%- if _profile_endings -%} <tr> <td>endings <td>{{ _profile_endings }}{%- endif -%}{%- if _profile_startings -%} <tr> <td>startings <td>{{ _profile_startings }}{%- endif -%}{%- if _profile_comments -%} <tr> <td>comments <td>{{ _profile_comments }}{%- endif -%}{%- if _profile_collapse -%} <tr> <td>collapse <td>{{ _profile_collapse }}{%- endif -%}{%- if _profile_clippings -%} <tr> <td>clippings <td>{{ _profile_clippings }}{%- endif -%} </table>{%- endif -%}{%- endif -%}
@@ -0,0 +1,17 @@
1
+ ---
2
+ layout: compress
3
+ ---
4
+ <!DOCTYPE html>
5
+ <html lang="en">
6
+ {%- include head.html -%}
7
+ <body>
8
+ <div class="wrapper{% if page.layout %} {{ page.layout }}{% endif %}">
9
+ {%- include header.html -%}
10
+ <div class="content-wrapper">
11
+ {%- include partial/breadcrumb.html -%}
12
+ {{ content }}
13
+ </div>
14
+ {%- include footer.html -%}
15
+ </div>
16
+ </body>
17
+ </html>
@@ -0,0 +1,11 @@
1
+ ---
2
+ layout: default
3
+ ---
4
+ <div class="home">
5
+ <h4 class="page-heading">{{ site.description }}</h4>
6
+ <section class="post-list">
7
+ {%- for post in site.posts limit:10 -%}
8
+ {%- include partial/post-item.html post=post -%}
9
+ {%- endfor -%}
10
+ </section>
11
+ </div>
@@ -0,0 +1,11 @@
1
+ ---
2
+ layout: default
3
+ ---
4
+ <article class="post">
5
+ <header class="post-header">
6
+ <h1 class="post-title">{{ page.title }}</h1>
7
+ </header>
8
+ <div class="post-content">
9
+ {{ content | replace: '<a href="http', '<a rel=" noopener external nofollow" target="_blank" href="http' }}
10
+ </div>
11
+ </article>
@@ -0,0 +1,50 @@
1
+ ---
2
+ layout: default
3
+ ---
4
+ {%- assign postContent = content | replace: '<p><img', '<figure class="cover"><img' | replace: '<a href="http', '<a rel=" noopener external nofollow" target="_blank" href="http' -%}
5
+ {%- assign images = postContent | split:"<img " -%}
6
+ {%- for image in images -%}
7
+ {%- if image contains 'src=' -%}
8
+ {%- assign capt = image | split: 'alt="' | last -%}
9
+ {%- capture capt -%}<figcaption>{{capt | split: '" />' | first }}</figcaption></figure>{%- endcapture -%}
10
+ {%- assign rependp = image | replace_first: '</p>',capt -%}
11
+ {%- assign postContent = postContent | replace: image, rependp -%}
12
+ {%- endif -%}
13
+ {%- endfor -%}
14
+ <article class="post" itemscope itemtype="http://schema.org/BlogPosting">
15
+ <header class="post-header">
16
+ <h1 class="post-title" itemprop="name headline">{{ page.title | capitalize }}</h1>
17
+ <small class="post-meta">
18
+ <time datetime="{{ page.date | date_to_xmlschema }}" itemprop="datePublished">
19
+ {{ page.date | date: "%b %-d, %Y" }}
20
+ </time>
21
+ <span class="time">
22
+ | {{ page.content | number_of_words | divided_by:180 }} Minute Read
23
+ </span>
24
+ </small>
25
+ {%- include partial/scrimage.html post=page type='microdata' -%}
26
+ </header>
27
+ <div class="post-content" itemprop="articleBody">
28
+ {{ postContent }}
29
+ <div class="
30
+ hide" itemprop="publisher" itemscope itemtype="https://schema.org/Organization">
31
+ <div itemprop="logo" itemscope itemtype="https://schema.org/ImageObject">
32
+ <meta itemprop="url" content="{{ '/assets/icons/512.png' | relative_url }}">
33
+ <meta itemprop="width" content="512">
34
+ <meta itemprop="height" content="512">
35
+ </div>
36
+ <meta itemprop="name" content="{{ site.title }}'s">
37
+ </div>
38
+ </div>
39
+ <footer class="post-footer">
40
+ {%- include partial/mini-bio.html -%}
41
+ <!-- Post Navigation -->
42
+ <div class="pagination">
43
+ {%- if page.previous.url -%}<a class="prev" href="{{ page.previous.url | prepend: site.baseurl }}">Previous
44
+ Post</a>{%- endif -%}
45
+ {%- if page.next.url -%}<a class="next" href="{{ page.next.url | prepend: site.baseurl }}">Next Post</a>
46
+ {%- endif -%}
47
+ </div>
48
+ </footer>
49
+ </article>
50
+ {%- include partial/disqus.html -%}