jekyll-theme-mehdix-rtl 0.1.20 → 0.1.21

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
  SHA1:
3
- metadata.gz: '0406948b90fd6d8fcb80412eda4cc4997f57edbd'
4
- data.tar.gz: fd2b8631a3e5935adf72cc65a453117cc9adb752
3
+ metadata.gz: 1a1df1c997bfa6a1531a98d69201893e4b962e91
4
+ data.tar.gz: dcb8576a1eb0a1f9613caa64164e65d5cba9e8e8
5
5
  SHA512:
6
- metadata.gz: dfb77b48fa8c938e80311ea30cf21897cd4eeda4e1be5d444b160f9c422eb9771f959dc0d3200618ea4a4cf575ffe8aa7a16a063eafde612728c9516dd0028f4
7
- data.tar.gz: c5ff564e354e2fa09936fbf7f405ba1917a901e2964df9c83a3b4f661b5ca185c8920040d4fdbbd655bc74f2857aee0baa47ae865d5c4cfce9646aa17ca785c5
6
+ metadata.gz: b22157ee95d5bb7b564561d2dd586d9b23417dceaab34e3871be60606b58b29d0b39c62824b0a40c37085768d62bac766d118615d4c3a98b2275b54af049c1c7
7
+ data.tar.gz: 50d31e1c378e84f94ab876310753c3a066d63875ced1586dee59c75d546f9baec66bbdcc99aa2bed9369bf06c9cac65799e14e9c7198594fbe51aff96f310e6d
@@ -1,48 +1,56 @@
1
- <section id="static-comments">
2
-
3
- {% assign comments = site.data.comments[page.uuid] %}
4
- {% if comments %}
5
- <div id="comments">
6
- <h4>نظرات سایر خوانندگان</h4> {% for comment in comments %}
1
+ {% capture newLine %}
2
+ {% endcapture %}
3
+ <section id="static-comments">
4
+ {% capture key %}{{ page.id | remove_first: "/" }}{% endcapture %}
5
+ {% assign comments = site.data.comments[key] %}
6
+ {% if comments %}
7
+ <div id="comments">
8
+ <h4>کامنت‌دونی</h4>
9
+ {% for comment in comments %}
7
10
  <article>
8
- <div class="comment-image-wrapper"><img class="comment-avatar" src="https://www.gravatar.com/avatar/{{comment.email}}?s=200&d=robohash" /></div>
11
+ <div class="comment-image-wrapper">
12
+ <img class="comment-avatar" src="https://www.gravatar.com/avatar/{{comment.email}}?s=200&d=robohash" />
13
+ </div>
9
14
  <div class="comment-body-wrapper">
10
- <small>
11
- {% if comment.website %}
15
+ <span class="comment-meta">
16
+ <small>
17
+ {% if comment.website != '' %}
12
18
  <a href={{comment.website}}>{{ comment.name }}</a>
13
- {% else %}
19
+ {% else %}
14
20
  {{ comment.name }}
15
- {% endif %}
16
- </small>
17
- <small class="post-meta"> •&nbsp {{ comment.date | jdate: "%d %b %Y" | habify }}</small>
18
- <p>{{ comment.message }}</p>
21
+ {% endif %}
22
+ </small>
23
+ <small class="post-meta"> &nbsp {{ comment.date | jdate: "%d %b %Y" | habify }}</small>
24
+ </span>
25
+ {{ comment.message | replace: "<p>", '' | replace: "</p>", newLine | replace: "<br>", newLine | strip_html | markdownify }}
19
26
  </div>
20
27
  </article>
21
- {% endfor%}
22
- </div>
23
- {% endif %}
28
+ {% endfor%}
29
+ </div>
30
+ {% endif %}
24
31
 
