jekyll-flant-theme 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: 2b07c35de2484b7e388976b9e7c08886dfec4ffcc111c15c5ce9930c8c0290c7
4
+ data.tar.gz: f68fff7d07af26d442951bea23289ce1aed2c22b616f2a5edd4d4f0a990019a7
5
+ SHA512:
6
+ metadata.gz: d8833292fe39cd3d29b3926d8a4d2f8c787c3be5a9939fc798d1106cec38717ad5b48ad9b50debb1738cf188102e9e2083c9d524daa068e8d7726a5ed553c6f1
7
+ data.tar.gz: fef1f75e9289a5c14e83cec42a00c26ace636f3b203f90c06ff068dffc5ce070a240b49774b9e8b15f981b45a270f109a66152bf7f5c9fc6231eeeebbb482b6c
@@ -0,0 +1,58 @@
1
+ <meta charset="utf-8">
2
+ <meta http-equiv="X-UA-Compatible" content="IE=edge">
3
+ <meta name="viewport" content="width=device-width">
4
+
5
+ {%- if page.multilang %}
6
+ <link data-proofer-ignore rel="canonical" href="https://{{ site.url }}{{ page.url | relative_url }}" />
7
+ <link data-proofer-ignore rel="alternate" hreflang="ru" href="https://{{ site.site_urls.ru }}{{ page.url | relative_url }}" />
8
+ <link data-proofer-ignore rel="alternate" hreflang="en" href="https://{{ site.site_urls.en }}{{ page.url | relative_url }}" />
9
+ {%- endif %}
10
+
11
+ {%- assign page_url_parts = page.url | split: '/' -%}
12
+ {%- assign max_ind = page_url_parts.size | minus: 2 -%}
13
+ {%- assign title_parts = "" | split: "" -%}
14
+
15
+ {%- assign title_parts = title_parts | push: page.title -%}
16
+
17
+ {%- assign generated_title = title_parts | reverse | join: " / " %}
18
+ <title>{{ generated_title }} | {{ site.site_title }}</title>
19
+ {% if page.description %}
20
+ {%- assign description = page.description | strip_html | strip_newlines | truncate: 160 %}
21
+ {% else %}
22
+ {%- assign description = site.site_description | strip_html | strip_newlines | truncate: 160 %}
23
+ {% endif %}
24
+
25
+ <!-- Primary Meta Tags -->
26
+ <meta name="title" content="{{ generated_title }} | {{ site.site_title }}">
27
+ <meta name="description" content="{{ description }}">
28
+ <meta name="keywords" content="{{page.tags}}{% if page.tags %}, {% endif %} {{page.keywords}}">
29
+
30
+ <!-- Open Graph / Facebook -->
31
+ <meta property="og:type" content="website">
32
+ <meta property="og:url" content="{{ site.url }}{{ page.url | relative_url }}">
33
+ <meta property="og:title" content="{{ generated_title }} | {{ site.site_title }}">
34
+ <meta property="og:description" content="{{ description }}">
35
+ <!-- <meta property="og:image" content="{{ site.url }}/images/share.png"> -->
36
+
37
+ <!-- Twitter -->
38
+ <meta property="twitter:card" content="summary_large_image">
39
+ <meta property="twitter:url" content="{{ site.url }}{{ page.url | relative_url }}">
40
+ <meta property="twitter:title" content="{{ generated_title }} | {{ site.site_title }}">
41
+ <meta property="twitter:description" content="{{ description }}">
42
+ <!-- <meta property="twitter:image" content="{{ site.url }}/images/share.png"> -->
43
+
44
+
45
+ <meta name="msapplication-TileColor" content="#ffffff">
46
+ <meta name="theme-color" content="#ffffff">
47
+
48
+ <!-- Fonts -->
49
+ <link rel="preconnect" href="https://fonts.googleapis.com">
50
+ <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
51
+ <link href="https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,400;0,600;0,700;1,400&display=swap" rel="stylesheet">
52
+
53
+ <!-- Custom CSS -->
54
+ {% asset core/main.css %}
55
+ {% asset demo/demo.css %}
56
+
57
+ {% asset core/snippetcut/snippetcut.js %}
58
+
@@ -0,0 +1,13 @@
1
+ <!DOCTYPE html>
2
+ <html lang="{% if site.site_lang == "ru" %}ru{% else %}en{% endif %}">
3
+ <head>
4
+
5
+ {%- include head.html %}
6
+
7
+ </head>
8
+ <body>
9
+
10
+ {{ content }}
11
+
12
+ </body>
13
+ </html>
@@ -0,0 +1,16 @@
1
+ ---
2
+ layout: sidebar
3
+ ---
4
+
5
+ <div class="docs">
6
+ {% unless page.without_auto_heading %}
7
+ <h1 class="docs__title">{{ page.title }}</h1>
8
+ {% endunless %}
9
+
10
+ <div class="post-content">
11
+
12
+ {{content}}
13
+
14
+ </div>
15
+
16
+ </div>
@@ -0,0 +1,17 @@
1
+ ---
2
+ layout: default
3
+ ---
4
+
5
+ <div class="overflow__container">
6
+ <div class="page__container">
7
+ <div class="container">
8
+ <div class="section__wrapper">
9
+ <div class="layout-sidebar">
10
+ <div class="layout-sidebar__content">
11
+ {{ content }}
12
+ </div>
13
+ </div>
14
+ </div>
15
+ </div>
16
+ </div>
17
+ </div>
@@ -0,0 +1,2 @@
1
+ @import "snippetcut/highlight-code.scss";
2
+ @import "snippetcut/snippetcut-style.scss";
@@ -0,0 +1,78 @@
1
+ .highlight, .highlight .w {
2
+ color: #f8f8f2;
3
+ background-color: #333037;
4
+ border-radius: 4px;
5
+ max-width: 860px;
6
+ }
7
+ .highlight .err {
8
+ color: #333037;
9
+ background-color: #f92672;
10
+ }
11
+ .highlight .c, .highlight .cd, .highlight .cm, .highlight .c1, .highlight .cs {
12
+ color: #75715e;
13
+ }
14
+ .highlight .cp {
15
+ color: #f4bf75;
16
+ }
17
+ .highlight .nt {
18
+ color: #f4bf75;
19
+ }
20
+ .highlight .o, .highlight .ow {
21
+ color: #f8f8f2;
22
+ }
23
+ .highlight .p, .highlight .pi {
24
+ color: #f8f8f2;
25
+ }
26
+ .highlight .gi {
27
+ color: #a6e22e;
28
+ }
29
+ .highlight .gd {
30
+ color: #f92672;
31
+ }
32
+ .highlight .gh {
33
+ color: #66d9ef;
34
+ background-color: #333037;
35
+ font-weight: bold;
36
+ }
37
+ .highlight .k, .highlight .kn, .highlight .kp, .highlight .kr, .highlight .kv {
38
+ color: #ae81ff;
39
+ }
40
+ .highlight .kc {
41
+ color: #fd971f;
42
+ }
43
+ .highlight .kt {
44
+ color: #fd971f;
45
+ }
46
+ .highlight .kd {
47
+ color: #fd971f;
48
+ }
49
+ .highlight .s, .highlight .sb, .highlight .sc, .highlight .sd, .highlight .s2, .highlight .sh, .highlight .sx, .highlight .s1 {
50
+ color: #a6e22e;
51
+ }
52
+ .highlight .sr {
53
+ color: #a1efe4;
54
+ }
55
+ .highlight .si {
56
+ color: #cc6633;
57
+ }
58
+ .highlight .se {
59
+ color: #cc6633;
60
+ }
61
+ .highlight .nn {
62
+ color: #f4bf75;
63
+ }
64
+ .highlight .nc {
65
+ color: #f4bf75;
66
+ }
67
+ .highlight .no {
68
+ color: #f4bf75;
69
+ }
70
+ .highlight .na {
71
+ color: #66d9ef;
72
+ }
73
+ .highlight .m, .highlight .mf, .highlight .mh, .highlight .mi, .highlight .il, .highlight .mo, .highlight .mb, .highlight .mx {
74
+ color: #a6e22e;
75
+ }
76
+ .highlight .ss {
77
+ color: #a6e22e;
78
+ }
@@ -0,0 +1,85 @@
1
+ .docs pre {
2
+ padding: 10px;
3
+ overflow-x: auto;
4
+ margin: 5px 0 25px 0px;
5
+ display: block;
6
+ font-size: 13px;
7
+ line-height: 1.428571429;
8
+ word-break: break-all;
9
+ word-wrap: break-word;
10
+ }
11
+
12
+ .docs pre code {
13
+ padding: 0;
14
+ font-size: 100%;
15
+ background: transparent;
16
+ white-space: pre;
17
+ border-radius: 0px;
18
+ }
19
+
20
+ /* Snippetcut styles */
21
+ .docs .snippetcut__raw {
22
+ display: none;
23
+ }
24
+
25
+ .docs .snippetcut {
26
+ margin-top: 10px;
27
+ }
28
+
29
+ .docs .snippetcut .snippetcut__title {
30
+ margin-bottom: 5px;
31
+ display: flex;
32
+ flex-direction: row;
33
+ align-items: center;
34
+ max-width: 860px;
35
+ }
36
+
37
+ .docs .snippetcut .snippetcut__title .snippetcut__title-name {
38
+ font-size: 75%;
39
+ font-family: monospace, monospace;
40
+ color: #0066FF;
41
+ white-space: nowrap;
42
+ margin-right: auto;
43
+ }
44
+
45
+ .docs .snippetcut .snippetcut__title .snippetcut__title-name-text {
46
+ font-size: 75%;
47
+ font-family: monospace, monospace;
48
+ color: #000000;
49
+ white-space: nowrap;
50
+ margin-right: auto;
51
+ }
52
+
53
+ .docs .snippetcut .snippetcut__title .snippetcut__title-btn {
54
+ display: inline-block;
55
+ padding: 2px 5px;
56
+ margin-left: 5px;
57
+ border-radius: 5px;
58
+ text-decoration: none !important;
59
+ font-size: 60%;
60
+ font-weight: 600;
61
+ font-style: normal;
62
+ font-stretch: normal;
63
+ letter-spacing: normal;
64
+ box-sizing: border-box;
65
+ border: 2px solid rgba(0,102,255,0.1);
66
+ color: #939fb1;
67
+
68
+ -webkit-touch-callout: none;
69
+ -webkit-user-select: none;
70
+ -khtml-user-select: none;
71
+ -moz-user-select: none;
72
+ -ms-user-select: none;
73
+ user-select: none;
74
+ }
75
+
76
+ .docs .snippetcut .snippetcut__title .snippetcut__title-btn:hover {
77
+ border: 2px solid #939fb1;
78
+ background-color: #939fb1;
79
+ color: white;
80
+ }
81
+
82
+ .docs .snippetcut_limited pre.highlight {
83
+ max-height: 200px;
84
+ display: block;
85
+ }
@@ -0,0 +1,13 @@
1
+ @import url(https://fonts.bunny.net/css?family=montserrat:400,500,700);
2
+
3
+ html,
4
+ body {
5
+ font-family: Montserrat;
6
+ margin: 0;
7
+ padding: 0;
8
+ }
9
+
10
+ .container {
11
+ padding: 0 50px;
12
+ }
13
+
@@ -0,0 +1,43 @@
1
+ document.addEventListener('DOMContentLoaded', () => {
2
+ const copyFileName = document.querySelectorAll('[data-snippetcut-btn-name]');
3
+ const copyFileText = document.querySelectorAll('[data-snippetcut-btn-text]');
4
+
5
+ for (const btnFileName of copyFileName) {
6
+ btnHandler(btnFileName, '[data-snippetcut-name]')
7
+ }
8
+
9
+ for (const btnFileText of copyFileText) {
10
+ btnHandler(btnFileText, '[data-snippetcut-text]');
11
+ }
12
+ })
13
+
14
+ function btnHandler(button, selector) {
15
+ button.addEventListener('click', (e) => {
16
+ e.preventDefault();
17
+ const parent = e.target.closest('.snippetcut');
18
+ const text = parent.querySelector(selector).innerText;
19
+ const oldText = button.innerText;
20
+
21
+ navigator.clipboard.writeText(`${text}`)
22
+ .then(() => {
23
+ // Успех!
24
+ button.innerHTML = selector === '[data-snippetcut-text]' ? 'Text copied' : 'Filename copied';
25
+ button.style.cssText = 'border-color: #28a745; color: #28a745';
26
+
27
+ setTimeout(()=> {
28
+ button.innerHTML = oldText;
29
+ button.removeAttribute('style');
30
+ }, 2000);
31
+ })
32
+ .catch(() => {
33
+ // Неудача :(
34
+ button.innerHTML = 'Something went wrong';
35
+ button.style.cssText = 'border-color: #dc3545; color: #dc3545';
36
+
37
+ setTimeout(()=> {
38
+ button.innerHTML = oldText;
39
+ button.removeAttribute('style');
40
+ }, 2000);
41
+ });
42
+ });
43
+ }
@@ -0,0 +1,6 @@
1
+ ---
2
+ layout: none
3
+ permalink: /assets/js/global/i18n.js
4
+ ---
5
+
6
+ var dataGlobalI18n = [{{ site.data.global.i18n | jsonify }}]
metadata ADDED
@@ -0,0 +1,69 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: jekyll-flant-theme
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Artem Kladov
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2022-07-04 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: '4.2'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '4.2'
27
+ description:
28
+ email:
29
+ - artem.kladov@flant.com
30
+ executables: []
31
+ extensions: []
32
+ extra_rdoc_files: []
33
+ files:
34
+ - _includes/head.html
35
+ - _layouts/default.html
36
+ - _layouts/page.html
37
+ - _layouts/sidebar.html
38
+ - assets/css/core/main.scss
39
+ - assets/css/core/snippetcut/highlight-code.scss
40
+ - assets/css/core/snippetcut/snippetcut-style.scss
41
+ - assets/css/demo/demo.scss
42
+ - assets/js/core/snippetcut/snippetcut.js
43
+ - assets/js/core/vars-i18n.js.liquid
44
+ homepage: https://github.com/flant/website-core
45
+ licenses:
46
+ - MIT
47
+ metadata:
48
+ homepage_uri: https://github.com/flant/website-core
49
+ source_code_uri: https://github.com/flant/website-core
50
+ post_install_message:
51
+ rdoc_options: []
52
+ require_paths:
53
+ - lib
54
+ required_ruby_version: !ruby/object:Gem::Requirement
55
+ requirements:
56
+ - - ">="
57
+ - !ruby/object:Gem::Version
58
+ version: '0'
59
+ required_rubygems_version: !ruby/object:Gem::Requirement
60
+ requirements:
61
+ - - ">="
62
+ - !ruby/object:Gem::Version
63
+ version: '0'
64
+ requirements: []
65
+ rubygems_version: 3.1.4
66
+ signing_key:
67
+ specification_version: 4
68
+ summary: The Jekyll Theme for using on the Flant Europe (flant.com) sites.
69
+ test_files: []