limp-dark 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (63) hide show
  1. checksums.yaml +7 -0
  2. data/LICENSE.txt +21 -0
  3. data/README.md +45 -0
  4. data/README.md~ +45 -0
  5. data/_config.yml +73 -0
  6. data/_config.yml~ +51 -0
  7. data/_data/social.yml +6 -0
  8. data/_includes/extensions/comments/disqus.html +17 -0
  9. data/_includes/extensions/comments/gitment.html +16 -0
  10. data/_includes/extensions/google-analytics.html +19 -0
  11. data/_includes/extensions/google-tag.html +9 -0
  12. data/_includes/functions.html +26 -0
  13. data/_includes/functions/get_categories.html +12 -0
  14. data/_includes/functions/get_datetimes.html +18 -0
  15. data/_includes/functions/get_reading_time.html +41 -0
  16. data/_includes/functions/get_tags.html +12 -0
  17. data/_includes/functions/get_value.html +19 -0
  18. data/_includes/functions/log.html +17 -0
  19. data/_includes/head.html +18 -0
  20. data/_includes/views/footer.html +71 -0
  21. data/_includes/views/header.html +44 -0
  22. data/_includes/views/main.html +21 -0
  23. data/_includes/views/pagination.html +47 -0
  24. data/_includes/views/paginator.html +25 -0
  25. data/_includes/views/post-header.html +26 -0
  26. data/_includes/views/post-item.html +13 -0
  27. data/_includes/views/segments.html +21 -0
  28. data/_includes/views/share-buttons.html +43 -0
  29. data/_includes/views/sidebar.html +0 -0
  30. data/_layouts/404.html +31 -0
  31. data/_layouts/archives.html +17 -0
  32. data/_layouts/categories.html +15 -0
  33. data/_layouts/default.html +15 -0
  34. data/_layouts/page.html +7 -0
  35. data/_layouts/post.html +83 -0
  36. data/_layouts/tags.html +26 -0
  37. data/_sass/_extends.sass +0 -0
  38. data/_sass/_mixins.sass +6 -0
  39. data/_sass/_veriables.sass +19 -0
  40. data/_sass/base/_base-dir.sass +1 -0
  41. data/_sass/base/_base.sass +220 -0
  42. data/_sass/layouts/_footer.sass +80 -0
  43. data/_sass/layouts/_header.sass +0 -0
  44. data/_sass/layouts/_layouts-dir.sass +3 -0
  45. data/_sass/layouts/_main.sass +30 -0
  46. data/_sass/modules/_container.sass +28 -0
  47. data/_sass/modules/_modules-dir.sass +6 -0
  48. data/_sass/modules/_nav.sass +108 -0
  49. data/_sass/modules/_post-footer.sass +52 -0
  50. data/_sass/modules/_post-header.sass +27 -0
  51. data/_sass/modules/_post_list.sass +38 -0
  52. data/_sass/modules/_segments.sass +39 -0
  53. data/_sass/states/_states-dir.sass +1 -0
  54. data/_sass/states/_states.sass +0 -0
  55. data/_sass/style.sass +10 -0
  56. data/_sass/themes/_dark.sass +0 -0
  57. data/_sass/themes/_themes-dir.sass +1 -0
  58. data/assets/css/gitment.css +1145 -0
  59. data/assets/css/gitment.dark.css +79 -0
  60. data/assets/css/main.sass +5 -0
  61. data/assets/images/limp.png +0 -0
  62. data/assets/js/gitment.browser.js +3751 -0
  63. metadata +188 -0
