jekyll-theme-mehdix-rtl 3.0.1 → 3.1.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: ee420e15fc9c3c187f347f9b3a086e2451ea10e7a2bfb8b1e9dea5b7818cbc6c
4
- data.tar.gz: 7718fd4781b88bf5f1ce8558f4a1e4299b1dfbd3f082e311ee84586b4b3b0302
3
+ metadata.gz: 0424ae25ada914b8cf1283f68906d93604f531664bf88cabf63988560dc3957f
4
+ data.tar.gz: 55a7036099229f1340ebeb3f4ab2a61149c82d4cd4c3933b8d2f669bee57ca8c
5
5
  SHA512:
6
- metadata.gz: 6cc9ec657805668b90233e4585d73c9e5ce4b7db9767ae56f5f2eab0fbceca16c02abfa817170cf6b9c38e6c2a57fccb1e1d5c292e5e9ba4f837d33d6e297522
7
- data.tar.gz: 3214fea455bb5c85ba3f45b7e6d19241dbe5d585adebbc9bc855ee6a7fbf73bb989ece194dab13a8a6dafd0afde865a32b2d9a0c9b114b9b97fdd92ab65ef0ad
6
+ metadata.gz: 4d3cf21363b64a3ddf40fc80a6f547137abf03421328d552abfc437db8f3666cd555e15744be00da86d48aa60c88bfd14527f06f36aba4ddf865b6bd1d871552
7
+ data.tar.gz: 483f4b41fd78cae3bc52169b413d62a1f9d759ae4ff34f729628d82951d718c1ee704f2bb8a165bdb30d6117f62da0024ce7196b607c89080294f06140e7cd67
@@ -0,0 +1,31 @@
1
+ {% assign config=site.comments.static %}
2
+
3
+ <article id="{{ include.comment.id }}">
4
+ {% if config.avatar.visible %}
5
+ <div class="comment-image-wrapper">
6
+ <img class="comment-avatar" src="https://www.gravatar.com/avatar/{{include.comment.email}}?s=200&d=robohash" />
7
+ </div>
8
+ {% endif %}
9
+ <div class="comment-body-wrapper">
10
+ <span class="comment-meta">
11
+ <small>
12
+ {% if include.comment.website != '' %}
13
+ <a href={{include.comment.website}} target="_"><span commenter>{{ include.comment.name }}</span></a>
14
+ {% else %}
15
+ <span commenter>{{ include.comment.name }}</span>
16
+ {% endif %}
17
+ </small>
18
+ <small> &nbsp; <a href="#{{ include.comment.id }}">{{ include.comment.created_at | jdate: "%d %b %Y" | habify }}</a></small>
19
+ <span style="display:none" commentId>{{ include.comment.id }}</span>
20
+ </span>
21
+ {{ include.comment.message | replace: "<p>", '' | replace: "</p>", newLine | replace: "<br>", newLine | strip_html | markdownify }}
22
+ <small class="comment-meta"> &nbsp; <a href="#comment-form" onclick="replyTo('{{ include.comment.id }}')">پاسخ</a></small>
23
+ </div>
24
+ </article>
25
+ <div class="reply">
26
+ {% for cc in include.comments %}
27
+ {% if cc.reply_to == include.comment.id %}
28
+ {% include comment.html comment=cc %}
29
+ {% endif %}
30
+ {% endfor %}
31
+ </div>
@@ -1,64 +1,22 @@
1
1
  {% capture newLine %}
2
2
  {% endcapture %}
3
+ {% capture key %}{{ page.id | remove_first: "/" }}{% endcapture %}
4
+ {% assign comments = site.data.comments[key] %}
5
+
3
6
  <section id="static-comments">
4
- {% capture key %}{{ page.id | remove_first: "/" }}{% endcapture %}
5
- {% assign comments = site.data.comments[key] %}
7
+
6
8
  {% if comments %}
7
9
  <h4 id="comments-header">دیدگاه‌ها</h4>
8
10
  <div id="comments">
