my-lab 0.1.02 → 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c87d32aa3592a68b2e65f803ff4d70cc1c8bbbda40249dae808b274c362f0d67
4
- data.tar.gz: 28ded9665213d4211170859dc5bc027e99fd98d27f4af37e40cd397e657f459c
3
+ metadata.gz: 00cf3217a52d3e5b6738cb314807b2cf029319e9d037bf34599153c919ec5449
4
+ data.tar.gz: c07b13ead65b4c9efb0b538c26195c164326e79a56519ccee7b6c2cb4f24941f
5
5
  SHA512:
6
- metadata.gz: d446a604f11e710798635b2b158247bbb40c199994f3bcc9b5d971734cddaa579ecd298d9de1aa9ef51e37d9532cd82fe96cffabf6752b34789187e08477a230
7
- data.tar.gz: a5647b8573903dd2b00596a530d13a86fe97b6788395112533154c5e595ad5122d4cede09414edfeb603aaf4b1c6413bbcc30b38864736001999e5a089139194
6
+ metadata.gz: b4efe237934ef869e3b1d44c7e3ccb81d6858fedd81defb7d8fbd33b67677df5d1e6267cef72439178391e385b3c2cc8e4348f7a25692224789c8feea479149f
7
+ data.tar.gz: e7cb525b291d61b22c1fb7cbc381ada14bd8ed5c9918c2947e0bcb9197e83768e726da1ad02c45367bb2f90143da963f538f6c7fc2f3aa1ea07ef07707123c65
data/README.md CHANGED
@@ -28,8 +28,8 @@ Or install it yourself as:
28
28
  $ gem install my-lab
29
29
 
30
30
  ## Image
31
- ![](assets/images/my_lab01.jpg)
32
- ![](assets/images/my_lab02.jpg)
31
+ ![main page](/assets/images/my_lab01.jpg)
32
+ ![post page](/assets/images/my_lab02.jpg)
33
33
 
34
34
  ## Usage
35
35
  ### default layouts files
@@ -54,6 +54,8 @@ __index.html__
54
54
  ---
55
55
  layout: default
56
56
  title: Posts
57
+ pagination:
58
+ enabled: true
57
59
  ---
58
60
  Index page