@@ -0,0 +1,17 @@
1
+ {% if include.params.level %}
2
+ {% assign level = include.params.level %}
3
+ {% endif %}
4
+
5
+ {% if include.params.msg %}
6
+ {% assign msg = include.params.msg %}
7
+ {% endif %}
8
+
9
+ {% if site.debug == true %}
10
+ {% if level == 'debug' %}
11
+ {% if jekyll.environment == "development" %}
12
+ <!-- {{ msg }} -->
13
+ {% endif %}
14
+ {% else %}
15
+ <!-- {{ msg }} -->
16
+ {% endif %}
17
+ {% endif %}
@@ -0,0 +1,18 @@
1
+ <head>
2
+ <!-- Nedded Meta tags -->
3
+ <meta charset="UTF-8">
4
+ <meta http-equiv="X-UA-Compatible" content="IE=edge">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
+ <meta name="author" content="{{site.author}}" />
7
+ <!-- Prefetch DNS -->
8
+ <!-- <link rel="dns-prefetch" href=""> -->
9
+ {% seo %}
10
+ <!-- Favicon -->
11
+ <link rel="shortcut icon" type="image/x-icon" href="{{ 'favicon.ico' | relative_url }}" />
12
+ <!-- Apple touch icons -->
13
+ <!-- <link rel="apple-touch-icon-precomposed" href="">
14
+ <link rel="apple-touch-icon" sizes="152x152" href=""> -->
15
+
16
+ <!-- my css files -->
17
+ <link rel="stylesheet" href="{{ '/assets/css/main.css' | relative_url }}">
18
+ </head>
@@ -0,0 +1,71 @@
1
+ <footer class="footer">
2
+ <div class="container">
3
+ <!-- <div class="footer__section">
4
+ <div class="about">
5
+ {% if site.logo %}
6
+ <img src="{{ site.logo | relative_url }}" alt="{{site.title}}">
7
+ {% else %}
8
+ <strong>{{ site.title | upcase}}</strong>
9
+ {% endif %}
10
+ <p>{{ site.description }}</p>
11
+ </div>
12
+ <div class="menu">
13
+ <strong>MENU</strong>
14
+ <ul class="footer__links">
15
+ {%- assign default_paths = site.pages | where: "dir", "/" | map: "path" -%}
16
+ {%- assign page_paths = site.navbar_pages | default: default_paths -%}
17
+ {% for path in page_paths %}
18
+ {%- assign my_page = site.pages | where: "path", path | first -%}
19
+ {%- if my_page.title -%}
20
+ <li><a href="{{ my_page.url | relative_url }}">{{ my_page.title | escape | upcase}}</a></li>
21
+ {% endif %}
22
+ {% endfor %}
23
+ </ul>
24
+ </div>
25
+ <div class="contact">
26
+ <strong>CONTACT US</strong>
27
+ <p>5534 Somewhere In.</p>
28
+ <P>The World 22193-10212</P>
29
+ <a href="mailto:abc@mail.com">Mail Us</a>
30
+ </div>
31
+ </div> -->
32
+ <div class="footer__extra">
33
+ <div class="social">
34
+ <ul>
35
+ <li>
36
+ <a href="http://twitter.com/{{site.data.social.twitter}}/" target="_blank" rel="noreferrer" title="Twitter">
37
+ <svg class="svg-icon" viewBox="0 0 20 20">
38
+ <path d="M18.258,3.266c-0.693,0.405-1.46,0.698-2.277,0.857c-0.653-0.686-1.586-1.115-2.618-1.115c-1.98,0-3.586,1.581-3.586,3.53c0,0.276,0.031,0.545,0.092,0.805C6.888,7.195,4.245,5.79,2.476,3.654C2.167,4.176,1.99,4.781,1.99,5.429c0,1.224,0.633,2.305,1.596,2.938C2.999,8.349,2.445,8.19,1.961,7.925C1.96,7.94,1.96,7.954,1.96,7.97c0,1.71,1.237,3.138,2.877,3.462c-0.301,0.08-0.617,0.123-0.945,0.123c-0.23,0-0.456-0.021-0.674-0.062c0.456,1.402,1.781,2.422,3.35,2.451c-1.228,0.947-2.773,1.512-4.454,1.512c-0.291,0-0.575-0.016-0.855-0.049c1.588,1,3.473,1.586,5.498,1.586c6.598,0,10.205-5.379,10.205-10.045c0-0.153-0.003-0.305-0.01-0.456c0.7-0.499,1.308-1.12,1.789-1.827c-0.644,0.28-1.334,0.469-2.06,0.555C17.422,4.782,17.99,4.091,18.258,3.266"></path>
39
+ </svg>
40
+ </a>
41
+ </li>
42
+ <li>
43
+ <a href="http://facebook.com/{{site.data.social.facebook}}/" target="_blank" rel="noreferrer" title="Facebook">
44
+ <svg class="svg-icon" viewBox="0 0 20 20">
45
+ <path d="M11.344,5.71c0-0.73,0.074-1.122,1.199-1.122h1.502V1.871h-2.404c-2.886,0-3.903,1.36-3.903,3.646v1.765h-1.8V10h1.8v8.128h3.601V10h2.403l0.32-2.718h-2.724L11.344,5.71z"></path>
46
+ </svg>
47
+ </a>
48
+ </li>
49
+ <li>
50
+ <a href="http://instagram.com/{{site.data.social.instagram}}/" target="_blank" rel="noreferrer" title="Instagram">
51
+ <svg class="svg-icon" viewBox="0 0 20 20">
52
+ <path d="M14.52,2.469H5.482c-1.664,0-3.013,1.349-3.013,3.013v9.038c0,1.662,1.349,3.012,3.013,3.012h9.038c1.662,0,3.012-1.35,3.012-3.012V5.482C17.531,3.818,16.182,2.469,14.52,2.469 M13.012,4.729h2.26v2.259h-2.26V4.729z M10,6.988c1.664,0,3.012,1.349,3.012,3.012c0,1.664-1.348,3.013-3.012,3.013c-1.664,0-3.012-1.349-3.012-3.013C6.988,8.336,8.336,6.988,10,6.988 M16.025,14.52c0,0.831-0.676,1.506-1.506,1.506H5.482c-0.831,0-1.507-0.675-1.507-1.506V9.247h1.583C5.516,9.494,5.482,9.743,5.482,10c0,2.497,2.023,4.52,4.518,4.52c2.494,0,4.52-2.022,4.52-4.52c0-0.257-0.035-0.506-0.076-0.753h1.582V14.52z"></path>
53
+ </svg>
54
+ </a>
55
+ </li>
56
+ <li>
57
+ <a href="http://pinterest.com/{{site.data.social.pinterest}}/" target="_blank" rel="noreferrer" title="Pinterest">
58
+ <svg class="svg-icon" viewBox="0 0 20 20">
59
+ <path d="M9.797,2.214C9.466,2.256,9.134,2.297,8.802,2.338C8.178,2.493,7.498,2.64,6.993,2.935C5.646,3.723,4.712,4.643,4.087,6.139C3.985,6.381,3.982,6.615,3.909,6.884c-0.48,1.744,0.37,3.548,1.402,4.173c0.198,0.119,0.649,0.332,0.815,0.049c0.092-0.156,0.071-0.364,0.128-0.546c0.037-0.12,0.154-0.347,0.127-0.496c-0.046-0.255-0.319-0.416-0.434-0.62C5.715,9.027,5.703,8.658,5.59,8.101c0.009-0.075,0.017-0.149,0.026-0.224C5.65,7.254,5.755,6.805,5.948,6.362c0.564-1.301,1.47-2.025,2.931-2.458c0.327-0.097,1.25-0.252,1.734-0.149c0.289,0.05,0.577,0.099,0.866,0.149c1.048,0.33,1.811,0.938,2.218,1.888c0.256,0.591,0.33,1.725,0.154,2.483c-0.085,0.36-0.072,0.667-0.179,0.993c-0.397,1.206-0.979,2.323-2.295,2.633c-0.868,0.205-1.519-0.324-1.733-0.869c-0.06-0.151-0.161-0.418-0.101-0.671c0.229-0.978,0.56-1.854,0.815-2.831c0.243-0.931-0.218-1.665-0.943-1.837C8.513,5.478,7.816,6.312,7.579,6.858C7.39,7.292,7.276,8.093,7.426,8.672c0.047,0.183,0.269,0.674,0.23,0.844c-0.174,0.755-0.372,1.568-0.587,2.31c-0.223,0.771-0.344,1.562-0.56,2.311c-0.1,0.342-0.096,0.709-0.179,1.066v0.521c-0.075,0.33-0.019,0.916,0.051,1.242c0.045,0.209-0.027,0.467,0.076,0.621c0.002,0.111,0.017,0.135,0.052,0.199c0.319-0.01,0.758-0.848,0.917-1.094c0.304-0.467,0.584-0.967,0.816-1.514c0.208-0.494,0.241-1.039,0.408-1.566c0.12-0.379,0.292-0.824,0.331-1.24h0.025c0.066,0.229,0.306,0.395,0.485,0.52c0.56,0.4,1.525,0.77,2.573,0.523c1.188-0.281,2.133-0.838,2.755-1.664c0.457-0.609,0.804-1.313,1.07-2.112c0.131-0.392,0.158-0.826,0.256-1.241c0.241-1.043-0.082-2.298-0.384-2.981C14.847,3.35,12.902,2.17,9.797,2.214"></path>
60
+ </svg>
61
+ </a>
62
+ </li>
63
+ </ul>
64
+ </div>
65
+ <div class="copyright">
66
+ <p>&copy; 2020 All Rights Reserved.</p>
67
+ <p>Made with &hearts; &amp; Proudly powered by <a href="https://jekyllrb.com/" target="_blank" rel="noreferrer" title="Jekyll is a simple, blog-aware, static site generator.">Jekyll ,</a> <a href="http://github.com" target="_blank" rel="noreferrer" title="GitHub is a development platform inspired by the way you work.">GitHub</a> &amp; <a href="#" target="_blank" rel="noreferrer" title="Lightning fast jekyll theme.">Limp</a>.</p>
68
+ </div>
69
+ </div>
70
+ </div>
71
+ </footer>
@@ -0,0 +1,44 @@
1
+ <header>
2
+ <nav class="navbar container">
3
+ <a href="{{site.baseurl}}/">
4
+ {% if site.logo %}
5
+ <img src="{{ site.logo | relative_url }}" alt="{{site.title}}">
6
+ {% else %}
7
+ <h1 class="logo">{{site.title}}</h1>
8
+ {% endif %}
9
+ </a>
10
+
11
+ <ul class="nav-links">
12
+ {%- assign default_paths = site.pages | where: "dir", "/" | map: "path" -%}
13
+ {%- assign page_paths = site.navbar_pages | default: default_paths -%}
14
+ {% for path in page_paths %}
15
+ {%- assign my_page = site.pages | where: "path", path | first -%}
16
+ {%- if my_page.title -%}
17
+ <li><a href="{{ my_page.url | relative_url }}">{{ my_page.title | escape | upcase}}</a></li>
18
+ {% endif %}
19
+ {% endfor %}
20
+ </ul>
21
+ <div class="hamburger-menu">
22
+ <div class="bar1"></div>
23
+ <div class="bar2"></div>
24
+ <div class="bar3"></div>
25
+ </div>
26
+ </nav>
27
+ </header>
28
+
29
+ <script>
30
+ const navLinks = document.querySelector('.nav-links');
31
+ const burger = document.querySelector('.hamburger-menu');
32
+ const navbar = document.querySelector('.navbar');
33
+
34
+ // Event listeners
35
+ burger.addEventListener('click', () => {
36
+ navLinks.classList.toggle('nav-active');
37
+ burger.classList.toggle('bar-change');
38
+ })
39
+
40
+ // Sticky navbar
41
+ window.addEventListener('scroll', () => {
42
+ navbar.classList.toggle('sticky', scrollY > 0)
43
+ })
44
+ </script>
@@ -0,0 +1,21 @@
1
+ <main class="container">
2
+ {% if page.layout == "post" %}
3
+ <style>
4
+ p{
5
+ line-height: 1.5;
6
+ font-size: 17.6px;
7
+ }
8
+ </style>
9
+ {% endif %}
10
+ <section class="post-container">
11
+
12
+ </section>
13
+ <section class="main">
14
+ {{content}}
15
+ <br>
16
+ <br>
17
+ </section>
18
+ <section class="post-container">
19
+
20
+ </section>
21
+ </main>
@@ -0,0 +1,47 @@
1
+ {%- if page.paginator -%}
2
+ {%- assign paginator = page.paginator -%}
3
+ {%- elsif paginator == nil -%}
4
+ {%- assign paginator = site -%}
5
+ {%- endif -%}
6
+
7
+ {%- if paginator.posts.size > 0 -%}
8
+ <div class="pagination">
9
+ <!-- Post list links -->
10
+ <ul class="post-list">
11
+ {%- for post in paginator.posts -%}
12
+ <li>
13
+ {%- assign date_format = site.yat.date_format | default: "%b %-d, %Y" -%}
14
+
15
+ {% assign article = post.content %}
16
+ {%- include functions.html func='get_reading_time' -%}
17
+ {% assign reading_time = return %}
18
+
19
+ <h2 class="post-title">
20
+ {%- assign post_url = post.url | relative_url -%}
21
+ <a class="post-link" href="{{ post_url }}">
22
+ {{ post.title | escape }}
23
+ </a>
24
+ </h2>
25
+ <div class="post-meta">
26
+ <span class="post-date"><svg class="svg-icon" viewBox="0 0 20 20"><path d="M16.254,3.399h-0.695V3.052c0-0.576-0.467-1.042-1.041-1.042c-0.576,0-1.043,0.467-1.043,1.042v0.347H6.526V3.052c0-0.576-0.467-1.042-1.042-1.042S4.441,2.476,4.441,3.052v0.347H3.747c-0.768,0-1.39,0.622-1.39,1.39v11.813c0,0.768,0.622,1.39,1.39,1.39h12.507c0.768,0,1.391-0.622,1.391-1.39V4.789C17.645,4.021,17.021,3.399,16.254,3.399z M14.17,3.052c0-0.192,0.154-0.348,0.348-0.348c0.191,0,0.348,0.156,0.348,0.348v0.347H14.17V3.052z M5.136,3.052c0-0.192,0.156-0.348,0.348-0.348S5.831,2.86,5.831,3.052v0.347H5.136V3.052z M16.949,16.602c0,0.384-0.311,0.694-0.695,0.694H3.747c-0.384,0-0.695-0.311-0.695-0.694V7.568h13.897V16.602z M16.949,6.874H3.052V4.789c0-0.383,0.311-0.695,0.695-0.695h12.507c0.385,0,0.695,0.312,0.695,0.695V6.874z M5.484,11.737c0.576,0,1.042-0.467,1.042-1.042c0-0.576-0.467-1.043-1.042-1.043s-1.042,0.467-1.042,1.043C4.441,11.271,4.908,11.737,5.484,11.737z M5.484,10.348c0.192,0,0.347,0.155,0.347,0.348c0,0.191-0.155,0.348-0.347,0.348s-0.348-0.156-0.348-0.348C5.136,10.503,5.292,10.348,5.484,10.348z M14.518,11.737c0.574,0,1.041-0.467,1.041-1.042c0-0.576-0.467-1.043-1.041-1.043c-0.576,0-1.043,0.467-1.043,1.043C13.475,11.271,13.941,11.737,14.518,11.737z M14.518,10.348c0.191,0,0.348,0.155,0.348,0.348c0,0.191-0.156,0.348-0.348,0.348c-0.193,0-0.348-0.156-0.348-0.348C14.17,10.503,14.324,10.348,14.518,10.348z M14.518,15.212c0.574,0,1.041-0.467,1.041-1.043c0-0.575-0.467-1.042-1.041-1.042c-0.576,0-1.043,0.467-1.043,1.042C13.475,14.745,13.941,15.212,14.518,15.212z M14.518,13.822c0.191,0,0.348,0.155,0.348,0.347c0,0.192-0.156,0.348-0.348,0.348c-0.193,0-0.348-0.155-0.348-0.348C14.17,13.978,14.324,13.822,14.518,13.822z M10,15.212c0.575,0,1.042-0.467,1.042-1.043c0-0.575-0.467-1.042-1.042-1.042c-0.576,0-1.042,0.467-1.042,1.042C8.958,14.745,9.425,15.212,10,15.212z M10,13.822c0.192,0,0.348,0.155,0.348,0.347c0,0.192-0.156,0.348-0.348,0.348s-0.348-0.155-0.348-0.348C9.653,13.978,9.809,13.822,10,13.822z M5.484,15.212c0.576,0,1.042-0.467,1.042-1.043c0-0.575-0.467-1.042-1.042-1.042s-1.042,0.467-1.042,1.042C4.441,14.745,4.908,15.212,5.484,15.212z M5.484,13.822c0.192,0,0.347,0.155,0.347,0.347c0,0.192-0.155,0.348-0.347,0.348s-0.348-0.155-0.348-0.348C5.136,13.978,5.292,13.822,5.484,13.822z M10,11.737c0.575,0,1.042-0.467,1.042-1.042c0-0.576-0.467-1.043-1.042-1.043c-0.576,0-1.042,0.467-1.042,1.043C8.958,11.271,9.425,11.737,10,11.737z M10,10.348c0.192,0,0.348,0.155,0.348,0.348c0,0.191-0.156,0.348-0.348,0.348s-0.348-0.156-0.348-0.348C9.653,10.503,9.809,10.348,10,10.348z"></path></svg> {{ post.date | date: date_format }}</span>
27
+ <span class="post-reading-time left-vsplit"> | <svg class="svg-icon" viewBox="0 0 20 20"><path d="M11.088,2.542c0.063-0.146,0.103-0.306,0.103-0.476c0-0.657-0.534-1.19-1.19-1.19c-0.657,0-1.19,0.533-1.19,1.19c0,0.17,0.038,0.33,0.102,0.476c-4.085,0.535-7.243,4.021-7.243,8.252c0,4.601,3.73,8.332,8.332,8.332c4.601,0,8.331-3.73,8.331-8.332C18.331,6.562,15.173,3.076,11.088,2.542z M10,1.669c0.219,0,0.396,0.177,0.396,0.396S10.219,2.462,10,2.462c-0.22,0-0.397-0.177-0.397-0.396S9.78,1.669,10,1.669z M10,18.332c-4.163,0-7.538-3.375-7.538-7.539c0-4.163,3.375-7.538,7.538-7.538c4.162,0,7.538,3.375,7.538,7.538C17.538,14.957,14.162,18.332,10,18.332z M10.386,9.26c0.002-0.018,0.011-0.034,0.011-0.053V5.24c0-0.219-0.177-0.396-0.396-0.396c-0.22,0-0.397,0.177-0.397,0.396v3.967c0,0.019,0.008,0.035,0.011,0.053c-0.689,0.173-1.201,0.792-1.201,1.534c0,0.324,0.098,0.625,0.264,0.875c-0.079,0.014-0.155,0.043-0.216,0.104l-2.244,2.244c-0.155,0.154-0.155,0.406,0,0.561s0.406,0.154,0.561,0l2.244-2.242c0.061-0.062,0.091-0.139,0.104-0.217c0.251,0.166,0.551,0.264,0.875,0.264c0.876,0,1.587-0.711,1.587-1.587C11.587,10.052,11.075,9.433,10.386,9.26z M10,11.586c-0.438,0-0.793-0.354-0.793-0.792c0-0.438,0.355-0.792,0.793-0.792c0.438,0,0.793,0.355,0.793,0.792C10.793,11.232,10.438,11.586,10,11.586z"></path></svg> {{ reading_time }}</span>
28
+ </div>
29
+ <p class="post-excerpt">
30
+ {{ post.content | strip_html | truncatewords: 50 }}
31
+ </p>
32
+ <div class="post-tags">
33
+ {%- for tag in post.tags -%}
34
+ {% assign tag_path = '/tags.html#' | append: {{tag}} %}
35
+ <a class="post-tag" href="{{ tag_path | relative_url }}">#{{tag}}</a>
36
+ {%- endfor -%}
37
+ </div>
38
+ </li>
39
+ {%- endfor -%}
40
+ </ul>
41
+
42
+ <!-- Pagination links -->
43
+ {%- if paginator.posts.size < site.posts.size -%}
44
+ {%- include views/paginator.html -%}
45
+ {%- endif -%}
46
+ </div>
47
+ {%- endif -%}
@@ -0,0 +1,25 @@
1
+ {% if include.paginator %}
2
+ {% assign paginator = include.paginator %}
3
+ {% endif %}
4
+
5
+ {% if paginator.posts.size > 0 %}
6
+ <div class="paginator">
7
+ <span class="previous">
8
+ {% if paginator.previous_page %}
9
+ <a href="{{ paginator.previous_page_path | relative_url }}">Prev</a>
10
+ {% else %}
11
+ <span>Prev</span>
12
+ {% endif %}
13
+ </span>
14
+
15
+ <span class="indicator"> {{ paginator.page }}/{{ paginator.total_pages }}</span>
16
+
17
+ <span class="next">
18
+ {% if paginator.next_page %}
19
+ <a href="{{ paginator.next_page_path | relative_url }}">Next</a>
20
+ {% else %}
21
+ <span>Next</span>
22
+ {% endif %}
23
+ </span>
24
+ </div>
25
+ {% endif %}
@@ -0,0 +1,26 @@
1
+
2
+ <header class="post-header">
3
+ <h1 class="post-title p-name" itemprop="name headline">{{ heading | default: page.title | escape }}</h1>
4
+ <h5 class="post-subtitle">{{ subheading | default: page.subtitle | escape }}</h5>
5
+
6
+ <p class="post-meta">
7
+ <time class="dt-published" datetime="{{ page.date | date_to_xmlschema }}" itemprop="datePublished">
8
+ {%- assign date_format = site.yat.date_format | default: "%b %-d, %Y" -%}
9
+ <svg class="svg-icon" viewBox="0 0 20 20"><path d="M16.254,3.399h-0.695V3.052c0-0.576-0.467-1.042-1.041-1.042c-0.576,0-1.043,0.467-1.043,1.042v0.347H6.526V3.052c0-0.576-0.467-1.042-1.042-1.042S4.441,2.476,4.441,3.052v0.347H3.747c-0.768,0-1.39,0.622-1.39,1.39v11.813c0,0.768,0.622,1.39,1.39,1.39h12.507c0.768,0,1.391-0.622,1.391-1.39V4.789C17.645,4.021,17.021,3.399,16.254,3.399z M14.17,3.052c0-0.192,0.154-0.348,0.348-0.348c0.191,0,0.348,0.156,0.348,0.348v0.347H14.17V3.052z M5.136,3.052c0-0.192,0.156-0.348,0.348-0.348S5.831,2.86,5.831,3.052v0.347H5.136V3.052z M16.949,16.602c0,0.384-0.311,0.694-0.695,0.694H3.747c-0.384,0-0.695-0.311-0.695-0.694V7.568h13.897V16.602z M16.949,6.874H3.052V4.789c0-0.383,0.311-0.695,0.695-0.695h12.507c0.385,0,0.695,0.312,0.695,0.695V6.874z M5.484,11.737c0.576,0,1.042-0.467,1.042-1.042c0-0.576-0.467-1.043-1.042-1.043s-1.042,0.467-1.042,1.043C4.441,11.271,4.908,11.737,5.484,11.737z M5.484,10.348c0.192,0,0.347,0.155,0.347,0.348c0,0.191-0.155,0.348-0.347,0.348s-0.348-0.156-0.348-0.348C5.136,10.503,5.292,10.348,5.484,10.348z M14.518,11.737c0.574,0,1.041-0.467,1.041-1.042c0-0.576-0.467-1.043-1.041-1.043c-0.576,0-1.043,0.467-1.043,1.043C13.475,11.271,13.941,11.737,14.518,11.737z M14.518,10.348c0.191,0,0.348,0.155,0.348,0.348c0,0.191-0.156,0.348-0.348,0.348c-0.193,0-0.348-0.156-0.348-0.348C14.17,10.503,14.324,10.348,14.518,10.348z M14.518,15.212c0.574,0,1.041-0.467,1.041-1.043c0-0.575-0.467-1.042-1.041-1.042c-0.576,0-1.043,0.467-1.043,1.042C13.475,14.745,13.941,15.212,14.518,15.212z M14.518,13.822c0.191,0,0.348,0.155,0.348,0.347c0,0.192-0.156,0.348-0.348,0.348c-0.193,0-0.348-0.155-0.348-0.348C14.17,13.978,14.324,13.822,14.518,13.822z M10,15.212c0.575,0,1.042-0.467,1.042-1.043c0-0.575-0.467-1.042-1.042-1.042c-0.576,0-1.042,0.467-1.042,1.042C8.958,14.745,9.425,15.212,10,15.212z M10,13.822c0.192,0,0.348,0.155,0.348,0.347c0,0.192-0.156,0.348-0.348,0.348s-0.348-0.155-0.348-0.348C9.653,13.978,9.809,13.822,10,13.822z M5.484,15.212c0.576,0,1.042-0.467,1.042-1.043c0-0.575-0.467-1.042-1.042-1.042s-1.042,0.467-1.042,1.042C4.441,14.745,4.908,15.212,5.484,15.212z M5.484,13.822c0.192,0,0.347,0.155,0.347,0.347c0,0.192-0.155,0.348-0.347,0.348s-0.348-0.155-0.348-0.348C5.136,13.978,5.292,13.822,5.484,13.822z M10,11.737c0.575,0,1.042-0.467,1.042-1.042c0-0.576-0.467-1.043-1.042-1.043c-0.576,0-1.042,0.467-1.042,1.043C8.958,11.271,9.425,11.737,10,11.737z M10,10.348c0.192,0,0.348,0.155,0.348,0.348c0,0.191-0.156,0.348-0.348,0.348s-0.348-0.156-0.348-0.348C9.653,10.503,9.809,10.348,10,10.348z"></path></svg>{{ page.date | date: date_format }}
10
+ </time>
11
+ <span style="padding: 0 15px 0 15px">|</span>
12
+ {% assign article = page.content %}
13
+ {%- include functions.html func='get_reading_time' -%}
14
+ {% assign reading_time = return %}
15
+ <span class="post-reading-time left-vsplit"><svg class="svg-icon" viewBox="0 0 20 20"><path d="M11.088,2.542c0.063-0.146,0.103-0.306,0.103-0.476c0-0.657-0.534-1.19-1.19-1.19c-0.657,0-1.19,0.533-1.19,1.19c0,0.17,0.038,0.33,0.102,0.476c-4.085,0.535-7.243,4.021-7.243,8.252c0,4.601,3.73,8.332,8.332,8.332c4.601,0,8.331-3.73,8.331-8.332C18.331,6.562,15.173,3.076,11.088,2.542z M10,1.669c0.219,0,0.396,0.177,0.396,0.396S10.219,2.462,10,2.462c-0.22,0-0.397-0.177-0.397-0.396S9.78,1.669,10,1.669z M10,18.332c-4.163,0-7.538-3.375-7.538-7.539c0-4.163,3.375-7.538,7.538-7.538c4.162,0,7.538,3.375,7.538,7.538C17.538,14.957,14.162,18.332,10,18.332z M10.386,9.26c0.002-0.018,0.011-0.034,0.011-0.053V5.24c0-0.219-0.177-0.396-0.396-0.396c-0.22,0-0.397,0.177-0.397,0.396v3.967c0,0.019,0.008,0.035,0.011,0.053c-0.689,0.173-1.201,0.792-1.201,1.534c0,0.324,0.098,0.625,0.264,0.875c-0.079,0.014-0.155,0.043-0.216,0.104l-2.244,2.244c-0.155,0.154-0.155,0.406,0,0.561s0.406,0.154,0.561,0l2.244-2.242c0.061-0.062,0.091-0.139,0.104-0.217c0.251,0.166,0.551,0.264,0.875,0.264c0.876,0,1.587-0.711,1.587-1.587C11.587,10.052,11.075,9.433,10.386,9.26z M10,11.586c-0.438,0-0.793-0.354-0.793-0.792c0-0.438,0.355-0.792,0.793-0.792c0.438,0,0.793,0.355,0.793,0.792C10.793,11.232,10.438,11.586,10,11.586z"></path></svg> {{ reading_time }}</span>
16
+ </p>
17
+
18
+ {%- if page.tags.size > 0 -%}
19
+ <div class="post-tags">
20
+ {%- for tag in page.tags -%}
21
+ <a class="post-tag" href="{{ '/tags.html ' | relative_url }}#{{tag}}">#{{tag}}</a>
22
+ {%- endfor -%}
23
+ </div>
24
+ {%- endif -%}
25
+
26
+ </header>
@@ -0,0 +1,13 @@
1
+ {%- if include.item -%}
2
+ {%- assign item = include.item -%}
3
+ {%- endif -%}
4
+
5
+ {%- assign post = item -%}
6
+
7
+ {% assign date_format = site.yat.date_format | default: "%b %-d, %Y" %}
8
+ <span class="post-meta">{{ post.date | date: date_format }}</span>
9
+ <span>
10
+ <a class="post-link" href="{{ post.url | relative_url }}">
11
+ {{ post.title | escape }}
12
+ </a>
13
+ </span>
@@ -0,0 +1,21 @@
1
+ {%- if include.keys -%}
2
+ {%- assign keys = include.keys -%}
3
+ {%- endif -%}
4
+
5
+ {%- if include.field -%}
6
+ {%- assign field = include.field -%}
7
+ {%- endif -%}
8
+
9
+ <div class="page-segments">
10
+ <ul class="page-segments__list">
11
+ {% for key in keys %}
12
+ <h2 id="{{ key }}" class="segment-name">{{ key }}</h2>
13
+ {% assign items = site.posts | where: field, key %}
14
+ {% for item in items %}
15
+ {% if item != nil %}
16
+ <li> {% include views/post-item.html %} </li>
17
+ {% endif %}
18
+ {% endfor %}
19
+ {% endfor %}
20
+ </ul>
21
+ </div>
@@ -0,0 +1,43 @@
1
+ {% if include.pageurl != nil and include.pageurl != '' %}
2
+ {% assign pageurl = include.pageurl %}
3
+ {% else %}
4
+ {% assign pageurl = page.url %}
5
+ {% endif %}
6
+
7
+ <style>
8
+ .share{margin-top: 2rem;}
9
+ #share-buttons {display: inline-block; vertical-align: middle; }
10
+ #share-buttons:after {content: ""; display: block; clear: both;}
11
+ #share-buttons > div {
12
+ position: relative;
13
+ text-align: left;
14
+ height: 46px;
15
+ width: 42px;
16
+ float: left;
17
+ text-align: center;
18
+ }
19
+ #share-buttons > div > svg {height: 16px; fill: #929292; margin-top: 10px;}
20
+ #share-buttons > div:hover {cursor: pointer;}
21
+ #share-buttons > div.facebook:hover > svg {fill: #3B5998;}
22
+ #share-buttons > div.twitter:hover > svg {fill: #55ACEE;}
23
+ #share-buttons > div.linkedin:hover > svg {fill: #0077b5;}
24
+ #share-buttons > div.pinterest:hover > svg {fill: #CB2027;}
25
+ #share-buttons > div.mail:hover > svg {fill: #EA4335;}
26
+ #share-buttons > div.instagram:hover > svg {fill: #C73B92;}
27
+ #share-buttons > div.facebook > svg {height: 27px; margin-top: 9px;}
28
+ #share-buttons > div.twitter > svg {height: 30px; margin-top: 8px;}
29
+ #share-buttons > div.linkedin > svg {height: 28px; margin-top: 7px;}
30
+ #share-buttons > div.pinterest > svg {height: 30px; margin-top: 9px;}
31
+ #share-buttons > div.mail > svg {height: 28px; margin-top: 11px;}
32
+ </style>
33
+
34
+ <div class="share">
35
+ <span style="color: #929292;"><strong>Share on: </strong></span>
36
+ <div id="share-buttons">
37
+ <div class="facebook" title="Share this on Facebook" onclick="window.open('https://www.facebook.com/sharer/sharer.php?u={{ site.url }}{{ site.baseurl }}{{ page.url }}', 'pop-up', 'left=20,top=20,width=500,height=500,toolbar=1,resizable=0');"><svg viewBox="0 0 1792 1792" xmlns="http://www.w3.org/2000/svg"><path d="M1343 12v264h-157q-86 0-116 36t-30 108v189h293l-39 296h-254v759h-306v-759h-255v-296h255v-218q0-186 104-288.5t277-102.5q147 0 228 12z"/></svg></div>
38
+ <div class="twitter" title="Share this on Twitter" onclick="window.open('https://twitter.com/intent/tweet?text={{ page.title }}&url={{ site.url }}{{ site.baseurl }}{{ page.url }}', 'pop-up', 'left=20,top=20,width=500,height=500,toolbar=1,resizable=0');"><svg viewBox="0 0 1792 1792" xmlns="http://www.w3.org/2000/svg"><path d="M1684 408q-67 98-162 167 1 14 1 42 0 130-38 259.5t-115.5 248.5-184.5 210.5-258 146-323 54.5q-271 0-496-145 35 4 78 4 225 0 401-138-105-2-188-64.5t-114-159.5q33 5 61 5 43 0 85-11-112-23-185.5-111.5t-73.5-205.5v-4q68 38 146 41-66-44-105-115t-39-154q0-88 44-163 121 149 294.5 238.5t371.5 99.5q-8-38-8-74 0-134 94.5-228.5t228.5-94.5q140 0 236 102 109-21 205-78-37 115-142 178 93-10 186-50z"/></svg></div>
39
+ <div class="linkedin" title="Share this on Linkedin" onclick="window.open('https://www.linkedin.com/shareArticle?mini=true&url={{ site.url }}{{ site.baseurl }}{{ page.url }}&title={{ page.title }}&summary={{ page.description }}&source={{ site.title }}', 'pop-up', 'left=20,top=20,width=500,height=500,toolbar=1,resizable=0');"><svg viewBox="0 0 1792 1792" xmlns="http://www.w3.org/2000/svg"><path d="M477 625v991h-330v-991h330zm21-306q1 73-50.5 122t-135.5 49h-2q-82 0-132-49t-50-122q0-74 51.5-122.5t134.5-48.5 133 48.5 51 122.5zm1166 729v568h-329v-530q0-105-40.5-164.5t-126.5-59.5q-63 0-105.5 34.5t-63.5 85.5q-11 30-11 81v553h-329q2-399 2-647t-1-296l-1-48h329v144h-2q20-32 41-56t56.5-52 87-43.5 114.5-15.5q171 0 275 113.5t104 332.5z"/></svg></div>
40
+ {% if page.banner %}<div class="pinterest" title="Share this on Pinterest" onclick="window.open('https://pinterest.com/pin/create/button/?url=&media={{ site.url }}{{ page.image }}&description=', 'pop-up', 'left=20,top=20,width=500,height=500,toolbar=1,resizable=0');"><svg viewBox="0 0 1792 1792" xmlns="http://www.w3.org/2000/svg"><path d="M256 597q0-108 37.5-203.5t103.5-166.5 152-123 185-78 202-26q158 0 294 66.5t221 193.5 85 287q0 96-19 188t-60 177-100 149.5-145 103-189 38.5q-68 0-135-32t-96-88q-10 39-28 112.5t-23.5 95-20.5 71-26 71-32 62.5-46 77.5-62 86.5l-14 5-9-10q-15-157-15-188 0-92 21.5-206.5t66.5-287.5 52-203q-32-65-32-169 0-83 52-156t132-73q61 0 95 40.5t34 102.5q0 66-44 191t-44 187q0 63 45 104.5t109 41.5q55 0 102-25t78.5-68 56-95 38-110.5 20-111 6.5-99.5q0-173-109.5-269.5t-285.5-96.5q-200 0-334 129.5t-134 328.5q0 44 12.5 85t27 65 27 45.5 12.5 30.5q0 28-15 73t-37 45q-2 0-17-3-51-15-90.5-56t-61-94.5-32.5-108-11-106.5z"/></svg></div>{% endif %}
41
+ <div class="mail" title="Share this through Email" onclick="window.open('mailto:?subject={{ page.title }}&amp;body=Check out this site {{ site.url }}{{ site.baseurl }}{{ page.url }}');"><svg viewBox="0 0 1792 1792" xmlns="http://www.w3.org/2000/svg"><path d="M1792 710v794q0 66-47 113t-113 47h-1472q-66 0-113-47t-47-113v-794q44 49 101 87 362 246 497 345 57 42 92.5 65.5t94.5 48 110 24.5h2q51 0 110-24.5t94.5-48 92.5-65.5q170-123 498-345 57-39 100-87zm0-294q0 79-49 151t-122 123q-376 261-468 325-10 7-42.5 30.5t-54 38-52 32.5-57.5 27-50 9h-2q-23 0-50-9t-57.5-27-52-32.5-54-38-42.5-30.5q-91-64-262-182.5t-205-142.5q-62-42-117-115.5t-55-136.5q0-78 41.5-130t118.5-52h1472q65 0 112.5 47t47.5 113z"/></svg></div>
42
+ </div>
43
+ </div>
File without changes
@@ -0,0 +1,31 @@
1
+ ---
2
+ layout: default
3
+ ---
4
+
5
+ <style type="text/css" media="screen">
6
+ .wrapper {
7
+ margin: 10px auto;
8
+ max-width: 600px;
9
+ text-align: center;
10
+ }
11
+ h1 {
12
+ margin: 30px 0;
13
+ font-size: 4em;
14
+ line-height: 1;
15
+ letter-spacing: -1px;
16
+ }
17
+ .sidebar{
18
+ display: none;
19
+ }
20
+ a.back-to-home{
21
+ color: #ec8322 ;
22
+ }
23
+ </style>
24
+
25
+ <div class="wrapper">
26
+ <h1>404</h1>
27
+
28
+ <p><strong>Page not found :(</strong></p>
29
+ <p>Try to check other pages through the menu. </p>
30
+ <p><a href="{{site.baseurl}}/" class="back-to-home">&larr; Back to the Home</a></p>
31
+ </div>
@@ -0,0 +1,17 @@
1
+ ---
2
+ layout: page
3
+ ---
4
+
5
+ {%- if site.posts.size > 0 -%}
6
+
7
+ {% include functions.html func='log' level='debug' msg='Get datetimes value' %}
8
+
9
+ {% assign filter = '%Y' %}
10
+ {% include functions.html func='get_datetimes' %}
11
+ {% assign datetimes = return %}
12
+
13
+ {% assign keys = datetimes | reverse %}
14
+ {% assign field = 'date' %}
15
+ {% include views/segments.html %}
16
+
17
+ {%- endif -%}
@@ -0,0 +1,15 @@
1
+ ---
2
+ layout: page
3
+ ---
4
+
5
+ {%- if site.posts.size > 0 -%}
6
+
7
+ {%- include functions.html func='log' level='debug' msg='Get value' -%}
8
+ {%- include functions.html func='get_categories' -%}
9
+ {% assign categories = return %}
10
+
11
+ {% assign keys = categories %}
12
+ {% assign field = 'categories' %}
13
+ {%- include views/segments.html -%}
14
+
15
+ {%- endif -%}
@@ -0,0 +1,15 @@
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+
4
+ {% include head.html %}
5
+
6
+ <body>
7
+
8
+ {% include views/header.html %}
9
+
10
+ {% include views/main.html %}
11
+
12
+ {% include views/footer.html %}
13
+
14
+ </body>
15
+ </html>