testc100 0.1.3 → 0.1.7

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e238dd98343de95ceaa0c764625b63b7efe9c85ffa5e428df9b3e53d475d2fdb
4
- data.tar.gz: 125508c28929ba08c4d6feda57b917c3b12d455dcc16a5dceb8d486efaf8510f
3
+ metadata.gz: 0a6b5f5f896319757af1192a2e5b42902f91603b380c13787ecf72375fdc4936
4
+ data.tar.gz: acf24a8fd292b4457ca1bda6e3086b3a1cc571c19bd2cc1777fbb07b668fca84
5
5
  SHA512:
6
- metadata.gz: 54453e624dfaaee7c6b99844debf5f5ec7f586be938c1ca0b06e1fc69791555cd532da0bc5a1d2648dd31f298f33bf544ce639706168acb5b5841be4fd84a942
7
- data.tar.gz: 3d6bde6c6a7f2c3b21cd63c6276c52ec81033e01ffab6ecd69b1a6c57a59a0ac687b427b47ecce02651d17b97c4b1c3ca29aa49e235d1b2f159a0ecc5b8154f7
6
+ metadata.gz: b59c1b11b9401aac34b3d41cf33fc2d1c206a525bb3e9ba4460d38aa62fdb4ed2ed2155d293ad68635386d50933d1bcec46842f32bf7859cb12765911603aa12
7
+ data.tar.gz: 9436c6e10dce98be0e39f028daba085f49a83d90c4434346b12c0449ecb9a93e7cf3c6c50e2863a9e2f47305a90f3c5c7f82f38df6bf011c97d631ed0d054532
@@ -0,0 +1,71 @@
1
+ {%- if page.type == 'categories' -%}
2
+ {%- assign taxonomies = site.categories -%}
3
+ {%- elsif page.type == 'tags' -%}
4
+ {%- assign taxonomies = site.tags -%}
5
+ {%- else -%}
6
+ {%- assign taxonomies = none -%}
7
+ {%- endif -%}
8
+
9
+ {%- assign max_count = 0 -%}
10
+ {%- for taxonomy in taxonomies -%}
11
+ {%- assign posts = taxonomy[1] -%}
12
+ {%- if posts.size > max_count -%}
13
+ {%- assign max_count = posts.size -%}
14
+ {%- endif -%}
15
+ {%- endfor -%}
16
+
17
+ <div class="taxonomies-wrapper">
18
+ <ul class="taxonomies">
19
+ {%- for i in (1..max_count) reversed -%}
20
+ {%- for taxonomy in taxonomies -%}
21
+ {%- assign taxonomy_name = taxonomy[0] -%}
22
+ {%- assign slugified_taxonomy_name = taxonomy_name | slugify -%}
23
+ {%- assign posts = taxonomy[1] -%}
24
+ {%- if posts.size == i -%}
25
+ <li>
26
+ {%- capture link -%}{{ page.permalink }}#{{ slugified_taxonomy_name }}{%- endcapture -%}
27
+ <a class="taxonomy" href="{{ link | relative_url }}">
28
+ <span>
29
+ {%- if page.type == 'tags' -%}
30
+ {{ slugified_taxonomy_name }}
31
+ {%- else -%}
32
+ {{ taxonomy_name }}
33
+ {%- endif -%}
34
+ </span>
35
+ <span class="taxonomy-count">{{ posts.size }}</span>
36
+ </a>
37
+ </li>
38
+ {%- endif -%}
39
+ {%- endfor -%}
40
+ {%- endfor -%}
41
+ </ul>
42
+ </div>
43
+
44
+ {%- for i in (1..max_count) reversed -%}
45
+ {%- for taxonomy in taxonomies -%}
46
+ {%- assign taxonomy_name = taxonomy[0] -%}
47
+ {%- assign slugified_taxonomy_name = taxonomy_name | slugify -%}
48
+ {%- assign posts = taxonomy[1] -%}
49
+ {%- if posts.size == i -%}
50
+ <h2 id="{{ slugified_taxonomy_name }}">
51
+ {%- if page.type == 'tags' -%}
52
+ {{ slugified_taxonomy_name }}
53
+ {%- else -%}
54
+ {{ taxonomy_name }}
55
+ {%- endif -%}
56
+ </h2>
57
+ <ul class="post-list-by-taxonomy">
58
+ {%- for post in posts -%}
59
+ <li>
60
+ <time datetime="{{ page.date | date_to_xmlschema }}">{{ post.date | date: "%Y-%m-%d" }}</time>
61
+ &raquo;
62
+ <a href="{{ post.url | relative_url }}">{{ post.title | escape }}</a>
63
+ </li>
64
+ {%- endfor -%}
65
+ </ul>
66
+ <a href="#" onclick="backToTop()" class="back-to-top">Top &#8648;</a>
67
+ {%- endif -%}
68
+ {%- endfor -%}
69
+ {%- endfor -%}
70
+
71
+ {% include back-to-top.html %}
@@ -0,0 +1,32 @@
1
+ {% assign taxonomies = site.posts | group_by_exp: "post", "post.date | date: '%Y'" %}
2
+
3
+ <div class="taxonomies-wrapper">
4
+ <ul class="taxonomies">
5
+ {%- for taxonomy in taxonomies -%}
6
+ <li>
7
+ {%- capture link -%}{{ page.permalink }}#{{ taxonomy.name }}{%- endcapture -%}
8
+ <a class="taxonomy" href="{{ link | relative_url }}">
9
+ <span>{{ taxonomy.name }}</span>
10
+ <span class="taxonomy-count">{{ taxonomy.size }}</span>
11
+ </a>
12
+ </li>
13
+ {%- endfor -%}
14
+ </ul>
15
+ </div>
16
+
17
+ {%- for taxonomy in taxonomies -%}
18
+ <h2 id="{{ taxonomy.name }}">{{ taxonomy.name }}</h2>
19
+ <ul class="post-list-by-taxonomy">
20
+ {%- assign posts = taxonomy.items -%}
21
+ {%- for post in posts -%}
22
+ <li>
23
+ <time datetime="{{ page.date | date_to_xmlschema }}">{{ post.date | date: "%Y-%m-%d" }}</time>
24
+ &raquo;
25
+ <a href="{{ post.url | relative_url }}">{{ post.title | escape }}</a>
26
+ </li>
27
+ {%- endfor -%}
28
+ </ul>
29
+ <a href="#" onclick="backToTop()" class="back-to-top">Top &#8648;</a>
30
+ {%- endfor -%}
31
+
32
+ {% include back-to-top.html %}
@@ -0,0 +1,6 @@
1
+ <script>
2
+ function backToTop() {
3
+ const main = document.getElementById("site-main");
4
+ main.scrollTop = 0;
5
+ }
6
+ </script>
@@ -0,0 +1,17 @@
1
+ <div id="disqus_thread"></div>
2
+ <script>
3
+ var disqus_config = function () {
4
+ this.page.url = '{{ page.url | absolute_url }}';
5
+ this.page.identifier = '{{ page.url | absolute_url }}';
6
+ };
7
+
8
+ (function() {
9
+ var d = document, s = d.createElement('script');
10
+
11
+ s.src = 'https://{{ site.disqus }}.disqus.com/embed.js';
12
+
13
+ s.setAttribute('data-timestamp', +new Date());
14
+ (d.head || d.body).appendChild(s);
15
+ })();
16
+ </script>
17
+ <noscript>Please enable JavaScript to view the <a href="https://disqus.com/?ref_noscript" rel="nofollow">comments powered by Disqus.</a></noscript>
@@ -0,0 +1,39 @@
1
+ <footer class="footer">
2
+ <div class="footer-column">
3
+ <p>
4
+ <small>
5
+ &copy;&nbsp;
6
+ {%- assign date_from = site.posts[-1].date | date_to_xmlschema -%}
7
+ {%- assign year_from = date_from | date: '%Y' -%}
8
+ {%- assign date_to = site.time | date_to_xmlschema -%}
9
+ {%- assign year_to = date_to | date: '%Y' -%}
10
+ {%- unless year_from == nil or year_from == year_to -%}
11
+ <time datetime="{{ date_from }}">{{ year_from }}</time>-
12
+ {%- endunless -%}
13
+ <time datetime="{{ date_to }}">{{ year_to }}</time>
14
+ {%- if site.author -%}
15
+ &nbsp;<a href="{{ site.author.url }}" target="_blank">{{ site.author.name }}</a>
16
+ {%- endif -%}
17
+ . All right reserved.
18
+ </small>
19
+ </p>
20
+ <p>
21
+ <small>
22
+ Powered by <a href="https://jekyllrb.com/" target="_blank">Jekyll</a> & <a href="https://github.com/zivhub/monophase" target="_blank">Monophase</a>
23
+ </small>
24
+ </p>
25
+ </div>
26
+ {% if site.data.social %}
27
+ <div class="footer-column">
28
+ <ul class="social-icons">
29
+ {% for social in site.data.social %}
30
+ <li class="social-icon-item">
31
+ <a class="social-icon" href="{{ social.url }}" target="_blank">
32
+ <i class="{{ social.icon | default: 'fas fa-link' }}" title="{{ social.title }}"></i>
33
+ </a>
34
+ </li>
35
+ {% endfor %}
36
+ </ul>
37
+ </div>
38
+ {% endif %}
39
+ </footer>
@@ -0,0 +1,9 @@
1
+ <!-- Global site tag (gtag.js) - Google Analytics -->
2
+ <script async src="https://www.googletagmanager.com/gtag/js?id={{ site.google_analytics }}"></script>
3
+ <script>
4
+ window.dataLayer = window.dataLayer || [];
5
+ function gtag(){dataLayer.push(arguments);}
6
+ gtag('js', new Date());
7
+
8
+ gtag('config', '{{ site.google_analytics }}');
9
+ </script>
@@ -0,0 +1,12 @@
1
+ <head>
2
+ <meta charset="UTF-8">
3
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
4
+ <link rel="stylesheet" href="{{ 'assets/normalize.css' | relative_url }}">
5
+ <link rel="stylesheet" href="{{ 'assets/open-color.css' | relative_url }}">
6
+ <link rel="stylesheet" href="{{ 'assets/monophase/styles.css' | relative_url }}">
7
+ {% feed_meta %}
8
+ {% seo %}
9
+
10
+ <script async src="https://use.fontawesome.com/releases/v5.0.12/js/all.js"></script>
11
+
12
+ </head>
@@ -0,0 +1,20 @@
1
+ <header class="masthead">
2
+ <div class="masthead-title">
3
+ <a href="{{ '/' | relative_url }}" title="Home">{{ site.title }}</a>
4
+ <small class="tagline">{{ site.tagline }}</small>
5
+ </div>
6
+
7
+ {% if site.data.navigation %}
8
+ <nav class="nav">
9
+ <ul class="nav-list">
10
+ {% for item in site.data.navigation %}
11
+ <li class="nav-item">
12
+ <a href="{{ item.url | relative_url }}" class="{% if page.url == item.url %}current{% endif %}">
13
+ {{ item.title }}
14
+ </a>
15
+ </li>
16
+ {% endfor %}
17
+ </ul>
18
+ </nav>
19
+ {% endif %}
20
+ </header>
@@ -0,0 +1,2 @@
1
+ <script src="https://polyfill.io/v3/polyfill.min.js?features=es6"></script>
2
+ <script id="MathJax-script" async src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js"></script>
@@ -0,0 +1,15 @@
1
+ ---
2
+ layout: default
3
+ ---
4
+
5
+ <article>
6
+ <h1>{{ page.title }}</h1>
7
+
8
+ {{ content }}
9
+
10
+ {% if page.type == "years" %}
11
+ {% include archive-by-years.html %}
12
+ {% else %}
13
+ {% include archive-by-tagories.html %}
14
+ {% endif %}
15
+ </article>
@@ -0,0 +1,44 @@
1
+ ---
2
+ layout: default
3
+ ---
4
+
5
+ <div class="posts">
6
+ {% assign posts = site.posts %}
7
+ {% if paginator %}
8
+ {% assign posts = paginator.posts %}
9
+ {% endif %}
10
+ {% for post in posts %}
11
+ <div class="post">
12
+ <h2 class="post-title">
13
+ <a href="{{ post.url | relative_url }}">
14
+ {{ post.title }}
15
+ </a>
16
+ </h2>
17
+
18
+ <time datetime="{{ post.date | date_to_xmlschema }}" class="post-meta">{{ post.date | date_to_string }}</time>
19
+
20
+ <p class="post-excerpt">
21
+ {% if post.description %}
22
+ {{ post.description | strip_html }}
23
+ {% else %}
24
+ {{ post.excerpt | strip_html }}
25
+ {% endif %}
26
+ </p>
27
+ </div>
28
+ {% endfor %}
29
+ </div>
30
+
31
+ {% if paginator %}
32
+ <div class="pagination">
33
+ {% if paginator.next_page %}
34
+ <a class="pagination-item older" href="{{ paginator.next_page_path | relative_url }}">Older</a>
35
+ {% else %}
36
+ <span class="pagination-item older">Older</span>
37
+ {% endif %}
38
+ {% if paginator.previous_page %}
39
+ <a class="pagination-item newer" href="{{ paginator.previous_page_path | relative_url }}">Newer</a>
40
+ {% else %}
41
+ <span class="pagination-item newer">Newer</span>
42
+ {% endif %}
43
+ </div>
44
+ {% endif %}
@@ -0,0 +1,128 @@
1
+ * {
2
+ box-sizing: border-box;
3
+ }
4
+
5
+ body {
6
+ color: var(--body-color);
7
+ background-color: var(--body-bg-color);
8
+ font-family: var(--body-font-family);
9
+ font-size: var(--body-font-size);
10
+ line-height: var(--body-line-height);
11
+ }
12
+
13
+ a {
14
+ color: var(--link-color);
15
+ text-decoration: none;
16
+
17
+ &:hover,
18
+ &:focus {
19
+ color: var(--link-hover-color);
20
+ text-decoration: underline;
21
+ }
22
+ }
23
+
24
+ p {
25
+ margin-top: 0;
26
+ margin-bottom: var(--spacer);
27
+ }
28
+
29
+ ul, ol, dl {
30
+ margin-top: 0;
31
+ margin-bottom: var(--spacer);
32
+ }
33
+
34
+ blockquote {
35
+ padding: 0 var(--spacer);
36
+ margin: 0 0 var(--spacer) 0;
37
+ border-left: .25em solid var(--border-color);
38
+ opacity: .65;
39
+ }
40
+
41
+ figure {
42
+ margin: 0;
43
+ }
44
+
45
+ figcaption {
46
+ margin-bottom: var(--spacer);
47
+ font-size: .85em;
48
+ }
49
+
50
+ img {
51
+ display: block;
52
+ max-width: 100%;
53
+ margin-top: 0;
54
+ margin-bottom: var(--spacer);
55
+ border-radius: var(--border-radius);
56
+ }
57
+
58
+ code,
59
+ pre {
60
+ font-family: var(--code-font-family);
61
+ }
62
+
63
+ code {
64
+ padding: .1em .25em;
65
+ background-color: var(--code-bg-color);
66
+ border-radius: var(--border-radius);
67
+ }
68
+
69
+ pre {
70
+ display: block;
71
+ overflow: auto;
72
+ padding: var(--spacer);
73
+ margin: var(--spacer) 0;
74
+
75
+ code {
76
+ padding: 0;
77
+ background-color: inherit;
78
+ }
79
+ }
80
+
81
+ table {
82
+ margin-top: 0;
83
+ margin-bottom: var(--spacer);
84
+ width: 100%;
85
+ border: 0 solid var(--border-color);
86
+ border-collapse: collapse;
87
+ }
88
+
89
+ td,
90
+ th {
91
+ padding: .25em .5em;
92
+ border-color: inherit;
93
+ border-style: solid;
94
+ border-width: 0;
95
+ border-bottom-width: 1px;
96
+ }
97
+
98
+ th {
99
+ text-align: left;
100
+ }
101
+
102
+ thead th {
103
+ border-bottom-color: currentColor;
104
+ }
105
+
106
+ mark {
107
+ padding: .15em;
108
+ border-radius: var(--border-radius);
109
+ color: var(--body-bg-color);
110
+ background-color: var(--info-color);
111
+ }
112
+
113
+ hr {
114
+ position: relative;
115
+ margin: var(--spacer-2) 0;
116
+ border: 0;
117
+ border-top: 1px solid var(--border-color);
118
+ }
119
+
120
+ abbr {
121
+ font-weight: bold;
122
+ text-transform: uppercase;
123
+
124
+ &[title] {
125
+ cursor: help;
126
+ border-bottom: 1px dotted var(--border-color);
127
+ }
128
+ }
@@ -0,0 +1,91 @@
1
+ /**
2
+ * rougify style gruvbox
3
+ */
4
+
5
+ .highlight table td { padding: 5px; }
6
+ .highlight table pre { margin: 0; }
7
+ .highlight, .highlight .w {
8
+ color: #fbf1c7;
9
+ background-color: #282828;
10
+ }
11
+ .highlight .err {
12
+ color: #fb4934;
13
+ background-color: #282828;
14
+ font-weight: bold;
15
+ }
16
+ .highlight .c, .highlight .ch, .highlight .cd, .highlight .cm, .highlight .cpf, .highlight .c1, .highlight .cs {
17
+ color: #928374;
18
+ font-style: italic;
19
+ }
20
+ .highlight .cp {
21
+ color: #8ec07c;
22
+ }
23
+ .highlight .nt {
24
+ color: #fb4934;
25
+ }
26
+ .highlight .o, .highlight .ow {
27
+ color: #fbf1c7;
28
+ }
29
+ .highlight .p, .highlight .pi {
30
+ color: #fbf1c7;
31
+ }
32
+ .highlight .gi {
33
+ color: #b8bb26;
34
+ background-color: #282828;
35
+ }
36
+ .highlight .gd {
37
+ color: #fb4934;
38
+ background-color: #282828;
39
+ }
40
+ .highlight .gh {
41
+ color: #b8bb26;
42
+ font-weight: bold;
43
+ }
44
+ .highlight .k, .highlight .kn, .highlight .kp, .highlight .kr, .highlight .kv {
45
+ color: #fb4934;
46
+ }
47
+ .highlight .kc {
48
+ color: #d3869b;
49
+ }
50
+ .highlight .kt {
51
+ color: #fabd2f;
52
+ }
53
+ .highlight .kd {
54
+ color: #fe8019;
55
+ }
56
+ .highlight .s, .highlight .sb, .highlight .sc, .highlight .dl, .highlight .sd, .highlight .s2, .highlight .sh, .highlight .sx, .highlight .s1 {
57
+ color: #b8bb26;
58
+ font-style: italic;
59
+ }
60
+ .highlight .si {
61
+ color: #b8bb26;
62
+ font-style: italic;
63
+ }
64
+ .highlight .sr {
65
+ color: #b8bb26;
66
+ font-style: italic;
67
+ }
68
+ .highlight .sa {
69
+ color: #fb4934;
70
+ }
71
+ .highlight .se {
72
+ color: #fe8019;
73
+ }
74
+ .highlight .nn {
75
+ color: #8ec07c;
76
+ }
77
+ .highlight .nc {
78
+ color: #8ec07c;
79
+ }
80
+ .highlight .no {
81
+ color: #d3869b;
82
+ }
83
+ .highlight .na {
84
+ color: #b8bb26;
85
+ }
86
+ .highlight .m, .highlight .mb, .highlight .mf, .highlight .mh, .highlight .mi, .highlight .il, .highlight .mo, .highlight .mx {
87
+ color: #d3869b;
88
+ }
89
+ .highlight .ss {
90
+ color: #83a598;
91
+ }