25
- <form id="comment-form" name="comment" netlify>
26
- <input name="bot-field" style="display:none">
27
- <input name="page_id" style="display:none" value="{{page.id}}">
28
- <input name="page_uuid" style="display:none" value="{{page.uuid}}">
29
- <input name="page_date" style="display:none" value="{{page.date}}">
30
- <input name="page_title" style="display:none" value="{{page.title}}">
31
- <label for="message">دیدگاه
32
- <textarea id="message" name="message" required alt="no!!"></textarea>
33
- </label>
34
- <label for="name">نام
35
- <input id="name" type="text" name="name" required>
36
- </label>
37
- <label for="email">ایمیل
38
- <input id="email" type="email" name="email" required>
39
- </label>
40
- <label for="website">وبسایت
41
- <input id="website" type="url" name="website">
42
- </label>
43
- <div style="text-align:left">
44
- <button type="submit">ارسال</button>
45
- </div>
46
- </form>
32
+ <form id="comment-form" name="comment" netlify>
33
+ <input name="bot-field" style="display:none">
34
+ <input name="page_id" style="display:none" value="{{page.id}}">
35
+ <input name="page_uuid" style="display:none" value="{{page.uuid}}">
36
+ <input name="page_date" style="display:none" value="{{page.date}}">
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>
40
+ <textarea id="message" name="message" required alt="no!!"></textarea>
41
+ </label>
42
+ <label for="name">نام
43
+ <input id="name" type="text" name="name" required>
44
+ </label>
45
+ <label for="email">ایمیل
46
+ <input id="email" type="email" name="email" required>
47
+ </label>
48
+ <label for="website">وبسایت
49
+ <input id="website" type="url" name="website">
50
+ </label>
51
+ <div style="text-align:left">
52
+ <button type="submit">ارسال</button>
53
+ </div>
54
+ </form>
47
55
 
48
- </section>
56
+ </section>
data/_sass/_base.scss CHANGED
@@ -11,7 +11,6 @@ body {
11
11
  font-family: $base-font-family;
12
12
  font-size: $base-font-size;
13
13
  line-height: $base-line-height;
14
- font-weight: 300;
15
14
  color: $text-color;
16
15
  background-color: $background-color;
17
16
  -webkit-text-size-adjust: 100%;
@@ -59,45 +58,31 @@ h1, h2, h3, h4, h5, h6 {
59
58
  }
60
59
 
61
60
  a {
62
- // color: $brand-color;
63
61
  color: $text-color;
64
62
  text-decoration: none;
65
63
 
66
64
  &:visited {
67
- //color: darken($brand-color, 15%);
68
65
  color: darken($brand-color, 20%);
69
66
  }
70
67
 
71
68
  &:hover {
72
- //color: $text-color;
73
- //text-decoration: underline;
74
69
  text-decoration: none;
75
70
  color: $brand-color;
76
71
  }
77
72
  }
78
73
 
79
- /* Style for glyphs in quotation marks, courtesy of EnigmaRM http://stackoverflow.com/a/16326442/157216 */
80
74
  blockquote {
81
75
  font-family: $alt-font-family;
82
76
  color: $grey-color;
83
- //border-left: 4px solid $grey-color-light;
84
- //padding-left: $spacing-unit / 2;
85
- //font-size: 18px;
86
77
  letter-spacing: -1px;
87
78
  font-style: italic;
88
79
 
89
- border-left: none;
90
80
  padding-right: $spacing-unit / 2;
91
81
  padding-left: none;
92
82
  font-size: x-large;
93
- margin: 0.25em 0;
83
+ margin: 0.25em 1em;
94
84
  padding: 0.35em;
95
85
  line-height: 1.45;
96
- position: relative;
97
-
98
- > :last-child {
99
- margin-bottom: 0;
100
- }
101
86
 
102
87
  > p {
103
88
  border-right: 4px solid $brand-color;
@@ -105,7 +90,6 @@ blockquote {
105
90
  }
106
91
  }
107
92
 
108
-
109
93
  pre,
110
94
  code {
111
95
  font-size: 15px;
@@ -119,7 +103,6 @@ code {
119
103
 
120
104
  pre {
121
105
  padding: 8px 12px;
122
- // overflow-x: scroll;
123
106
  overflow-x: auto;
124
107
  > code {
125
108
  border: 0;
data/_sass/_post.scss CHANGED
@@ -143,7 +143,6 @@
143
143
  }
144
144
 
145
145
  #comments {
146
- display: grid;
147
146
 
148
147
  article {
149
148
  display: flex;
@@ -154,17 +153,30 @@
154
153
  p {
155
154
  white-space: pre-wrap;
156
155
  }
156
+
157
+ blockquote {
158
+ font-size: inherit;
159
+ }
157
160
  }
158
161
  }
159
162
 
160
163
  .comment-image-wrapper {
161
- width: 77px;
164
+ box-sizing: border-box;
165
+ max-width: 65px;
166
+ margin: 0.5em;
167
+ img {
168
+ clip-path: circle();
169
+ }
162
170
  }
163
171
 
164
172
  .comment-body-wrapper {
165
173
  flex-grow: 1;
166
174
  }
167
175
 
176
+ .comment-meta {
177
+ display: flex;
178
+ }
179
+
168
180
  .pagination {
169
181
  margin-top: 1em;
170
182
  margin-bottom: 1em;
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.20
4
+ version: 0.1.21
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-28 00:00:00.000000000 Z
11
+ date: 2017-12-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll