steve-for-jekyll 1.1 → 1.1.1

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: 152b1f4da7c646e3a5ec195552e4ee3b457176f99aea8973fd0a6731422e855c
4
- data.tar.gz: 9543f23377037cc62607445bddc653fd7b564d5e291559fa62c796ffef61b8db
3
+ metadata.gz: 8d48b46874b23563736072e38066c55729738dbd29edd7dc0481bcf507497fe1
4
+ data.tar.gz: ba010c4c5054f45c8d00f5c6c65c01d751ef0b69c488c636b097bcfdb1afa27b
5
5
  SHA512:
6
- metadata.gz: 7174cd599953b1b1548d081424a0d0ecb762492ace0965fdac70bdf2fd7ffb7dcdb93f8c505f496bfc2674227b2b704a62b7977e7665c9d78680b6de652ecdc0
7
- data.tar.gz: d0c57c5aad331d14865b2bd9d87dc79586c18fc5d8a2444d9b419dbd0b6abc115c87b6274766c788bf2edba5d4dd9739b553ecf7062b98fd8c2d045627ffdfbf
6
+ metadata.gz: c344c0f6c86e74443d634f5db2636c3a237b54d586b2c87b84c704fc65b53d177f84de24a24fa9c5c5071b618f2957df25cfe9e7db021e30447f476113c2007e
7
+ data.tar.gz: 442425b0f96ad3f7a597be65b69427133c9584447ddf0b73f292074193607203fd6f929977f5bce0b2836e5bce116670f47c3622b339b26349322a3f43566e42
@@ -1,57 +1,57 @@
1
- <article class="content post">
2
- <header class="content-header">
3
- {% if post.category %}
4
- <div class="content-meta">
5
- {%- assign category_slug = post.category | slugify -%}
6
- {%- assign category_url = site.jekyll-archives.permalinks.category -%}
7
-
8
- <a
9
- href="{{ category_url | replace: ':name', category_slug | relative_url }}"
10
- rel="tag"
11
- >
12
- {{- post.category -}}
13
- </a>
14
- </div>
15
- {% endif %}
16
-
17
- {% if post.title != "" %}
18
- <h2 class="content-title">
19
- <a href="{{ post.url | relative_url }}" rel="bookmark">{{ post.title }}</a>
20
- </h2>
21
- {% endif %}
22
-
23
- <div class="content-meta">
24
- <a class="content-date" href="{{ post.url | relative_url }}" rel="bookmark">
25
- <time datetime="{{ post.date | date_to_xmlschema }}">
26
- {{ post.date | date: site.steve.date_formats.post }}
27
- </time>
28
- </a>
29
-
30
- {% if post.author %}
31
- {% assign author = site.data.authors[post.author] %}
32
-
33
- {% if author.url %}
34
- <a class="content-author" href="{{ author.url }}" rel="author">
35
- {{ author.name }}
36
- </a>
37
- {% else %}
38
- <a class="content-author" href="{{ post.author | prepend: 'https://twitter.com/' }}" rel="author">
39
- {{ post.author }}
40
- </a>
41
- {% endif %}
42
- {% endif %}
43
- </div>
44
- </header>
45
-
46
- {% if post.image %}
47
- <figure class="content-cover">
48
- <img src="{{ post.image.url | default: post.image }}" alt="{{ post.image.alt | default: '' }}" />
49
- </figure>
50
- {% endif %}
51
-
52
- {% unless include.full_post == false %}
53
- <div class="content-body">
54
- {{ post.content }}
55
- </div>
56
- {% endunless %}
57
- </article>
1
+ <article class="content post">
2
+ <header class="content-header">
3
+ {% if post.category %}
4
+ <div class="content-meta">
5
+ {%- assign category_slug = post.category | slugify -%}
6
+ {%- assign category_url = site.jekyll-archives.permalinks.category -%}
7
+
8
+ <a
9
+ href="{{ category_url | replace: ':name', category_slug | relative_url }}"
10
+ rel="tag"
11
+ >
12
+ {{- post.category -}}
13
+ </a>
14
+ </div>
15
+ {% endif %}
16
+
17
+ {% if post.title != "" %}
18
+ <h2 class="content-title">
19
+ <a href="{{ post.url | relative_url }}" rel="bookmark">{{ post.title }}</a>
20
+ </h2>
21
+ {% endif %}
22
+
23
+ <div class="content-meta">
24
+ <a class="content-date" href="{{ post.url | relative_url }}" rel="bookmark">
25
+ <time datetime="{{ post.date | date_to_xmlschema }}">
26
+ {{ post.date | date: site.steve.date_formats.post }}
27
+ </time>
28
+ </a>
29
+
30
+ {% if post.author %}
31
+ {% assign author = site.data.authors[post.author] %}
32
+
33
+ {% if author.url %}
34
+ <a class="content-author" href="{{ author.url }}" rel="author">
35
+ {{ author.name }}
36
+ </a>
37
+ {% else %}
38
+ <a class="content-author" href="{{ post.author | prepend: 'https://twitter.com/' }}" rel="author">
39
+ {{ post.author }}
40
+ </a>
41
+ {% endif %}
42
+ {% endif %}
43
+ </div>
44
+ </header>
45
+
46
+ {% if post.image %}
47
+ <figure class="content-cover">
48
+ <img src="{{ post.image.url | default: post.image }}" alt="{{ post.image.alt | default: '' }}" />
49
+ </figure>
50
+ {% endif %}
51
+
52
+ {% unless include.full_post == false %}
53
+ <div class="content-body">
54
+ {{ post.content }}
55
+ </div>
56
+ {% endunless %}
57
+ </article>
@@ -1,43 +1,47 @@
1
- {% if site.data.comments[page.slug] or page.comments != false %}
2
- <section id="comments" class="content">
3
- <h2 class="comments-title">
4
- {{ site.comments.title }}
5
- </h2>
6
-
7
- {% if site.data.comments[page.slug] %}
8
- <ol class="comments-list">
9
-
10
- {% for comment in site.data.comments[page.slug] %}
11
- {% assign comment_body = comment | last %}
12
- <li class="comment-item">
13
- <section class="comment">
14
- <header class="comment-meta">
15
- <img class="author-avatar" src="//www.gravatar.com/avatar/{{ comment_body.email }}?d=monsterid&s=64" alt="" />
16
- <h5 class="author">
17
- {% if comment_body.website %}
18
- <a href="{{ comment_body.website }}" rel="author">
19
- {{ comment_body.name }}
20
- </a>
21
- {% else %}
22
- {{ comment_body.name }}
23
- {% endif %}
24
- </h5>
25
-
26
- <time class="comment-date">
27
- {{ comment_body.date | date: site.comments.date_format }}
28
- </time>
29
- </header>
30
-
31
- <div class="comment-body">
32
- {{ comment_body.message | markdownify }}
33
- </div>
34
- </section>
35
- </li>
36
- {% endfor %}
37
-
38
- </ol>
39
- {% endif %}
40
-
41
- {% include post/comment-form.html %}
42
- </section>
43
- {% endif %}
1
+ {% if site.data.comments[page.slug] or page.comments != false %}
2
+ <section id="comments" class="content">
3
+ <h2 class="comments-title">
4
+ {{ site.comments.title }}
5
+ </h2>
6
+
7
+ {% if site.data.comments[page.slug] %}
8
+ <ol class="comments-list">
9
+
10
+ {% assign comments = site.data.comments[page.slug] | sort: date %}
11
+
12
+ {% for comment_object in site.data.comments[page.slug] %}
13
+
14
+ {% assign comment = comment_object | last %}
15
+
16
+ <li class="comment-item">
17
+ <section class="comment">
18
+ <header class="comment-meta">
19
+ <img class="author-avatar" src="//www.gravatar.com/avatar/{{ comment.email }}?d=monsterid&s=64" alt="" />
20
+ <h5 class="author">
21
+ {% if comment.website %}
22
+ <a href="{{ comment.website }}" rel="author">
23
+ {{ comment.name }}
24
+ </a>
25
+ {% else %}
26
+ {{ comment.name }}
27
+ {% endif %}
28
+ </h5>
29
+
30
+ <time class="comment-date">
31
+ {{ comment.date | date: site.comments.date_format }}
32
+ </time>
33
+ </header>
34
+
35
+ <div class="comment-body">
36
+ {{ comment.message | markdownify }}
37
+ </div>
38
+ </section>
39
+ </li>
40
+ {% endfor %}
41
+
42
+ </ol>
43
+ {% endif %}
44
+
45
+ {% include post/comment-form.html %}
46
+ </section>
47
+ {% endif %}
data/staticman.yml CHANGED
@@ -1,33 +1,30 @@
1
- comments:
2
- name: steve-for-jekyll
3
- branch: feat-staticman-support
4
- comment: "adds staticman data"
5
- path: "_data/comments/{options.slug}"
6
- filename: "comment-{@timestamp}"
7
- format: yaml
8
- allowedFields:
9
- - name
10
- - email
11
- - website
12
- - message
13
- generatedFields:
14
- date:
15
- type: date
16
- options:
17
- format: timestamp-seconds
18
- requiredFields:
19
- - name
20
- - email
21
- - message
22
- transforms:
23
- email: md5
24
- allowedOrigins:
25
- - "esporo.github.io"
26
- - "localhost"
27
- akismet:
28
- enabled: true
29
- author: name
30
- authorEmail: email
31
- authorUrl: website
32
- content: message
33
- type: comment
1
+ comments:
2
+ branch: main
3
+ commitMessage: "Adds comment via Staticman"
4
+ path: "_data/comments/{options.slug}"
5
+ filename: "comment-{@timestamp}"
6
+ format: yaml
7
+ moderation: true
8
+ allowedFields:
9
+ - name
10
+ - email
11
+ - website
12
+ - message
13
+ generatedFields:
14
+ date:
15
+ type: date
16
+ options:
17
+ format: timestamp-seconds
18
+ requiredFields:
19
+ - name
20
+ - email
21
+ - message
22
+ transforms:
23
+ email: md5
24
+ akismet:
25
+ enabled: true
26
+ author: name
27
+ authorEmail: email
28
+ authorUrl: website
29
+ content: message
30
+ type: comment
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: steve-for-jekyll
3
3
  version: !ruby/object:Gem::Version
4
- version: '1.1'
4
+ version: 1.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Arthur Freitas
@@ -44,14 +44,14 @@ dependencies:
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: 0.15.1
47
+ version: '0.15'
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: 0.15.1
54
+ version: '0.15'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: jekyll-seo-tag
57
57
  requirement: !ruby/object:Gem::Requirement