my-lab 0.1.1 → 0.1.02

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: 9e6c1b69bf89224f3683daed59294bf7be0349079a17f0498ed5f9fe208fe06a
4
- data.tar.gz: 5d210265e5c12e93ba6e4c8ec718c6732010bf312870be05589c88f09f220f48
3
+ metadata.gz: c87d32aa3592a68b2e65f803ff4d70cc1c8bbbda40249dae808b274c362f0d67
4
+ data.tar.gz: 28ded9665213d4211170859dc5bc027e99fd98d27f4af37e40cd397e657f459c
5
5
  SHA512:
6
- metadata.gz: 5136a4ceeea8b2e918ee69575d1eb03fa8afed09de2db579e85234eee47af810829fc32b1427991de4175e4272a69a0789bfccef2c8b055f3c33d4ec3e29dba1
7
- data.tar.gz: 07cc1b21e9657c6b067e32b01538b2b59e4b3be7b081361b64a7e1252e271042e21c9b6d9000319e8084dd204cb2e789a9a461c244830326376c24efd6fd0bbb
6
+ metadata.gz: d446a604f11e710798635b2b158247bbb40c199994f3bcc9b5d971734cddaa579ecd298d9de1aa9ef51e37d9532cd82fe96cffabf6752b34789187e08477a230
7
+ data.tar.gz: a5647b8573903dd2b00596a530d13a86fe97b6788395112533154c5e595ad5122d4cede09414edfeb603aaf4b1c6413bbcc30b38864736001999e5a089139194
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
- ![main page](/assets/images/my_lab01.jpg)
32
- ![post page](/assets/images/my_lab02.jpg)
31
+ ![](assets/images/my_lab01.jpg)
32
+ ![](assets/images/my_lab02.jpg)
33
33
 
34
34
  ## Usage
35
35
  ### default layouts files
@@ -54,8 +54,6 @@ __index.html__
54
54
  ---
55
55
  layout: default
56
56
  title: Posts
57
- pagination:
58
- enabled: true
59
57
  ---
60
58
  Index page
