jekyll-theme-mehdix-rtl 0.1.21 → 0.2.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
  SHA1:
3
- metadata.gz: 1a1df1c997bfa6a1531a98d69201893e4b962e91
4
- data.tar.gz: dcb8576a1eb0a1f9613caa64164e65d5cba9e8e8
3
+ metadata.gz: b516eb316a39d2abff4671e25b6c3c9d457e27a9
4
+ data.tar.gz: ee38de7ed89833d046efd3d00f73d114390e8c7a
5
5
  SHA512:
6
- metadata.gz: b22157ee95d5bb7b564561d2dd586d9b23417dceaab34e3871be60606b58b29d0b39c62824b0a40c37085768d62bac766d118615d4c3a98b2275b54af049c1c7
7
- data.tar.gz: 50d31e1c378e84f94ab876310753c3a066d63875ced1586dee59c75d546f9baec66bbdcc99aa2bed9369bf06c9cac65799e14e9c7198594fbe51aff96f310e6d
6
+ metadata.gz: b2899a5a0c29bfe1222a1284d41fb3badf8ee4160846986735f6703d26c836b053590ad29f6f7ed8040d258690040b147f4909fe2f83406d00a8fc33e8641d35
7
+ data.tar.gz: 298ebba978da34be6e5568bebd8f8eeca7d2a2de2543529153ddf7a813759394edcef932e7dd0c2d8fb3425f6865af01021fb10b749f0ebe2570affee3a7e165
@@ -20,7 +20,7 @@
20
20
  {{ comment.name }}
21
21
  {% endif %}
22
22
  </small>
23
- <small class="post-meta"> &nbsp {{ comment.date | jdate: "%d %b %Y" | habify }}</small>
23
+ <small class="post-meta"> &nbsp; {{ comment.date | jdate: "%d %b %Y" | habify }}</small>
24
24
  </span>
25
25
  {{ comment.message | replace: "<p>", '' | replace: "</p>", newLine | replace: "<br>", newLine | strip_html | markdownify }}
26
26
  </div>
@@ -35,14 +35,13 @@
35
35
  <input name="page_uuid" style="display:none" value="{{page.uuid}}">
36
36
  <input name="page_date" style="display:none" value="{{page.date}}">
37
37
  <input name="page_title" style="display:none" value="{{page.title}}">
38
- <label for="message">دیدگاه &nbsp<small>با <a href="http://commonmark.org/help/">مارک‌داون</a> هم می‌توانید بنویسید.
39
- برای نقل قول از <strong>&gt;&nbsp;</strong>استفاده کنید.</small>
38
+ <label for="message">دیدگاه<sup class="required">*</sup> &nbsp;<small>می‌توانید با<a href="http://commonmark.org/help/">مارک‌داون</a> هم بنویسید.</small>
40
39
  <textarea id="message" name="message" required alt="no!!"></textarea>
41
40
  </label>
42
- <label for="name">نام
41
+ <label for="name">نام<sup class="required">*</sup>
43
42
  <input id="name" type="text" name="name" required>
44
43
  </label>
45
- <label for="email">ایمیل
44
+ <label for="email">ایمیل<sup class="required">*</sup>
46
45
  <input id="email" type="email" name="email" required>
47
46
  </label>
48
47
  <label for="website">وبسایت
data/_layouts/home.html CHANGED
@@ -24,15 +24,18 @@ layout: default
24
24
  {% endif %}
25
25
  </ul>
26
26
 
27
- <div class="pagination">
28
- <p>
29
- {% if paginator.next_page %}
30
- <a href="{{ paginator.next_page_path | absolute_url }}" class="next" style="float: left"> بعدی >> </a>
31
- {% endif %}
27
+ <nav class="pagination">
28
+ {% if paginator.previous_page %}
29
+ <a href="{{ paginator.previous_page_path | absolute_url }}" class="pagination--pager" title="{{ page.previous.title }}">قبلی </a>
30
+ {% else %}
31
+ <a href="#" class="pagination--pager disabled"">قبلی </a>
32
+ {% endif %}
33
+
34
+ {% if paginator.next_page %}
35
+ <a href="{{ paginator.next_page_path | absolute_url }}" class="pagination--pager" title="{{ page.next.title }}">بعدی</a>
36
+ {% else %}
37
+ <a href="#" class="pagination--pager disabled"">بعدی</a>
38
+ {% endif %}
39
+ </nav>
32
40
 
33
- {% if paginator.previous_page %}
34
- <a href="{{ paginator.previous_page_path | absolute_url }}" class="previous" style="margin-right:0px;">&#60&#60 قبلی</a>
35
- {% endif %}
36
- </p>
37
- </div>
38
41
  </div>