9
- {% for comment in comments %}
10
- <div class="comment-chain">
11
- <article id="{{ comment.id }}">
12
- <div class="comment-image-wrapper">
13
- <img class="comment-avatar" src="https://www.gravatar.com/avatar/{{comment.email}}?s=200&d=robohash" />
14
- </div>
15
- <div class="comment-body-wrapper">
16
- <span class="comment-meta">
17
- <small>
18
- {% if comment.website != '' %}
19
- <a href={{comment.website}} target="_"><span commenter>{{ comment.name }}</span></a>
20
- {% else %}
21
- <span commenter>{{ comment.name }}</span>
22
- {% endif %}
23
- </small>
24
- <small> &nbsp; <a href="#{{ comment.id }}">{{ comment.created_at | jdate: "%d %b %Y" | habify }}</a></small>
25
- <small> &nbsp; <a href="#comment-form" onclick="replyTo('{{ comment.id }}')">پاسخ</a></small>
26
- <span style="display:none" commentId>{{ comment.id }}</span>
27
- </span>
28
- {{ comment.message | replace: "<p>", '' | replace: "</p>", newLine | replace: "<br>", newLine | strip_html | markdownify }}
29
- </div>
30
- </article>
31
-
32
- {% if comment.reply_to %}
33
- {% for cmt in comments %}
34
- {% if cmt.id == comment.reply_to %}
35
- <article class="sub-comment">
36
-
37
- <div class="comment-image-wrapper">
38
- <img class="comment-avatar" src="https://www.gravatar.com/avatar/{{cmt.email}}?s=200&d=robohash" />
39
- </div>
40
- <div class="comment-body-wrapper">
41
- <span class="comment-meta">
42
- <small>
43
- {% if cmt.website != '' %}
44
- <a href={{cmt.website}} target="_"><span commenter>{{ cmt.name }}</span></a>
45
- {% else %}
46
- {{ cmt.name }}
47
- {% endif %}
48
- </small>
49
- <small> &nbsp; <a href="#{{ cmt.id }}">{{ cmt.created_at | jdate: "%d %b %Y" | habify }}</a></small>
50
- </span>
51
- {{ cmt.message | replace: "<p>", '' | replace: "</p>", newLine | replace: "<br>", newLine | strip_html | markdownify }}
52
- </div>
53
11
 
54
- </article>
55
- {% break %}
56
- {% endif %}
57
- {% endfor %}
58
- {% endif %}
59
-
60
- </div>
12
+ {% for comment in comments %}
13
+ {% if comment.reply_to == nil %}
14
+ <div class="comment-chain">
15
+ {% include comment.html comment=comment comments=comments%}
16
+ </div>
17
+ {% endif %}
61
18
  {% endfor%}
19
+
62
20
  </div>
63
21
  {% endif %}
64
22
 
@@ -89,13 +89,11 @@ blockquote {
89
89
  font-style: italic;
90
90
 
91
91
  letter-spacing: -1px;
92
- line-height: 1.45;
93
92
  color: $grey-color;
94
- margin: 0;
95
93
 
96
94
  > p {
97
95
  border-right: 4px solid lighten($brand-color, 30%);
98
- padding: $spacing-unit / 2;
96
+ padding-right: $spacing-unit / 2
99
97
  }
100
98
  }
101
99
 
@@ -99,20 +99,22 @@
99
99
 
100
100
  #comments article {
101
101
  display: flex;
102
- margin-top: 1em;
103
102
 
104
103
  p {
105
104
  white-space: pre-wrap;
106
- margin-top: 0;
105
+ // margin-top: 0;
107
106
  }
108
107
 
109
108
  blockquote {
110
109
  font-size: inherit;
110
+ margin: 0;
111
111
  }
112
+
112
113
  }
113
114
 
114
115
  .comment-chain {
115
116
  border-bottom: 1px solid #f2f3f3;
117
+ margin-bottom: 5px;
116
118
  background-color: lighten($brand-color, 55%);//lighten($grey-color-light, 20%);
117
119
 
118
120
  .sub-comment {
@@ -150,18 +152,21 @@
150
152
 
151
153
  .comment-image-wrapper {
152
154
  box-sizing: border-box;
153
- max-width: 65px;
154
- min-width: 65px;
155
+ max-width: 55px;
156
+ min-width: 55px;
155
157
  margin: 0.5em;
156
158
  overflow: hidden;
157
159
  img {
158
- clip-path: circle();
160
+ // clip-path: circle();
159
161
  }
160
162
  }
161
163
 
162
164
  .comment-body-wrapper {
163
165
  flex-grow: 1;
164
166
  padding: 5px;
167
+ p {
168
+ margin: 0;
169
+ }
165
170
  }
166
171
 
167
172
  .comment-meta {
@@ -173,6 +178,10 @@
173
178
  }
174
179
  }
175
180
 
181
+ .reply {
182
+ margin-right: $spacing-unit;
183
+ }
184
+
176
185
  #comment-form {
177
186
  background: lighten($brand-color, 55%);
178
187
  color: darken($brand-color, 30%);
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: 3.0.1
4
+ version: 3.1.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: 2019-09-19 00:00:00.000000000 Z
11
+ date: 2019-09-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll
@@ -180,6 +180,7 @@ files:
180
180
  - LICENSE
181
181
  - README.md
182
182
  - _includes/analyticstracking.html
183
+ - _includes/comment.html
183
184
  - _includes/disqus.html
184
185
  - _includes/footer.html
185
186
  - _includes/head.html