61
59
  ```
data/_config.yml CHANGED
@@ -9,29 +9,19 @@ encoding: utf-8
9
9
  language: en
10
10
  theme: my-lab
11
11
 
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
12
+ # pagination
13
+ paginate: 2
14
+ paginate_path: /page:num
15
+ sort_field: 'date'
16
+ sort_reverse: true
17
+ limit: 0
28
18
 
29
19
  # socmed
30
20
  twitter_username:
31
21
  github_username: shuamilabs
32
22
  instagram_username: shuamilabs
33
- facebook_username: shuamilabs
34
- youtube_username: UC1CaCMwJq3qd0I1yOf4uO8Q
23
+ facebook_username:
24
+ youtube_username:
35
25
  disqus_username:
36
26
 
37
27
  # navigation
@@ -45,7 +35,9 @@ sass:
45
35
 
46
36
  # plugins
47
37
  plugins:
48
- - jekyll-paginate-v2
38
+ - jekyll-paginate
39
+ - jekyll-seo-tag
40
+ - jekyll-feed
49
41
 
50
42
  exclude:
51
43
  - 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}}/about/">?Me?</a>
4
+ <a href="{{site.url}}{{site.baseurl}}/contact-me/">Contact</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,6 +6,5 @@
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">
10
9
  <link href="{{site.url}}{{site.baseurl}}/assets/css/main.css" type="text/css" rel="stylesheet">
11
10
  </head>
@@ -10,26 +10,12 @@
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>
23
13
  </div>
24
14
 
25
15
  <div id="nav-menu-right">
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>
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>
33
19
  </div>
34
20
  </div>
35
21
 
@@ -6,34 +6,22 @@
6
6
  <body>
7
7
  <div id="main">
8
8
  {% include navigation.html %}
9
-
10
9
  <div id="content-left">
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>
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>
15
20
  <i>posted on {{ post.date | date: "%-d %b %Y" }} by Ahmad Shuami</i>
16
- </li>
17
- {% endfor %}
18
- </ul>
21
+ </div>
22
+ {% endfor %}
19
23
  </div>
20
24
 
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
-
37
25
  {% include footer.html %}
38
26
 
39
27
  </div>
data/_sass/_content.scss CHANGED
@@ -2,7 +2,7 @@
2
2
  margin: auto;
3
3
  padding-top: 5px;
4
4
  margin-bottom: 20px;
5
- padding-bottom: 10px;
5
+ padding-bottom: 20px;
6
6
 
7
7
  a {
8
8
  &:link, &:visited {
@@ -15,22 +15,18 @@
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;
36
32
  }
@@ -45,6 +45,11 @@ 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
+
48
53
  &:hover {
49
54
  text-decoration: none;
50
55
  }
@@ -67,23 +72,6 @@ a {
67
72
  font-size: 12px;
68
73
  }
69
74
 
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
-
87
75
  @media (max-width: 420px) {
88
76
  #nav-top {
89
77
  text-align: center;
data/_sass/_theme.scss CHANGED
@@ -33,50 +33,14 @@ img {
33
33
  border-top: 1px dotted #000;
34
34
  }
35
35
 
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
- }
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;
80
44
  }
81
45
 
82
46
  @media (max-width: 600px) {
data/_sass/mylab.scss CHANGED
@@ -8,6 +8,5 @@
8
8
  "navigation",
9
9
  "category",
10
10
  "post",
11
- "content",
12
- "syntax"
11
+ "content"
13
12
  ;
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.1
4
+ version: 0.1.02
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-31 00:00:00.000000000 Z
11
+ date: 2020-05-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll
@@ -16,34 +16,56 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '4.1'
20
- - - "<"
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
+ - - "~>"
21
32
  - !ruby/object:Gem::Version
22
- version: '5.0'
33
+ version: 1.1.0
23
34
  type: :runtime
24
35
  prerelease: false
25
36
  version_requirements: !ruby/object:Gem::Requirement
26
37
  requirements:
27
38
  - - "~>"
28
39
  - !ruby/object:Gem::Version
29
- version: '4.1'
30
- - - "<"
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
+ - - "~>"
31
53
  - !ruby/object:Gem::Version
32
- version: '5.0'
54
+ version: 2.6.1
33
55
  - !ruby/object:Gem::Dependency
34
- name: jekyll-paginate-v2
56
+ name: jekyll-feed
35
57
  requirement: !ruby/object:Gem::Requirement
36
58
  requirements:
37
59
  - - "~>"
38
60
  - !ruby/object:Gem::Version
39
- version: 3.0.0
61
+ version: 0.13.0
40
62
  type: :runtime
41
63
  prerelease: false
42
64
  version_requirements: !ruby/object:Gem::Requirement
43
65
  requirements:
44
66
  - - "~>"
45
67
  - !ruby/object:Gem::Version
46
- version: 3.0.0
68
+ version: 0.13.0
47
69
  - !ruby/object:Gem::Dependency
48
70
  name: bundler
49
71
  requirement: !ruby/object:Gem::Requirement
@@ -94,12 +116,9 @@ files:
94
116
  - _sass/_content.scss
95
117
  - _sass/_navigation.scss
96
118
  - _sass/_post.scss
97
- - _sass/_syntax.scss
98
119
  - _sass/_theme.scss
99
120
  - _sass/mylab.scss
100
121
  - assets/css/main.scss
101
- - assets/images/favicon-16x16.png
102
- - assets/images/home.png
103
122
  - assets/images/minima-social-icons.svg
104
123
  - assets/images/my_lab01.jpg
105
124
  - assets/images/my_lab02.jpg
data/_sass/_syntax.scss DELETED
@@ -1,206 +0,0 @@
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
- }
Binary file
Binary file