@@ -3,11 +3,15 @@ layout: default
3
3
  ---
4
4
  <div class="home">
5
5
  <h1 class="page-heading">❖ &nbsp; همه‌ی نوشته‌ها</h1>
6
- <ul id="post-list">
6
+ <ul class="post-list">
7
7
  {% for post in site.posts %}
8
8
  <li>
9
- <span class="post-meta list-meta-col"><span class="date">{{ post.date | jdate: "%A %d %b %Y" | habify }}</span></span>
10
- <span><a href="{{ post.url | absolute_url }}">{{ post.title }}</a></span>
9
+ <span class="post-meta list-meta-col">
10
+ <span class="date">{{ post.date | jdate: "%A %d %b %Y" | habify }}</span>
11
+ </span>
12
+ <span>
13
+ <a href="{{ post.url | absolute_url }}">{{ post.title }}</a>
14
+ </span>
11
15
  </li>
12
16
  {% endfor %}
13
17
  </ul>
data/_layouts/post.html CHANGED
@@ -1,16 +1,35 @@
1
1
  ---
2
2
  layout: default
3
3
  ---
4
+ {% capture time %}{{ content | reading_time }}{% endcapture %}
4
5
  <div class="post">
5
6
  <header class="post-header">
6
7
  <h1 class="post-title">{{ page.title }}</h1>
7
8
  <p class="post-meta">
8
- <span class="date">{{ page.date | jdate: "%A %d %b %Y" | habify}}</span> {% if page.meta %} • {{ page.meta }}{% endif %}
9
+ <p>
10
+ <svg class="svg-inline--fa fa-calendar fa-w-14" aria-hidden="true" data-fa-processed="" data-prefix="fas" data-icon="calendar" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><path fill="currentColor" d="M12 192h424c6.6 0 12 5.4 12 12v260c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V204c0-6.6 5.4-12 12-12zm436-44v-36c0-26.5-21.5-48-48-48h-48V12c0-6.6-5.4-12-12-12h-40c-6.6 0-12 5.4-12 12v52H160V12c0-6.6-5.4-12-12-12h-40c-6.6 0-12 5.4-12 12v52H48C21.5 64 0 85.5 0 112v36c0 6.6 5.4 12 12 12h424c6.6 0 12-5.4 12-12z"></path></svg>
11
+ <!--i class="fas fa-calendar"></i--> {{ page.date | jdate: "%d %b %Y" | habify}}<br>
12
+ <svg class="svg-inline--fa fa-stopwatch fa-w-14" aria-hidden="true" data-fa-processed="" data-prefix="fas" data-icon="stopwatch" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><path fill="currentColor" d="M432 304c0 114.9-93.1 208-208 208S16 418.9 16 304c0-104 76.3-190.2 176-205.5V64h-28c-6.6 0-12-5.4-12-12V12c0-6.6 5.4-12 12-12h120c6.6 0 12 5.4 12 12v40c0 6.6-5.4 12-12 12h-28v34.5c37.5 5.8 71.7 21.6 99.7 44.6l27.5-27.5c4.7-4.7 12.3-4.7 17 0l28.3 28.3c4.7 4.7 4.7 12.3 0 17l-29.4 29.4-.6.6C419.7 223.3 432 262.2 432 304zm-176 36V188.5c0-6.6-5.4-12-12-12h-40c-6.6 0-12 5.4-12 12V340c0 6.6 5.4 12 12 12h40c6.6 0 12-5.4 12-12z"></path></svg>
13
+ <!--i class="fas fa-stopwatch"></i--> {{ time | habify }} دقیقه مطالعه</p>
14
+ {% if page.meta %} • {{ page.meta }}{% endif %}
9
15
  </p>
10
16
  </header>
11
17
  <article class="post-content">
12
18
  {{ content }}
13
19
  </article>
20
+
21
+ {% if site.related_posts.size >= 1 %}
22
+ <div id="related-posts">
23
+ <h3>مطالب مرتبط</h3>
24
+ <ul>
25
+ {% for related_post in site.related_posts limit: 5 %}
26
+ <li><a href="{{ related_post.url }}">{{ related_post.title }}</a></li>
27
+ {% endfor %}
28
+ </ul>
29
+ </div>
30
+ {% endif %}
31
+
32
+
14
33
  <small id="post-tags">
15
34
  {% for tag in page.tags %}
16
35
  <!--i class="fas fa-tag"></i-->
@@ -23,21 +42,21 @@ layout: default
23
42
 
24
43
  <a href="https://raw.githubusercontent.com/{{site.github.username}}/{{site.github.repository}}/master/{{page.path}}">سورس</a>