59
61
  ```
@@ -9,19 +9,29 @@ encoding: utf-8
9
9
  language: en
10
10
  theme: my-lab
11
11
 
12
- # pagination
13
- paginate: 2
14
- paginate_path: /page:num
15
- sort_field: 'date'
16
- sort_reverse: true
17
- limit: 0
12
+ markdown: kramdown
13
+ highlighter: rouge
14
+ kramdown:
15
+ input: GFM
16
+ syntax_highlighter_opts:
17
+ default_lang: html
18
+ css_class : 'syntax'
19
+
20
+ pagination:
21
+ enabled: true
22
+ per_page: 2
23
+ permalink: '/page/:num/'
24
+ title: 'Page :num'
25
+ limit: 0
26
+ sort_field: 'date'
27
+ sort_reverse: true
18
28
 
19
29
  # socmed
20
30
  twitter_username:
21
31
  github_username: shuamilabs
22
32
  instagram_username: shuamilabs
23
- facebook_username:
24
- youtube_username:
33
+ facebook_username: shuamilabs
34
+ youtube_username: UC1CaCMwJq3qd0I1yOf4uO8Q
25
35
  disqus_username:
26
36
 
27
37
  # navigation
@@ -35,9 +45,7 @@ sass:
35
45
 
36
46
  # plugins
37
47
  plugins:
38
- - jekyll-paginate
39
- - jekyll-seo-tag
40
- - jekyll-feed
48
+ - jekyll-paginate-v2
41
49
 
42
50
  exclude:
43
51
  - Gemfile
@@ -1,7 +1,7 @@
1
1
  <div id="footer">
2
2
  <p>
3
3
  © 2020 {{site.owner}} ·
4
- <a href="{{site.url}}{{site.baseurl}}/contact-me/">Contact</a>
4
+ <a href="{{site.url}}{{site.baseurl}}/about/">?Me?</a>
5
5
  </p>
6
6
  <p>
7
7
  <a href="https://github.com/shuamilabs/my-lab">My-Lab</a> created by <a href="https://github.com/shuamilabs/">Shuami Labs</a>
@@ -6,5 +6,6 @@
6
6
  <meta content="Copyright 2020 {{site.owner}}. All rights reserved." name="copyright">
7
7
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
8
8
 
9
+ <link rel="icon" type="image/png" sizes="16x16" href="{{site.url}}{{site.baseurl}}/assets/images/favicon-16x16.png">
9
10
  <link href="{{site.url}}{{site.baseurl}}/assets/css/main.css" type="text/css" rel="stylesheet">
10
11
  </head>
@@ -10,12 +10,26 @@
10
10
  <use xlink:href="/assets/images/minima-social-icons.svg#instagram"></use>
11
11
  </svg>
12
12
  </a>
13
+ <a href="https://facebook.com/{{site.facebook_username}}" target="_blank">
14
+ <svg class="svg-icon">
15
+ <use xlink:href="/assets/images/minima-social-icons.svg#facebook"></use>
16
+ </svg>
17
+ </a>
18
+ <a href="https://www.youtube.com/channel/{{site.youtube_username}}" target="_blank">
19
+ <svg class="svg-icon">
20
+ <use xlink:href="/assets/images/minima-social-icons.svg#youtube"></use>
21
+ </svg>
22
+ </a>
13
23
  </div>
14
24
 
15
25
  <div id="nav-menu-right">
16
- <a href="{{site.url}}{{site.baseurl}}/">Home</a> /
17
- <a href="{{site.url}}{{site.baseurl}}/about/">About</a> /
18
- <a href="{{site.url}}{{site.baseurl}}/categories/">Categories</a>
26
+ <div id="home-menu">
27
+ <a href="{{site.url}}{{site.baseurl}}/">
28
+ <img src="{{site.url}}{{site.baseurl}}/assets/images/home.png" alt="home">
29
+ </a>
30
+ </div> /
31
+ <a href="{{site.url}}{{site.baseurl}}/project/">Project</a> /
32
+ <a href="{{site.url}}{{site.baseurl}}/categories/">Category</a>
19
33
  </div>
20
34
  </div>
21
35
 
@@ -6,22 +6,34 @@
6
6
  <body>
7
7
  <div id="main">
8
8
  {% include navigation.html %}
9
+
9
10
  <div id="content-left">
10
- <h2>Category: {{page.category}}</h2>
11
- {% assign content = page.content | strip_newlines %}
12
- {% if content != "" %}
13
- {{content}}
14
- {% endif %}
15
- {% for post in site.categories[page.category] %}
16
- <div id="intro-post">
17
- <a href="{{site.url}}{{site.baseurl}}{{post.url}}">
18
- <h3>{{post.title}}</h3>
19
- </a>
11
+ <ul class="post-list">
12
+ {% for post in paginator.posts %}
13
+ <li>
14
+ <h3>→ <a class="post-link" href="{{ post.url | relative_url }}">{{ post.title | escape }}</a></h3>
20
15
  <i>posted on {{ post.date | date: "%-d %b %Y" }} by Ahmad Shuami</i>
21
- </div>
22
- {% endfor %}
16
+ </li>
17
+ {% endfor %}
18
+ </ul>
23
19
  </div>
24
20
 
21
+ {% if paginator.total_pages > 1 %}
22
+ <div class="w-line"></div>
23
+ <ul class="pager">
24
+ {% if paginator.previous_page %}
25
+ <li class="previous">
26
+ <a href="{{ paginator.previous_page_path | prepend: site.baseurl | replace: '//', '/' }}">&larr; Newer Posts</a>
27
+ </li>
28
+ {% endif %}
29
+ {% if paginator.next_page %}
30
+ <li class="next">
31
+ <a href="{{ paginator.next_page_path | prepend: site.baseurl | replace: '//', '/' }}">Older Posts &rarr;</a>
32
+ </li>
33
+ {% endif %}
34
+ </ul>
35
+ {% endif %}
36
+
25
37
  {% include footer.html %}
26
38
 
27
39
  </div>
@@ -2,7 +2,7 @@
2
2
  margin: auto;
3
3
  padding-top: 5px;
4
4
  margin-bottom: 20px;
5
- padding-bottom: 20px;
5
+ padding-bottom: 10px;
6
6
 
7
7
  a {
8
8
  &:link, &:visited {
@@ -15,18 +15,22 @@
15
15
  }
16
16
  }
17
17
 
18
- .cust-code {
19
- font-size: 14px;
20
- background-color: #ececec;
21
- padding: 5px 10px;
22
- border-top: 3px double #000;
23
- border-radius: 5px;
24
- width: 100%;
25
- }
18
+ // .cust-code {
19
+ // font-size: 14px;
20
+ // background-color: #ececec;
21
+ // padding: 5px 10px;
22
+ // border-top: 3px double #000;
23
+ // border-radius: 5px;
24
+ // width: 100%;
25
+ // }
26
26
 
27
27
  }
28
28
 
29
29
  #content {
30
30
  text-align: center;
31
31
  margin: auto;
32
+ }
33
+
34
+ .w-line {
35
+ border-bottom: 1px solid #ddd;
32
36
  }
@@ -45,11 +45,6 @@ a {
45
45
  #nav-menu-left {
46
46
  display: inline;
47
47
  a {
48
- &:link, &:visited {
49
- text-decoration: none;
50
- color: #000;
51
- }
52
-
53
48
  &:hover {
54
49
  text-decoration: none;
55
50
  }
@@ -72,6 +67,23 @@ a {
72
67
  font-size: 12px;
73
68
  }
74
69
 
70
+ #home-menu {
71
+ display: inline;
72
+
73
+ img {
74
+ width: 16px;
75
+ position: relative;
76
+ top: 2px;
77
+ cursor: pointer;
78
+ }
79
+
80
+ a {
81
+ &:hover {
82
+ text-decoration: none;
83
+ }
84
+ }
85
+ }
86
+
75
87
  @media (max-width: 420px) {
76
88
  #nav-top {
77
89
  text-align: center;
@@ -0,0 +1,206 @@
1
+ .highlight {
2
+ background: #ffffff;
3
+ margin: auto 0;
4
+ border-bottom: 1px double #000;
5
+ border-top: 3px double #000;
6
+ border-left: 1px solid #000;
7
+ border-right: 1px solid #000;
8
+ border-radius: 5px;
9
+ padding: 0 0.5em;
10
+
11
+ pre {
12
+ // padding: 0.5em;
13
+ overflow-x: auto;
14
+ }
15
+
16
+ td.code pre {
17
+ padding: 0;
18
+ white-space: pre;
19
+ }
20
+
21
+ > pre {
22
+ white-space: pre;
23
+ }
24
+
25
+ .c {
26
+ color: #999988;
27
+ font-style: italic;
28
+ }
29
+
30
+ .err {
31
+ color: #a61717;
32
+ background-color: #e3d2d2;
33
+ }
34
+
35
+ .k, .o {
36
+ font-weight: bold;
37
+ }
38
+
39
+ .cm {
40
+ color: #999988;
41
+ font-style: italic;
42
+ }
43
+
44
+ .cp {
45
+ color: #999999;
46
+ font-weight: bold;
47
+ }
48
+
49
+ .c1 {
50
+ color: #999988;
51
+ font-style: italic;
52
+ }
53
+
54
+ .cs {
55
+ color: #999999;
56
+ font-weight: bold;
57
+ font-style: italic;
58
+ }
59
+
60
+ .gd {
61
+ color: #000000;
62
+ background-color: #ffdddd;
63
+
64
+ .x {
65
+ color: #000000;
66
+ background-color: #ffaaaa;
67
+ }
68
+ }
69
+
70
+ .ge {
71
+ font-style: italic;
72
+ }
73
+
74
+ .gr {
75
+ color: #aa0000;
76
+ }
77
+
78
+ .gh {
79
+ color: #999999;
80
+ }
81
+
82
+ .gi {
83
+ color: #000000;
84
+ background-color: #ddffdd;
85
+
86
+ .x {
87
+ color: #000000;
88
+ background-color: #aaffaa;
89
+ }
90
+ }
91
+
92
+ .go {
93
+ color: #888888;
94
+ }
95
+
96
+ .gp {
97
+ color: #555555;
98
+ }
99
+
100
+ .gs {
101
+ font-weight: bold;
102
+ }
103
+
104
+ .gu {
105
+ color: #aaaaaa;
106
+ }
107
+
108
+ .gt {
109
+ color: #aa0000;
110
+ }
111
+
112
+ .kc, .kd, .kp, .kr {
113
+ font-weight: bold;
114
+ }
115
+
116
+ .kt {
117
+ color: #445588;
118
+ font-weight: bold;
119
+ }
120
+
121
+ .m {
122
+ color: #009999;
123
+ }
124
+
125
+ .s {
126
+ color: #d14;
127
+ }
128
+
129
+ .na {
130
+ color: #008080;
131
+ }
132
+
133
+ .nb {
134
+ color: #0086B3;
135
+ }
136
+
137
+ .nc {
138
+ color: #445588;
139
+ font-weight: bold;
140
+ }
141
+
142
+ .no {
143
+ color: #008080;
144
+ }
145
+
146
+ .ni {
147
+ color: #800080;
148
+ }
149
+
150
+ .ne, .nf {
151
+ color: #990000;
152
+ font-weight: bold;
153
+ }
154
+
155
+ .nn {
156
+ color: #555555;
157
+ }
158
+
159
+ .nt {
160
+ color: #000080;
161
+ }
162
+
163
+ .nv {
164
+ color: #008080;
165
+ }
166
+
167
+ .ow {
168
+ font-weight: bold;
169
+ }
170
+
171
+ .w {
172
+ color: #bbbbbb;
173
+ }
174
+
175
+ .mf, .mh, .mi, .mo {
176
+ color: #009999;
177
+ }
178
+
179
+ .sb, .sc, .sd, .s2, .se, .sh, .si, .sx {
180
+ color: #d14;
181
+ }
182
+
183
+ .sr {
184
+ color: #009926;
185
+ }
186
+
187
+ .s1 {
188
+ color: #d14;
189
+ }
190
+
191
+ .ss {
192
+ color: #990073;
193
+ }
194
+
195
+ .bp {
196
+ color: #999999;
197
+ }
198
+
199
+ .vc, .vg, .vi {
200
+ color: #008080;
201
+ }
202
+
203
+ .il {
204
+ color: #009999;
205
+ }
206
+ }
@@ -33,14 +33,50 @@ img {
33
33
  border-top: 1px dotted #000;
34
34
  }
35
35
 
36
- .pagination {
37
- border: 1px dashed #000;
38
- padding: 5px 10px;
39
- background-color: #ddd;
40
- border-radius: 25px;
41
- font-size: 15px;
42
- margin-top: 10px;
43
- text-align: right;
36
+ .pager {
37
+ margin: 15px 0;
38
+ padding: 0;
39
+ text-align: center;
40
+ list-style: none;
41
+
42
+ li {
43
+ display: inline;
44
+
45
+ a {
46
+ display: inline-block;
47
+ text-decoration: none;
48
+ padding: 5px 10px;
49
+ color: #000;
50
+ border: 1px solid #ddd;
51
+ border-radius: 25px;
52
+ }
53
+ }
54
+ }
55
+
56
+ .post-list {
57
+ list-style: none;
58
+ padding: 0;
59
+
60
+ li {
61
+ h3 {
62
+ margin-bottom: 5px;
63
+ }
64
+ }
65
+
66
+ i {
67
+ font-size: 0.8em;
68
+ color: grey;
69
+ }
70
+ }
71
+
72
+ @media (max-width: 392px) {
73
+ .pager {
74
+ li {
75
+ a {
76
+ margin-top: 5px;
77
+ }
78
+ }
79
+ }
44
80
  }
45
81
 
46
82
  @media (max-width: 600px) {
@@ -8,5 +8,6 @@
8
8
  "navigation",
9
9
  "category",
10
10
  "post",
11
- "content"
11
+ "content",
12
+ "syntax"
12
13
  ;
Binary file
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: my-lab
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.02
4
+ version: 1.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - shuamilabs
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-05-30 00:00:00.000000000 Z
11
+ date: 2020-05-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll
@@ -16,56 +16,34 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 3.8.7
20
- type: :runtime
21
- prerelease: false
22
- version_requirements: !ruby/object:Gem::Requirement
23
- requirements:
24
- - - "~>"
25
- - !ruby/object:Gem::Version
26
- version: 3.8.7
27
- - !ruby/object:Gem::Dependency
28
- name: jekyll-paginate
29
- requirement: !ruby/object:Gem::Requirement
30
- requirements:
31
- - - "~>"
19
+ version: '4.1'
20
+ - - "<"
32
21
  - !ruby/object:Gem::Version
33
- version: 1.1.0
22
+ version: '5.0'
34
23
  type: :runtime
35
24
  prerelease: false
36
25
  version_requirements: !ruby/object:Gem::Requirement
37
26
  requirements:
38
27
  - - "~>"
39
28
  - !ruby/object:Gem::Version
40
- version: 1.1.0
41
- - !ruby/object:Gem::Dependency
42
- name: jekyll-seo-tag
43
- requirement: !ruby/object:Gem::Requirement
44
- requirements:
45
- - - "~>"
46
- - !ruby/object:Gem::Version
47
- version: 2.6.1
48
- type: :runtime
49
- prerelease: false
50
- version_requirements: !ruby/object:Gem::Requirement
51
- requirements:
52
- - - "~>"
29
+ version: '4.1'
30
+ - - "<"
53
31
  - !ruby/object:Gem::Version
54
- version: 2.6.1
32
+ version: '5.0'
55
33
  - !ruby/object:Gem::Dependency
56
- name: jekyll-feed
34
+ name: jekyll-paginate-v2
57
35
  requirement: !ruby/object:Gem::Requirement
58
36
  requirements:
59
37
  - - "~>"
60
38
  - !ruby/object:Gem::Version
61
- version: 0.13.0
39
+ version: 3.0.0
62
40
  type: :runtime
63
41
  prerelease: false
64
42
  version_requirements: !ruby/object:Gem::Requirement
65
43
  requirements:
66
44
  - - "~>"
67
45
  - !ruby/object:Gem::Version
68
- version: 0.13.0
46
+ version: 3.0.0
69
47
  - !ruby/object:Gem::Dependency
70
48
  name: bundler
71
49
  requirement: !ruby/object:Gem::Requirement
@@ -116,9 +94,12 @@ files:
116
94
  - _sass/_content.scss
117
95
  - _sass/_navigation.scss
118
96
  - _sass/_post.scss
97
+ - _sass/_syntax.scss
119
98
  - _sass/_theme.scss
120
99
  - _sass/mylab.scss
121
100
  - assets/css/main.scss
101
+ - assets/images/favicon-16x16.png
102
+ - assets/images/home.png
122
103
  - assets/images/minima-social-icons.svg
123
104
  - assets/images/my_lab01.jpg
124
105
  - assets/images/my_lab02.jpg