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 +4 -4
- data/_includes/blog/post.html +57 -57
- data/_includes/post/comments.html +47 -43
- data/staticman.yml +30 -33
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8d48b46874b23563736072e38066c55729738dbd29edd7dc0481bcf507497fe1
|
4
|
+
data.tar.gz: ba010c4c5054f45c8d00f5c6c65c01d751ef0b69c488c636b097bcfdb1afa27b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c344c0f6c86e74443d634f5db2636c3a237b54d586b2c87b84c704fc65b53d177f84de24a24fa9c5c5071b618f2957df25cfe9e7db021e30447f476113c2007e
|
7
|
+
data.tar.gz: 442425b0f96ad3f7a597be65b69427133c9584447ddf0b73f292074193607203fd6f929977f5bce0b2836e5bce116670f47c3622b339b26349322a3f43566e42
|
data/_includes/blog/post.html
CHANGED
@@ -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
|
-
{%
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
{%
|
22
|
-
{{
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
{
|
28
|
-
</
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
</
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
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
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
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
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
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:
|
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
|
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
|
54
|
+
version: '0.15'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: jekyll-seo-tag
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|