25
44
  </small>
45
+
26
46
  <nav class="pagination">
27
- {% if page.previous %}
28
- <a href="{{ page.previous.url | absolute_url }}" class="pagination--pager" title="{{ page.previous.title }}">قبلی </a>
47
+ {% if page.next %}
48
+ <a href="{{ page.next.url | absolute_url }}" class="pagination--pager" title="{{ page.next.title }}">قبلی</a>
29
49
  {% else %}
30
- <a href="#" class="pagination--pager disabled"">قبلی </a>
50
+ <a href="#" class="pagination--pager disabled"">قبلی</a>
31
51
  {% endif %}
32
52
 
33
- {% if page.next %}
34
- <a href="{{ page.next.url | absolute_url }}" class="pagination--pager" title="{{ page.next.title }}">بعدی</a>
53
+ {% if page.previous %}
54
+ <a href="{{ page.previous.url | absolute_url }}" class="pagination--pager" title="{{ page.previous.title }}">بعدی </a>
35
55
  {% else %}
36
- <a href="#" class="pagination--pager disabled"">بعدی</a>
56
+ <a href="#" class="pagination--pager disabled"">بعدی </a>
37
57
  {% endif %}
38
58
  </nav>
39
59
 
40
-
41
60
  {% if site.comment_system == 'static' %}
42
61
  {% include static_comments.html %}
43
62
  {% elsif site.comment_system == 'disqus' %}
data/_sass/_base.scss CHANGED
@@ -27,6 +27,15 @@ ul, ol, dl, figure,
27
27
  margin-bottom: $spacing-unit / 2;
28
28
  }
29
29
 
