domain-jekyll 1.2.1 → 1.4.0

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: 4ef75869c60979034e114c8d383a35bba9aa57c7f874464557cd20de29f0f36b
4
- data.tar.gz: 20326c16d046f87ad19838013899a022bf95f67fac64b50ef13bbd880bdaab04
3
+ metadata.gz: 31fbda55af66cceab7014912b13d31b8d942b75a635a51f8f252a0fbd1fdb57f
4
+ data.tar.gz: cb252246f7739f542f0a94b5be2db88112962c1859c21574cb1638a94f2df778
5
5
  SHA512:
6
- metadata.gz: 0e75223508a28956967b812262aac868fedd086bc52666bd2b3e7204ef37b37f530e659ceb248928da6e462f9cebca8840fb468ec2901485f92a186c797456e5
7
- data.tar.gz: 07c4934c8477a50bab6ebf104cca250a48d7fa5f5c5c1987ce5424fb6ad845a7db954ec754a1c94eb4249bc2cef4cd00092a3269b1b00e91ecb0fc9094d26e54
6
+ metadata.gz: 1392731abdae484cf42cb11b9615cab43bfede0d3b02c7f8ac3c4a5f42388efc8d12c69a84d48894c92196c28fa445e3d0b286481fb523a7264a2cee5cba4a2a
7
+ data.tar.gz: deb886f7592ec7c68018bb092647e674631c37dfb77ddd237b478c47f4230d71d89a7cbbfc0780eb40dd9e7b4637778ddff1613974ec746b6042091514ae8492
data/CHANGELOG.md CHANGED
@@ -1,8 +1,30 @@
1
+ ## [1.4.0](https://github.com/lumunix/domain/releases/tag/1.4.0)
2
+ - Added card based sections for the tags and posts pages
3
+ - Fixed margins on small screen sizes
4
+ - Corrected css for sidebar
5
+ ## [1.3.0](https://github.com/lumunix/domain/releases/tag/1.3.0)
6
+ - Added Tutorials Collection
7
+ - Fixed tables to be full content width
8
+ - Added navigation forward and back for tutorials
9
+ - Fixed Links for context menu not resolving post path
1
10
  ## [1.2.1](https://github.com/lumunix/domain/releases/tag/1.2.1)
11
+ - Updated embedded links for YouTube and Twitch
2
12
  ## [1.2.0](https://github.com/lumunix/domain/releases/tag/1.2.0)
13
+ - Added Highlighter.js
14
+ - Added Code section lines numbers
15
+ - Removed old syntax highlighting
3
16
  ## [1.1.0](https://github.com/lumunix/domain/releases/tag/1.1.0)
17
+ - Added LinkLibrary #44
18
+ - Added Jekyll Admin #48
19
+ - Fixed Context Menu #49
4
20
  ## [1.0.4](https://github.com/lumunix/domain/releases/tag/1.0.4)
21
+ - Updates to Docker Compose file.
22
+ - Added Dev config profile.
5
23
  ## [1.0.3](https://github.com/lumunix/domain/releases/tag/1.0.3)
24
+ - Documentation updates
6
25
  ## [1.0.2](https://github.com/lumunix/domain/releases/tag/1.0.2)
26
+ - Bug fixes for image paths that were incorrect.
7
27
  ## [1.0.1](https://github.com/lumunix/domain/releases/tag/1.0.1)
28
+ - Updates to configuration and plugins
8
29
  ## [1.0.0](https://github.com/lumunix/domain/releases/tag/1.0.0)
30
+ - Initial Release
data/README.md CHANGED
@@ -1,7 +1,7 @@
1
1
 