30
+ h1, h2:not(.footer-heading), h3, h4, h5, h6 {
31
+ color: darken($header-color, 20%);
32
+ margin-bottom: unset;
33
+ }
34
+
35
+ h1, h2, h3, h4, h5, h6 {
36
+ font-weight: normal;
37
+ }
38
+
30
39
  img {
31
40
  max-width: 100%;
32
41
  height: auto;
@@ -43,6 +52,13 @@ figcaption {
43
52
 
44
53
  ul, ol {
45
54
  margin-left: $spacing-unit;
55
+ }
56
+
57
+ ul {
58
+ list-style-type: square;
59
+ }
60
+
61
+ ol {
46
62
  list-style-type: persian;
47
63
  }
48
64
 
@@ -53,22 +69,9 @@ li {
53
69
  }
54
70
  }
55
71
 
56
- h1, h2, h3, h4, h5, h6 {
57
- font-weight: 300;
58
- }
59
-
60
72
  a {
61
- color: $text-color;
73
+ color: darken($brand-color, 20%);
62
74
  text-decoration: none;
63
-
64
- &:visited {
65
- color: darken($brand-color, 20%);
66
- }
67
-
68
- &:hover {
69
- text-decoration: none;
70
- color: $brand-color;
71
- }
72
75
  }
73
76
 
74
77
  blockquote {
@@ -90,23 +93,15 @@ blockquote {
90
93
  }
91
94
  }
92
95
 
93
- pre,
94
- code {
95
- font-size: 15px;
96
- border: 1px solid $grey-color-light;
97
- border-radius: 3px;
98
- }
99
-
100
- code {
101
- padding: 1px 5px;
102
- }
103
-
104
96
  pre {
97
+ direction: ltr;
98
+ border-radius: 3px;
99
+ border: 1px solid $grey-color-light;
105
100
  padding: 8px 12px;
106
101
  overflow-x: auto;
107
102
  > code {
103
+ font-size: 15px;
108
104
  border: 0;
109
- padding-right: 0;
110
105
  padding-left: 0;
111
106
  }
112
107
  }
@@ -115,37 +110,6 @@ table, td, th {
115
110
  border: 1px dotted;
116
111
  }
117
112
 
118
- h1, h2:not(.footer-heading), h3, h4, h5, h6 {
119
- color: darken($header-color, 20%);
120
- margin-bottom: unset;
121
- }
122
-
123
- .wrapper {
124
- max-width: -webkit-calc(800px - (#{$spacing-unit} * 2));
125
- max-width: calc(800px - (#{$spacing-unit} * 2));
126
- margin-right: auto;
127
- margin-left: auto;
128
- padding-right: $spacing-unit;
129
- padding-left: $spacing-unit;
130
- @extend %clearfix;
131
-
132
- @include media-query($on-laptop) {
133
- //max-width: -webkit-calc(800px - (#{$spacing-unit}));
134
- //max-width: calc(800px - (#{$spacing-unit}));
135
- width: 89vw;
136
- padding-right: $spacing-unit / 2;
137
- padding-left: $spacing-unit / 2;
138
- }
139
- }
140
-
141
- %clearfix {
142
-
143
- &:after {
144
- content: "";
145
- display: table;
146
- clear: both;
147
- }
148
- }
149
113
 
150
114
  @counter-style abjad {
151
115
  system: additive;
data/_sass/_footer.scss CHANGED
@@ -35,12 +35,9 @@
35
35
  color: $grey-color;
36
36
  display: inline-flex;
37
37
  margin-top: 1em;
38
-
39
- @extend %clearfix;
40
38
  }
41
39
 
42
40
  .footer-col {
43
- float: left;
44
41
  padding-left: $spacing-unit / 2;
45
42
  }
46
43
 
@@ -112,10 +109,6 @@
112
109
  }
113
110
  }
114
111
 
115
- .footer-col {
116
- float: right;
117
- }
118
-
119
112
  .circle {
120
113
  clip-path: circle();
121
114
  width: 100px;
data/_sass/_layout.scss CHANGED
@@ -9,10 +9,16 @@
9
9
  height: 100%;
10
10
  }
11
11
 
12
- .content-body {
13
- display: table-cell;
14
- padding: 20px;
15
- background: #e7e7e7;
12
+ .wrapper {
13
+ max-width: -webkit-calc(800px - (#{$spacing-unit} * 2));
14
+ max-width: calc(800px - (#{$spacing-unit} * 2));
15
+ margin: 0 auto;
16
+ padding: 0 $spacing-unit;
17
+
18
+ @include media-query($on-laptop) {
19
+ width: 89vw;
20
+ padding: 0 $spacing-unit / 2;
21
+ }
16
22
  }
17
23
 
18
24
  .site-header {
@@ -153,3 +159,4 @@
153
159
  }
154
160
  }
155
161
  }
162
+
data/_sass/_post.scss CHANGED
@@ -3,25 +3,13 @@
3
3
  padding-right: initial;
4
4
  list-style: none;
5
5
 
6
- > li {
7
- margin-bottom: $spacing-unit;
8
- }
9
-
10
6
  h2 {
11
7
  margin-bottom: initial;
12
8
  }
13
- }
14
-
15
- #post-list {
16
- list-style: none;
17
9
 
18
10
  a {
19
11
  color: $text-color;
20
12
  }
21
-
22
- a:hover {
23
- color: $brand-color;
24
- }
25
13
  }
26
14
 
27
15
  .post-meta {
@@ -47,11 +35,16 @@
47
35
  margin-bottom: 0;
48
36
  text-align: center;
49
37
  font-weight: bold;
50
- font-size: 2em;
38
+ font-size: 4em;
51
39
 
52
40
  @include media-query($on-laptop) {
53
- font-size: 36px;
41
+ font-size: 4em;
42
+ }
43
+
44
+ @include media-query($on-palm) {
45
+ font-size: 2em;
54
46
  }
47
+
55
48
  }
56
49
 
57
50
  .post-title, a.post-link {
@@ -72,44 +65,12 @@
72
65
 
73
66
  a {
74
67
  border-bottom: 1px dotted;
75
- color: darken($brand-color, 10%);
76
68
  }
77
69
 
78
70
  iframe {
79
71
  width: 100%;
80
72
  }
81
73
 
82
- h1 {
83
- font-size: 34px;
84
-
85
- @include media-query($on-laptop) {
86
- font-size: 36px;
87
- }
88
- }
89
-
90
- h2 {
91
- font-size: 32px;
92
-
93
- @include media-query($on-laptop) {
94
- font-size: 28px;
95
- }
96
- }
97
-
98
- h3 {
99
- font-size: 26px;
100
-
101
- @include media-query($on-laptop) {
102
- font-size: 22px;
103
- }
104
- }
105
-
106
- h4 {
107
- font-size: 20px;
108
-
109
- @include media-query($on-laptop) {
110
- font-size: 18px;
111
- }
112
- }
113
74
  }
114
75
 
115
76
  #comment-form {
@@ -140,6 +101,10 @@
140
101
  height: 85px;
141
102
  resize: vertical;
142
103
  }
104
+
105
+ sup.required {
106
+ color: $brand-color;
107
+ }
143
108
  }
144
109
 
145
110
  #comments {
@@ -207,4 +172,11 @@
207
172
  .pagination--pager:first-child {
208
173
  border-top-right-radius: 0;
209
174
  border-bottom-right-radius: 0;
175
+ }
176
+
177
+ #related-posts {
178
+ background: rgba(242, 243, 243, 0.48) none repeat scroll 0% 0%;
179
+ a {
180
+ color: $text-color;
181
+ }
210
182
  }
data/assets/css/main.scss CHANGED
@@ -81,7 +81,6 @@ $assets-dir: '{{ "assets" | absolute_url }}';
81
81
  "post",
82
82
  "footer",
83
83
  "tagcloud",
84
- "code",
85
84
  "print",
86
85
  "custom"
87
86
  ;
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-theme-mehdix-rtl
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.21
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mehdi Sadeghi
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-12-30 00:00:00.000000000 Z
11
+ date: 2018-01-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll
@@ -108,6 +108,34 @@ dependencies:
108
108
  - - "~>"
109
109
  - !ruby/object:Gem::Version
110
110
  version: '2.4'
111
+ - !ruby/object:Gem::Dependency
112
+ name: jekyll-tagging-related_posts
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - "~>"
116
+ - !ruby/object:Gem::Version
117
+ version: '1.0'
118
+ type: :runtime
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - "~>"
123
+ - !ruby/object:Gem::Version
124
+ version: '1.0'
125
+ - !ruby/object:Gem::Dependency
126
+ name: liquid_reading_time
127
+ requirement: !ruby/object:Gem::Requirement
128
+ requirements:
129
+ - - "~>"
130
+ - !ruby/object:Gem::Version
131
+ version: '1.1'
132
+ type: :runtime
133
+ prerelease: false
134
+ version_requirements: !ruby/object:Gem::Requirement
135
+ requirements:
136
+ - - "~>"
137
+ - !ruby/object:Gem::Version
138
+ version: '1.1'
111
139
  - !ruby/object:Gem::Dependency
112
140
  name: bundler
113
141
  requirement: !ruby/object:Gem::Requirement
@@ -162,7 +190,6 @@ files:
162
190
  - _layouts/project.html
163
191
  - _layouts/tag_page.html
164
192
  - _sass/_base.scss
165
- - _sass/_code.scss
166
193
  - _sass/_footer.scss
167
194
  - _sass/_layout.scss
168
195
  - _sass/_post.scss
data/_sass/_code.scss DELETED
@@ -1,93 +0,0 @@
1
- /* To adapt different screen sizes, mostly for code blocks */
2
- @media screen and (max-width: 240px) {
3
- pre {
4
- width: 200px;
5
- }
6
-
7
- li .list-meta-col {
8
- display: none;
9
- }
10
- }
11
-
12
- @media screen and (max-width: 540px) {
13
- li .list-meta-col {
14
- display: none;
15
- }
16
- }
17
-
18
- @media screen and (min-width: 240px) and (max-width: 280px) {
19
- pre {
20
- width: 240px;
21
- }
22
- }
23
-
24
- /*Including Apple iPhone 5 */
25
- @media screen and (min-width: 280px) and (max-width: 320px) {
26
- pre {
27
- width: 260px;
28
- }
29
- }
30
-
31
- /*Including Apple iPhone 5 */
32
- @media screen and (min-width: 321px) and (max-width: 360px) {
33
- pre {
34
- width: 300px;
35
- }
36
- }
37
-
38
- @media screen and (min-width: 361px) and (max-width: 400px) {
39
- pre {
40
- width: 340px;
41
- }
42
- }
43
-
44
- /* Nexus 4 */
45
- @media screen and (min-width: 384px) and (max-width: 384px) {
46
- pre {
47
- width: 330px;
48
- }
49
- }
50
-
51
- @media screen and (min-width: 401px) and (max-width: 540px) {
52
- pre {
53
- width: 365px;
54
- }
55
- }
56
-
57
- @media screen and (min-width: 541px) and (max-width: 640px) {
58
- pre {
59
- width: 500px;
60
- }
61
- }
62
-
63
- @media screen and (min-width: 641px) and (max-width: 768px) {
64
- pre {
65
- width: 600px;
66
- }
67
- }
68
-
69
- /* iPad */
70
- @media screen and (min-width: 768px) and (max-width: 768px) {
71
- pre {
72
- width: 705px;
73
- }
74
- }
75
-
76
- /* Apple iPhone 6 */
77
- @media screen and (min-width: 375px) and (max-width: 375px) {
78
- pre {
79
- width: 323px;
80
- }
81
- }
82
-
83
- /* Apple iPhone 6 Plus */
84
- @media screen and (min-width: 414px) and (max-width: 414px) {
85
- pre {
86
- width: 363px;
87
- }
88
- }
89
-
90
- /* Correcting direction for code blocks */
91
- .code, .highlighter-coderay, .highlight {
92
- direction: ltr;
93
- }