2
2
  [![License](https://img.shields.io/github/license/Lumunix/domain?style=plastic)](https://github.com/Lumunix/Domain/blob/main/LICENSE)
3
3
  [![Jekyll](https://img.shields.io/badge/jekyll-%3E%3D%203.7-blue.svg)](https://jekyllrb.com/)
4
- [![RubyGem](https://img.shields.io/gem/v/domain-jekyll?style=plastic)](https://rubygems.org/gems/minimal-mistakes-jekyll)
4
+ [![RubyGem](https://img.shields.io/gem/v/domain-jekyll?style=plastic)](https://rubygems.org/gems/domain-jekyll)
5
5
  [![Tip Me via PayPal](https://img.shields.io/badge/PayPal-tip%20me-green.svg?logo=paypal)](https://www.paypal.me/Lumunix)
6
6
 
7
7
 
@@ -42,7 +42,7 @@ This allows for easier installation and updating as you don't have to manage any
42
42
  3. Set the `theme` in your project's Jekyll `_config.yml` file:
43
43
 
44
44
  ```yaml
45
- theme: domain-jekll
45
+ theme: domain-jekyll
46
46
  ```
47
47
 
48
48
  To update the theme run `bundle update`.
@@ -136,4 +136,5 @@
136
136
  {%- endif -%}
137
137
  </div>
138
138
  </div>
139
+ {%- include PreviousNext.html -%}
139
140
  </div>
data/_includes/Head.html CHANGED
@@ -1,10 +1,11 @@
1
1
 
2
2
  <head>
3
+ <meta http-equiv="X-UA-Compatible" content="IE=edge">
4
+ <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
3
5
  <link rel="shortcut icon" href="{{site.baseurl}}/assets/img/favicon/favicon.ico" type="image/x-icon">
4
- <link rel="shortcut icon" href="{{ "/assets/img/favicon/favicon.ico" | prepend: site.baseurl }}" type="image/x-icon">
5
- <link rel="apple-touch-icon" href="{{ "/assets/img/favicon/apple-touch-icon.png" | prepend: site.baseurl }}">
6
- <link rel="apple-touch-icon" sizes="72x72" href="{{ "/assets/img/favicon/apple-touch-icon-72x72.png" | prepend: site.baseurl }}">
7
- <link rel="apple-touch-icon" sizes="144x144" href="{{ "/assets/img/favicon/apple-touch-icon-144x144.png" | prepend: site.baseurl }}">
6
+ <link rel="apple-touch-icon" href="{{site.baseurl}}/assets/img/favicon/apple-touch-icon.png">
7
+ <link rel="apple-touch-icon" sizes="72x72" href="{{site.baseurl}}/assets/img/favicon/apple-touch-icon-72x72.png">
8
+ <link rel="apple-touch-icon" sizes="144x144" href="{{site.baseurl}}/assets/img/favicon/apple-touch-icon-144x144.png">
8
9
  <!-- Chrome, Firefox OS and Opera -->
9
10
  <meta name="theme-color" content="#263959">
10
11
  <!-- Windows Phone -->
@@ -1,7 +1,7 @@
1
1
  <header>
2
2
  <div class="main-site-subheader menu disable-select">
3
3
  <a class="menu-item" href="{{site.baseurl}}/">
4
- <svg class="menu-item-icon" xmlns="http://www.w3.org/2000/svg" width="18" height="19" viewBox="0 0 25 25" fill="none" stroke="#000000" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
4
+ <svg class="menu-item-icon" xmlns="http://www.w3.org/2000/svg" width="18" height="19" viewBox="0 0 25 25" fill="none" stroke="#000000" stroke-width="3" stroke-linecap="round" stroke-linejoin="round">
5
5
  <path d="M20 9v11a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V9"/>
6
6
  <path d="M9 22V12h6v10M2 10.6L12 2l10 8.6"/>
7
7
  </svg>
@@ -12,41 +12,48 @@
12
12
  xmlns="http://www.w3.org/2000/svg">
13
13
  <path
14
14
  d="M20.9777 21.6138V19.6138C20.9777 18.553 20.5563 17.5356 19.8061 16.7854C19.056 16.0353 18.0386 15.6138 16.9777 15.6138H8.97768C7.91682 15.6138 6.8994 16.0353 6.14926 16.7854C5.39911 17.5356 4.97768 18.553 4.97768 19.6138V21.6138"
15
- stroke-width="2" stroke-linecap="round" stroke-linejoin="round" />
15
+ stroke-width="3" stroke-linecap="round" stroke-linejoin="round" />
16
16
  <path
17
17
  d="M12.9777 11.6138C15.1868 11.6138 16.9777 9.82298 16.9777 7.61385C16.9777 5.40471 15.1868 3.61385 12.9777 3.61385C10.7685 3.61385 8.97768 5.40471 8.97768 7.61385C8.97768 9.82298 10.7685 11.6138 12.9777 11.6138Z"
18
- stroke-width="2" stroke-linecap="round" stroke-linejoin="round" />
18
+ stroke-width="3" stroke-linecap="round" stroke-linejoin="round" />
19
19
  </svg>
20
20
  <p class="menu-item-text">About</p>
21
21
  </a>
22
22
  <a class="menu-item" href="{{site.baseurl}}/posts">
23
23
  <svg class="menu-item-icon" xmlns="http://www.w3.org/2000/svg" width="18" height="19" viewBox="0 0 24 25" fill="none"
24
- stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
24
+ stroke-width="3" stroke-linecap="round" stroke-linejoin="round">
25
25
  <rect x="3" y="4" width="18" height="18" rx="2" ry="2"></rect>
26
26
  <line x1="16" y1="2" x2="16" y2="6"></line><line x1="8" y1="2" x2="8" y2="6"></line>
27
27
  <line x1="3" y1="10" x2="21" y2="10"></line>
28
28
  </svg>
29
29
  <p class="menu-item-text">Posts</p>
30
30
  </a>
31
+ <a class="menu-item" href="{{site.baseurl}}/tutorials">
32
+ <svg class="menu-item-icon" xmlns="http://www.w3.org/2000/svg" width="18" height="19" viewBox="0 0 24 24">
33
+ <path d="M4 17.162l-2 .838v-12.972l12-5.028v2.507l-10 4.19v10.465zm16-8.156v8.635l-8 3.352v-8.635l8-3.352zm2-3.006l-12 5.028v12.972l12-5.028v-12.972zm-14 3.697l10-4.19v-2.507l-12 5.028v12.972l2-.838v-10.465z"
34
+ stroke-width="0" stroke-linecap="round" stroke-linejoin="round"/>
35
+ </svg>
36
+ <p class="menu-item-text">Tutorials</p>
37
+ </a>
31
38
  <a class="menu-item" href="{{site.baseurl}}/tags">
32
39
  <svg class="menu-item-icon" width="18" height="19" viewBox="0 0 24 25" fill="none"
33
40
  xmlns="http://www.w3.org/2000/svg">
34
- <path d="M4 9.5H20" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" />
35
- <path d="M4 15.5H20" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" />
36
- <path d="M10 3.5L8 21.5" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" />
37
- <path d="M16 3.5L14 21.5" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" />
41
+ <path d="M4 9.5H20" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round" />
42
+ <path d="M4 15.5H20" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round" />
43
+ <path d="M10 3.5L8 21.5" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round" />
44
+ <path d="M16 3.5L14 21.5" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round" />
38
45
  </svg>
39
46
  <p class="menu-item-text">Tags</p>
40
47
  </a>
41
48
  <a class="menu-item" href="{{site.baseurl}}/feed.xml">
42
49
  <svg class="menu-item-icon" width="18" height="19" viewBox="0 0 24 25" fill="none" xmlns="http://www.w3.org/2000/svg">
43
50
  <path d="M4 11.5C6.38695 11.5 8.67613 12.4482 10.364 14.136C12.0518 15.8239 13 18.1131 13 20.5"
44
- stroke-width="2" stroke-linecap="round" stroke-linejoin="round" />
51
+ stroke-width="3" stroke-linecap="round" stroke-linejoin="round" />
45
52
  <path d="M4 4.5C8.24346 4.5 12.3131 6.18571 15.3137 9.18629C18.3143 12.1869 20 16.2565 20 20.5"
46
- stroke-width="2" stroke-linecap="round" stroke-linejoin="round" />
53
+ stroke-width="3" stroke-linecap="round" stroke-linejoin="round" />
47
54
  <path
48
55
  d="M5 20.5C5.55228 20.5 6 20.0523 6 19.5C6 18.9477 5.55228 18.5 5 18.5C4.44772 18.5 4 18.9477 4 19.5C4 20.0523 4.44772 20.5 5 20.5Z"
49
- stroke-width="2" stroke-linecap="round" stroke-linejoin="round" />
56
+ stroke-width="3" stroke-linecap="round" stroke-linejoin="round" />
50
57
  </svg>
51
58
  <p class="menu-item-text">RSS</p>
52
59
  </a>
@@ -0,0 +1,14 @@
1
+ {% if page.tutorial_previous or page.tutorial_next %}
2
+ <nav class="previousnext">
3
+ {% if page.tutorial_previous %}
4
+ <a href="{{ page.tutorial_previous | relative_url }}" class="previousnext--pager">{{ "Previous" }}</a>
5
+ {% else %}
6
+ <a href="#" class="previousnext--pager disabled">{{ "Previous" }}</a>
7
+ {% endif %}
8
+ {% if page.tutorial_next %}
9
+ <a href="{{ page.tutorial_next | relative_url }}" class="previousnext--pager">{{ "Next" }}</a>
10
+ {% else %}
11
+ <a href="#" class="previousnext--pager disabled">{{ "Next" }}</a>
12
+ {% endif %}
13
+ </nav>
14
+ {% endif %}
data/_layouts/About.html CHANGED
@@ -4,25 +4,29 @@ layout: Page
4
4
 
5
5
  <style/>
6
6
  .columns {
7
- Width: 100%;
7
+ width: 100%;
8
8
  }
9
9
  .column-1, .column-2 {
10
10
  width:100%;
11
+ padding: 20px
11
12
  }
12
- @media (min-width: 48em) {
13
+ @media (min-width: 60em) {
13
14
  .column-1 {
14
15
  width: 30%;
15
16
  float:left;
17
+ padding: 20px
16
18
  }
17
19
  .column-2 {
18
20
  width: 70%;
19
21
  float:left;
22
+ padding: 20px
20
23
  }
21
24
 
22
25
  .columns {
23
26
  content:"";
24
27
  display: table;
25
28
  clear: both;
29
+
26
30
  }
27
31
  }
28
32
 
@@ -4,7 +4,9 @@
4
4
  <body>
5
5
 
6
6
  <div class="wrapper">
7
- {{ content }}
7
+ {% assign content_ = content | replace: '<table', '<div class="table-wrapper"><table' %}
8
+ {% assign content_ = content_ | replace: '</table>', '</table></div>' %}
9
+ {{ content_ }}
8
10
  </div>
9
11
 
10
12
 
data/_layouts/Home.html CHANGED
@@ -1,4 +1,29 @@
1
1
  ---
2
- layout: Sidebar
2
+ layout: Page
3
3
  ---
4
- {% include Postlist.html %}
4
+ <div id="post-wrapper">
5
+ {% for post in paginator.posts %}
6
+ <article class="post feed-title-excerpt-block disable-select" data-url="{{site.baseurl}}{{post.url}}">
7
+ {% if post.thumbnail %}
8
+ <a class="post-thumbnail" style="background-image: url({{"" | prepend: site.baseurl | append : post.thumbnail}})" href="{{post.url | prepend: site.baseurl}}"></a>
9
+ {% else %}
10
+ {% endif %}
11
+ <div class="post-content">
12
+ <h2 class="post-title"><a href="{{post.url | prepend: site.baseurl}}">{{post.title}}</a></h2>
13
+ <p>{{ post.content | strip_html | truncatewords: 60 }}</p>
14
+ <span class="post-date">{{post.date | date: '%Y, %b %d'}}&nbsp;&nbsp;&nbsp;—&nbsp;</span>
15
+ <span class="post-words">{% capture words %}{{ post.content | number_of_words }}{% endcapture %}{% unless words contains "-" %}{{ words | plus: 250 | divided_by: 250 | append: " minute read" }}{% endunless %}</span>
16
+
17
+ </div>
18
+ </article>
19
+ {% endfor %}
20
+ </div>
21
+
22
+ {% case site.preferences.pagination.system %}
23
+ {% when "infinitescroll" %}
24
+ {% include InfiniteScroll.html %}
25
+ {% when "pagination" %}
26
+ {% include Pagination.html %}
27
+ {% else %}
28
+ {% include InfiniteScroll.html %}
29
+ {% endcase %}
data/_layouts/Post.html CHANGED
@@ -1,5 +1,5 @@
1
1
  ---
2
- layout: Sidebar
2
+ layout: Page
3
3
  ---
4
4
  <article class="article-page">
5
5
  <div class="page-content">
data/_layouts/Posts.html CHANGED
@@ -2,18 +2,32 @@
2
2
  layout: Page
3
3
  ---
4
4
  <div>
5
- <main>
6
- {% assign postsByDay =
7
- site.posts | group_by_exp:"post", "post.date | date: '%d-%B-%Y'" %}
5
+ <main>
6
+ {% assign postsByDay =
7
+ site.posts | group_by_exp:"post", "post.date | date: '%d-%B-%Y'" %}
8
8
 
9
- {% for day in postsByDay %}
9
+ {% for day in postsByDay %}
10
10
  <h2 id="{{ day.name }}">{{ day.name }}</h2>
11
- {% for post in day.items %}
12
- <li id="date-content" style="padding-bottom: 0.6em; list-style: none;"><a href="{{site.baseurl}}{{ post.url }}">{{ post.title }}</a></li>
13
- {% endfor %}
14
- {% endfor %}
11
+ {% for post in day.items %}
12
+ <article class="post feed-title-excerpt-block disable-select"
13
+ data-url="{{site.baseurl}}{{post.url}}">
14
+ {% if post.thumbnail %}
15
+ <a class="post-thumbnail" style="background-image: url({{"" | prepend: site.baseurl | append :
16
+ post.thumbnail}})" href="{{post.url | prepend: site.baseurl}}"></a>
17
+ {% else %}
18
+ {% endif %}
19
+ <div class="post-content">
20
+ <h2 class="post-title"><a href="{{post.url | prepend: site.baseurl}}">{{post.title}}</a></h2>
21
+ <p>{{ post.content | strip_html | truncatewords: 60 }}</p>
22
+ <span class="post-date">{{post.date | date: '%Y, %b %d'}}&nbsp;&nbsp;&nbsp;—&nbsp;</span>
23
+ <span class="post-words">{% capture words %}{{ post.content | number_of_words }}{% endcapture %}{% unless words contains "-" %}{{ words | plus: 250 | divided_by: 250 | append: " minute read" }}{% endunless %}</span>
15
24
 
16
- <br/>
17
- <br/>
18
- </main>
25
+ </div>
26
+ </article>
27
+ {% endfor %}
28
+ {% endfor %}
29
+
30
+ <br/>
31
+ <br/>
32
+ </main>
19
33
  </div>
data/_layouts/Tags.html CHANGED
@@ -2,27 +2,41 @@
2
2
  layout: Page
3
3
  ---
4
4
  <div>
5
- <main>
6
- {% capture site_tags %}{% for tag in site.tags %}{{ tag | first }}{% unless forloop.last %},{% endunless %}{% endfor %}{% endcapture %}
7
- {% assign tag_words = site_tags | split:',' | sort %}
5
+ <main>
6
+ {% capture site_tags %}{% for tag in site.tags %}{{ tag | first }}{% unless forloop.last %},{% endunless %}{%
7
+ endfor %}{% endcapture %}
8
+ {% assign tag_words = site_tags | split:',' | sort %}
8
9
 
9
- <ul class="tags">
10
- <!-- cycles through tag list and creates header row of all tags used in site with accompanying per-tag counts...-->
11
- {% for this_word in tag_words %}
12
- <li ><a href="#{{ this_word | cgi_escape }}" class="tag">{{ this_word }} <span>({{ site.tags[this_word].size }})</span></a></li>
13
- {% endfor %}
14
- </ul>
15
- <!--cycles through tag list and creates subheader for each tag name...-->
16
- {% for this_word in tag_words %}
17
- <h2 id="{{ this_word | cgi_escape }}">{{ this_word }}</h2>
18
- <!-- lists all posts corresponding to specific tag...-->
19
- {% for post in site.tags[this_word] %}{% if post.title != null %}
10
+ <ul class="tags">
11
+ <!-- cycles through tag list and creates header row of all tags used in site with accompanying per-tag counts...-->
12
+ {% for this_word in tag_words %}
13
+ <li><a href="#{{ this_word | cgi_escape }}" class="tag">{{ this_word }} <span>({{ site.tags[this_word].size }})</span></a>
14
+ </li>
15
+ {% endfor %}
16
+ </ul>
17
+ <!--cycles through tag list and creates subheader for each tag name...-->
18
+ {% for this_word in tag_words %}
19
+ <h2 id="{{ this_word | cgi_escape }}">{{ this_word }}</h2>
20
+ <!-- lists all posts corresponding to specific tag...-->
21
+ {% for post in site.tags[this_word] %}{% if post.title != null %}
20
22
 
21
- <li id="date-content" style="padding-bottom: 0.6em; list-style: none;"><a href="{{site.baseurl}}{{ post.url }}">{{ post.title }}</a>
22
- <small><span>| {{ post.date | date_to_string }}</span></small>
23
- </li>
23
+ <article class="post feed-title-excerpt-block disable-select"
24
+ data-url="{{site.baseurl}}{{post.url}}">
25
+ {% if post.thumbnail %}
26
+ <a class="post-thumbnail" style="background-image: url({{"" | prepend: site.baseurl | append :
27
+ post.thumbnail}})" href="{{post.url | prepend: site.baseurl}}"></a>
28
+ {% else %}
29
+ {% endif %}
30
+ <div class="post-content">
31
+ <h2 class="post-title"><a href="{{post.url | prepend: site.baseurl}}">{{post.title}}</a></h2>
32
+ <p>{{ post.content | strip_html | truncatewords: 60 }}</p>
33
+ <span class="post-date">{{post.date | date: '%Y, %b %d'}}&nbsp;&nbsp;&nbsp;—&nbsp;</span>
34
+ <span class="post-words">{% capture words %}{{ post.content | number_of_words }}{% endcapture %}{% unless words contains "-" %}{{ words | plus: 250 | divided_by: 250 | append: " minute read" }}{% endunless %}</span>
24
35
 
25
- {% endif %}{% endfor %}
26
- {% endfor %}
27
- </main>
36
+ </div>
37
+ </article>
38
+
39
+ {% endif %}{% endfor %}
40
+ {% endfor %}
41
+ </main>
28
42
  </div>
@@ -0,0 +1,53 @@
1
+ ---
2
+ layout: Page
3
+ ---
4
+ <article class="article-page">
5
+ <div class="page-content">
6
+ {% if page.header %}
7
+ <div class="page-header-image">
8
+ <figure>
9
+ <img class="page-image" src={{ "" | prepend: site.baseurl | append : page.header}} alt="{{page.title}}">
10
+ </figure>
11
+ </div> <!-- End Page Cover Image -->
12
+ {% else %}
13
+ {% endif %}
14
+ <header class="header-page">
15
+ <h1 class="page-title">{{page.title}}</h1>
16
+ </header>
17
+ {%- include Content.html -%}
18
+ <div id="post-wrapper">
19
+ {% for tag in site.tags %}
20
+ {%- if tag[0] == page.tutorial_tag -%}
21
+ {% for post in tag[1] %}
22
+ <article class="post feed-title-excerpt-block disable-select" data-url="{{site.baseurl}}{{post.url}}">
23
+ {% if post.thumbnail %}
24
+ <a class="post-thumbnail" style="background-image: url({{"" | prepend: site.baseurl | append : post.thumbnail}})" href="{{post.url | prepend: site.baseurl}}"></a>
25
+ {% else %}
26
+ {% endif %}
27
+ <div class="post-content">
28
+ <h2 class="post-title"><a href="{{post.url | prepend: site.baseurl}}">{{post.title}}</a></h2>
29
+ <p>{{ post.content | strip_html | truncatewords: 60 }}</p>
30
+ <span class="post-date">{{post.date | date: '%Y, %b %d'}}&nbsp;&nbsp;&nbsp;—&nbsp;</span>
31
+ <span class="post-words">{% capture words %}{{ post.content | number_of_words }}{% endcapture %}{% unless words contains "-" %}{{ words | plus: 250 | divided_by: 250 | append: " minute read" }}{% endunless %}</span>
32
+ </div>
33
+ </article>
34
+ {% endfor %}
35
+ {%- endif -%}
36
+ {% endfor %}
37
+ </div>
38
+
39
+ {%- include Footer.html -%}
40
+
41
+
42
+ {% if site.preferences.author.enabled %}
43
+ {% assign author = site.authors[page.author] %}
44
+ {% if page.author %}
45
+ {% include Author.html %}
46
+ {% endif %}
47
+ {% endif %}
48
+
49
+ {% if page.comments %}
50
+ {%- include Comments.html -%}
51
+ {% endif %}
52
+ </div> <!-- End Page Content -->
53
+ </article> <!-- End Article Page -->
@@ -0,0 +1,20 @@
1
+ ---
2
+ layout: Page
3
+ ---
4
+ <div id="post-wrapper">
5
+ {% for tutorial in site.tutorials %}
6
+ <article class="post feed-title-excerpt-block disable-select" data-url="{{site.baseurl}}{{tutorial.url}}">
7
+ {% if tutorial.thumbnail %}
8
+ <a class="post-thumbnail" style="background-image: url({{"" | prepend: site.baseurl | append : tutorial.thumbnail}})" href="{{tutorial.url | prepend: site.baseurl}}"></a>
9
+ {% else %}
10
+ {% endif %}
11
+ <div class="post-content">
12
+ <h2 class="post-title"><a href="{{tutorial.url | prepend: site.baseurl}}">{{tutorial.title}}</a></h2>
13
+ <p>{{ tutorial.content | strip_html | truncatewords: 60 }}</p>
14
+ <span class="post-date">{{tutorial.date | date: '%Y, %b %d'}}&nbsp;&nbsp;&nbsp;—&nbsp;</span>
15
+ <span class="post-words">{% capture words %}{{ tutorial.content | number_of_words }}{% endcapture %}{% unless words contains "-" %}{{ words | plus: 250 | divided_by: 250 | append: " minute read" }}{% endunless %}</span>
16
+
17
+ </div>
18
+ </article>
19
+ {% endfor %}
20
+ </div>
@@ -106,6 +106,8 @@ html {
106
106
  }
107
107
 
108
108
  body {
109
+ -webkit-font-smoothing: antialiased;
110
+ -moz-osx-font-smoothing: grayscale;
109
111
  counter-reset: sidenote-counter;
110
112
  }
111
113
 
@@ -1,6 +1,13 @@
1
1
  /* ==========================================================================
2
2
  Footer
3
3
  ========================================================================== */
4
+ footer {
5
+ .copyright {
6
+ font-size: 14px;
7
+ text-align: center;
8
+ margin: 0;
9
+ }
10
+ }
4
11
  .page-footer {
5
12
  display: flex;
6
13
  justify-content: space-between;
@@ -1,47 +1,6 @@
1
1
  /* ==========================================================================
2
2
  Main
3
3
  ========================================================================== */
4
- .sidebar {
5
- display: flex;
6
- flex-direction: column;
7
- justify-content: space-between;
8
- position: fixed;
9
- top: 0;
10
- left: 0;
11
- bottom: 0;
12
- width: 240px;
13
- height: 100%;
14
- padding: 20px 10px;
15
- background-color: $primary-bg-color;
16
- }
17
-
18
- .sidebar-info {
19
- margin: 0 0 40px;
20
- text-align: center;
21
-
22
- .sidebar-image {
23
- width: 100px;
24
- height: 150px;
25
- margin: 0 auto 10px;
26
- overflow: hidden;
27
- }
28
-
29
- .sidebar-title {
30
- font-family: 'PT Serif', serif;
31
- margin: 0 0 10px;
32
- position: relative;
33
- padding-bottom: 15px;
34
- font-size: 16px;
35
- text-transform: uppercase;
36
- color: $primary-text-color;
37
- font-weight: 700;
38
- }
39
-
40
- p {
41
- font-size: 16px;
42
- margin: 0 0 10px;
43
- }
44
- }
45
4
 
46
5
  .content-box {
47
6
  padding: 20px 20px 20px 260px;
@@ -2,7 +2,7 @@
2
2
  Media
3
3
  ========================================================================== */
4
4
  /* Medium Devices, Desktops */
5
- @media only screen and (max-width : 1024px) {
5
+ @media only screen and (max-width : 992px) {
6
6
  .post {
7
7
  max-width: 100%;
8
8
  margin: 0 0.9% 1.5%;
@@ -29,7 +29,6 @@
29
29
  @media only screen and (max-width : 768px) {
30
30
  .sidebar {
31
31
  position: relative;
32
- display: flex;
33
32
  flex-direction: column;
34
33
  justify-content: space-between;
35
34
  width: 100%;
@@ -54,7 +53,6 @@
54
53
 
55
54
  .content-box {
56
55
  padding: 20px 10px;
57
- display: flex;
58
56
  flex-direction: row;
59
57
  flex-wrap: wrap;
60
58
  align-items: stretch;
@@ -84,7 +82,6 @@
84
82
 
85
83
  .post {
86
84
  max-width: 100%;
87
- margin: 2%;
88
85
  flex-direction: column;
89
86
 
90
87
  .post-thumbnail {
@@ -0,0 +1,108 @@
1
+ /* ==========================================================================
2
+ PreviousNext
3
+ ========================================================================== */
4
+ /* Previous Next Page Buttons */
5
+ .previousnext {
6
+ float: left;
7
+ margin-bottom: 1em;
8
+ padding-bottom: 1em;
9
+ width: 100%;
10
+
11
+ ul {
12
+ margin: 0;
13
+ padding: 0;
14
+ list-style-type: none;
15
+ font-family: $font-family;
16
+ }
17
+
18
+ li {
19
+ display: block;
20
+ float: left;
21
+ margin-left: -1px;
22
+
23
+ a {
24
+ display: block;
25
+ margin-bottom: 0.25em;
26
+ padding: 0.5em 1em;
27
+ font-family: $font-family;
28
+ font-size: 14px;
29
+ font-weight: bold;
30
+ line-height: 1.5;
31
+ text-align: center;
32
+ text-decoration: none;
33
+ color: $primary-text-color;
34
+ border: 1px solid mix(#000, $footer-border-color, 25%);
35
+ border-radius: 0;
36
+
37
+ &:hover {
38
+ background-color: $quaternary-bg-color;
39
+ }
40
+
41
+ &.current,
42
+ &.current.disabled {
43
+ color: #fff;
44
+ background: $button-hover-color;
45
+ }
46
+
47
+ &.disabled {
48
+ color: rgba($primary-text-color, 0.5);
49
+ pointer-events: none;
50
+ cursor: not-allowed;
51
+ }
52
+ }
53
+
54
+ &:first-child {
55
+ margin-left: 0;
56
+
57
+ a {
58
+ border-top-left-radius: 4px;
59
+ border-bottom-left-radius: 4px;
60
+ }
61
+ }
62
+
63
+ &:last-child {
64
+ a {
65
+ border-top-right-radius: 4px;
66
+ border-bottom-right-radius: 4px;
67
+ }
68
+ }
69
+ }
70
+
71
+ /* next/previous buttons */
72
+ &--pager {
73
+ display: block;
74
+ padding: 1em 2em;
75
+ float: left;
76
+ width: 50%;
77
+ font-family: $font-family;
78
+ font-size: 1em;
79
+ font-weight: bold;
80
+ text-align: center;
81
+ text-decoration: none;
82
+ color: $primary-text-color;
83
+ border: 1px solid mix(#000, $footer-border-color, 25%);
84
+ border-radius: 4px;
85
+
86
+ &:hover {
87
+ background-color: $quaternary-bg-color;
88
+ //@include yiq-contrasted($primary-text-color);
89
+ }
90
+
91
+ &:first-child {
92
+ border-top-right-radius: 0;
93
+ border-bottom-right-radius: 0;
94
+ }
95
+
96
+ &:last-child {
97
+ margin-left: -1px;
98
+ border-top-left-radius: 0;
99
+ border-bottom-left-radius: 0;
100
+ }
101
+
102
+ &.disabled {
103
+ color: rgba($primary-text-color, 0.5);
104
+ pointer-events: none;
105
+ cursor: not-allowed;
106
+ }
107
+ }
108
+ }
@@ -209,7 +209,6 @@
209
209
  /* Blogposts: Post-heading, Post-subheading, Post-content, Related Posts*/
210
210
  .main-site-subheader {
211
211
  border-bottom: 1px solid $primary-border-color;
212
- padding-left: 15px;
213
212
  }
214
213
 
215
214
  .menu {
@@ -0,0 +1,44 @@
1
+ /* ==========================================================================
2
+ Sidebar
3
+ ========================================================================== */
4
+ .sidebar {
5
+ display: flex;
6
+ flex-direction: column;
7
+ justify-content: space-between;
8
+ position: fixed;
9
+ top: 0;
10
+ left: 0;
11
+ bottom: 0;
12
+ width: 240px;
13
+ height: 100%;
14
+ padding: 20px 10px;
15
+ background-color: $primary-bg-color;
16
+ }
17
+
18
+ .sidebar-info {
19
+ margin: 0 0 40px;
20
+ text-align: center;
21
+
22
+ .sidebar-image {
23
+ width: 100px;
24
+ height: 150px;
25
+ margin: 0 auto 10px;
26
+ overflow: hidden;
27
+ }
28
+
29
+ .sidebar-title {
30
+ font-family: 'PT Serif', serif;
31
+ margin: 0 0 10px;
32
+ position: relative;
33
+ padding-bottom: 15px;
34
+ font-size: 16px;
35
+ text-transform: uppercase;
36
+ color: $primary-text-color;
37
+ font-weight: 700;
38
+ }
39
+
40
+ p {
41
+ font-size: 16px;
42
+ margin: 0 0 10px;
43
+ }
44
+ }
@@ -0,0 +1,18 @@
1
+ /* ==========================================================================
2
+ Tables
3
+ ========================================================================== */
4
+ .table-wrapper {
5
+ display: block;
6
+ width: 100%;
7
+ max-width: 100%;
8
+ margin-bottom: 24px;
9
+ overflow-x: auto;
10
+ border-radius: 4px;
11
+ //box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12), 0 3px 10px rgba(0, 0, 0, 0.08);
12
+ }
13
+
14
+ table {
15
+ display: table;
16
+ min-width: 100%;
17
+ border-collapse: separate;
18
+ }
data/_sass/domain.scss CHANGED
@@ -3,7 +3,7 @@
3
3
  * Copyright 2022 Lumunix
4
4
  * Licensed under MIT
5
5
  */
6
-
6
+ @import "domain/sidebar";
7
7
  @import "domain/highlight";
8
8
  @import "domain/tooltip";
9
9
  @import "domain/toc";
@@ -23,3 +23,5 @@
23
23
  @import "domain/util";
24
24
  @import "domain/author";
25
25
  @import "domain/embed";
26
+ @import "domain/previousnext";
27
+ @import "domain/tables";
data/assets/.DS_Store CHANGED
Binary file
Binary file
Binary file
@@ -1,18 +1,18 @@
1
1
  /********************************************************************************************
2
2
  * MIT License
3
- *
3
+ *
4
4
  * Copyright (c) 2020 Raghuveer S
5
- *
5
+ *
6
6
  * Permission is hereby granted, free of charge, to any person obtaining a copy
7
7
  * of this software and associated documentation files (the "Software"), to deal
8
8
  * in the Software without restriction, including without limitation the rights
9
9
  * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10
10
  * copies of the Software, and to permit persons to whom the Software is
11
11
  * furnished to do so, subject to the following conditions:
12
- *
12
+ *
13
13
  * The above copyright notice and this permission notice shall be included in all
14
14
  * copies or substantial portions of the Software.
15
- *
15
+ *
16
16
  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17
17
  * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18
18
  * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
@@ -20,14 +20,14 @@
20
20
  * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21
21
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22
22
  * SOFTWARE.
23
- *
24
- *
23
+ *
24
+ *
25
25
  * File: ContextMenu.js
26
26
  * Author@Raghuveer S
27
27
  *
28
28
  * This allows us to override the default contextmenu provided by the browser and replace
29
29
  * it with a custom context menu containing options to view related files and files
30
- * that link back to it(a.k.a backlinks).
30
+ * that link back to it(a.k.a backlinks).
31
31
  *********************************************************************************************/
32
32
 
33
33
  (function (sj) {
@@ -54,7 +54,7 @@
54
54
  });
55
55
  };
56
56
 
57
- /* Helper function to check if the click event happened
57
+ /* Helper function to check if the click event happened
58
58
  inside the specfied css element or outside */
59
59
  function clickInsideElement(e, className) {
60
60
  var el = e.srsElement || e.target;
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: domain-jekyll
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.1
4
+ version: 1.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lumunix
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-09-25 00:00:00.000000000 Z
11
+ date: 2023-10-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: webrick
@@ -136,7 +136,7 @@ dependencies:
136
136
  - - "~>"
137
137
  - !ruby/object:Gem::Version
138
138
  version: 12.3.3
139
- description:
139
+ description:
140
140
  email:
141
141
  - lumunix@icloud.com
142
142
  executables: []
@@ -161,7 +161,7 @@ files:
161
161
  - _includes/InfiniteScroll.html
162
162
  - _includes/LinkLibrary.md
163
163
  - _includes/Pagination.html
164
- - _includes/Postlist.html
164
+ - _includes/PreviousNext.html
165
165
  - _includes/Related.html
166
166
  - _includes/TwitterEmbed.html
167
167
  - _includes/Utterances.html
@@ -174,6 +174,8 @@ files:
174
174
  - _layouts/Posts.html
175
175
  - _layouts/Sidebar.html
176
176
  - _layouts/Tags.html
177
+ - _layouts/Tutorial.html
178
+ - _layouts/Tutorials.html
177
179
  - _sass/domain.scss
178
180
  - _sass/domain/_author.scss
179
181
  - _sass/domain/_backtotop.scss
@@ -187,9 +189,12 @@ files:
187
189
  - _sass/domain/_media.scss
188
190
  - _sass/domain/_normalize.scss
189
191
  - _sass/domain/_pagination.scss
192
+ - _sass/domain/_previousnext.scss
190
193
  - _sass/domain/_related.scss
191
194
  - _sass/domain/_search.scss
195
+ - _sass/domain/_sidebar.scss
192
196
  - _sass/domain/_sidenote.scss
197
+ - _sass/domain/_tables.scss
193
198
  - _sass/domain/_tag.scss
194
199
  - _sass/domain/_toc.scss
195
200
  - _sass/domain/_tooltip.scss
@@ -237,6 +242,8 @@ files:
237
242
  - assets/img/mermaid.xcf
238
243
  - assets/img/project-banner.png
239
244
  - assets/img/screeee.png
245
+ - assets/img/tutorial.png
246
+ - assets/img/tutorial.xcf
240
247
  - assets/img/type.png
241
248
  - assets/img/useful-references.png
242
249
  - assets/img/useful-references.xcf
@@ -1028,7 +1035,7 @@ licenses:
1028
1035
  - MIT
1029
1036
  metadata:
1030
1037
  plugin_type: theme
1031
- post_install_message:
1038
+ post_install_message:
1032
1039
  rdoc_options: []
1033
1040
  require_paths:
1034
1041
  - lib
@@ -1043,8 +1050,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
1043
1050
  - !ruby/object:Gem::Version
1044
1051
  version: '0'
1045
1052
  requirements: []
1046
- rubygems_version: 3.3.22
1047
- signing_key:
1053
+ rubygems_version: 3.0.3.1
1054
+ signing_key:
1048
1055
  specification_version: 4
1049
1056
  summary: Jekyll theme for building a personal knowledge repository and blog.
1050
1057
  test_files: []
@@ -1,26 +0,0 @@
1
- <div id="post-wrapper">
2
- {% for post in paginator.posts %}
3
- <article class="post feed-title-excerpt-block disable-select" data-url="{{site.baseurl}}{{post.url}}">
4
- {% if post.thumbnail %}
5
- <a class="post-thumbnail" style="background-image: url({{"" | prepend: site.baseurl | append : post.thumbnail}})" href="{{post.url | prepend: site.baseurl}}"></a>
6
- {% else %}
7
- {% endif %}
8
- <div class="post-content">
9
- <h2 class="post-title"><a href="{{post.url | prepend: site.baseurl}}">{{post.title}}</a></h2>
10
- <p>{{ post.content | strip_html | truncatewords: 60 }}</p>
11
- <span class="post-date">{{post.date | date: '%Y, %b %d'}}&nbsp;&nbsp;&nbsp;—&nbsp;</span>
12
- <span class="post-words">{% capture words %}{{ post.content | number_of_words }}{% endcapture %}{% unless words contains "-" %}{{ words | plus: 250 | divided_by: 250 | append: " minute read" }}{% endunless %}</span>
13
-
14
- </div>
15
- </article>
16
- {% endfor %}
17
- </div>
18
-
19
- {% case site.preferences.pagination.system %}
20
- {% when "infinitescroll" %}
21
- {% include InfiniteScroll.html %}
22
- {% when "pagination" %}
23
- {% include Pagination.html %}
24
- {% else %}
25
- {% include InfiniteScroll.html %}
26
- {% endcase %}