jmblog-theme 0.1.0 → 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/_authors/john_doe.md +15 -0
- data/_config.yml +98 -0
- data/_data/navigation.yml +8 -0
- data/_includes/{JB → JB.old}/analytics +0 -0
- data/_includes/{JB → JB.old}/analytics-providers/getclicky +0 -0
- data/_includes/{JB → JB.old}/analytics-providers/mixpanel +0 -0
- data/_includes/{JB → JB.old}/analytics-providers/piwik +0 -0
- data/_includes/{JB → JB.old}/categories_list +0 -0
- data/_includes/{JB → JB.old}/comments +0 -0
- data/_includes/{JB → JB.old}/comments-providers/disqus +0 -0
- data/_includes/{JB → JB.old}/comments-providers/facebook +0 -0
- data/_includes/{JB → JB.old}/comments-providers/intensedebate +0 -0
- data/_includes/{JB → JB.old}/comments-providers/livefyre +0 -0
- data/_includes/{JB → JB.old}/liquid_raw +0 -0
- data/_includes/{JB → JB.old}/pages_list +0 -0
- data/_includes/{JB → JB.old}/posts_collate +0 -0
- data/_includes/{JB → JB.old}/setup +0 -0
- data/_includes/{JB → JB.old}/sharing +0 -0
- data/_includes/{JB → JB.old}/tags_list +0 -0
- data/_includes/{JB → JB.old}/urlset +0 -0
- data/_includes/themes/jmblog-theme/bio.html +45 -0
- data/_includes/themes/{jmblog → jmblog-theme}/components/analytics/google +0 -0
- data/_includes/themes/{jmblog → jmblog-theme}/components/analytics/googletagmanager_body.html +0 -0
- data/_includes/themes/{jmblog → jmblog-theme}/components/analytics/googletagmanager_head.html +0 -0
- data/_includes/themes/{jmblog → jmblog-theme}/components/analytics/hubspot.html +0 -0
- data/_includes/themes/{jmblog → jmblog-theme}/components/analytics/hubspot_cookie_removal.html +0 -0
- data/_includes/themes/jmblog-theme/components/article_highlight.html +48 -0
- data/_includes/themes/jmblog-theme/components/author.html +45 -0
- data/_includes/themes/{jmblog → jmblog-theme}/components/breadcrumb +0 -0
- data/_includes/themes/{jmblog → jmblog-theme}/components/centred_buttons.html +0 -0
- data/_includes/themes/jmblog-theme/components/comment.html +79 -0
- data/_includes/themes/jmblog-theme/components/comment_form.html +87 -0
- data/_includes/themes/jmblog-theme/components/comments.html +41 -0
- data/_includes/themes/jmblog-theme/components/comments.html.orig +19 -0
- data/_includes/themes/{jmblog → jmblog-theme}/components/contact_form.html +0 -0
- data/_includes/themes/{jmblog → jmblog-theme}/components/footer.html +2 -2
- data/_includes/themes/{jmblog → jmblog-theme}/components/head.html +15 -8
- data/_includes/themes/jmblog-theme/components/img.html +12 -0
- data/_includes/themes/jmblog-theme/components/lazyload.html +17 -0
- data/_includes/themes/jmblog-theme/components/navigation.html +66 -0
- data/_includes/themes/jmblog-theme/components/pagination_links.html +39 -0
- data/_includes/themes/{jmblog → jmblog-theme}/components/posts_list +0 -0
- data/_includes/themes/jmblog-theme/components/reading-time.html +6 -0
- data/_includes/themes/jmblog-theme/components/related_articles.html +73 -0
- data/_includes/themes/{jmblog → jmblog-theme}/components/resume.html +0 -0
- data/_includes/themes/jmblog-theme/components/share_buttons.html +20 -0
- data/_includes/themes/{jmblog → jmblog-theme}/components/social_buttons_large.html +0 -0
- data/_includes/themes/jmblog-theme/components/social_buttons_small.html +38 -0
- data/_includes/themes/{jmblog → jmblog-theme}/error.html +3 -3
- data/_includes/themes/jmblog-theme/home.html +94 -0
- data/_includes/themes/jmblog-theme/page.html +26 -0
- data/_includes/themes/jmblog-theme/post.html +68 -0
- data/_includes/themes/{jmblog → jmblog-theme}/resume.html +3 -3
- data/_includes/themes/jmblog-theme/settings.yml +2 -0
- data/_includes/themes/{jmblog/theme/error.html → jmblog-theme/theme/_old_error.html} +6 -6
- data/_includes/themes/jmblog-theme/theme/default.html +1 -0
- data/_includes/themes/jmblog-theme/theme/maintenance.html +1 -0
- data/_includes/themes/resume.html +1 -1
- data/_layouts/bio.html +11 -0
- data/_layouts/default.html +5 -4
- data/_layouts/error.html +7 -3
- data/_layouts/home.html +11 -0
- data/_layouts/maintenance.html +11 -0
- data/_layouts/page.html +2 -2
- data/_layouts/post.html +1 -1
- data/_layouts/resume.html +2 -2
- data/_pages/404.md +11 -0
- data/_pages/contact.md +7 -0
- data/_posts/2020-07-06-managing-and-leading-remote-teams-in-our-new-normal.md +34 -0
- data/assets/img/chris-montgomery-smgTvepind4-unsplash.jpg +0 -0
- data/assets/img/ph.png +0 -0
- data/assets/img/user-circle-solid.svg +1 -0
- data/assets/js/default.bundle.js +2 -0
- data/assets/js/default.bundle.js.br +0 -0
- data/assets/js/default.js.map +1 -0
- data/assets/js/maintenance.bundle.js +2 -0
- data/assets/js/maintenance.bundle.js.br +0 -0
- data/assets/js/maintenance.js.map +1 -0
- data/assets/js/vendor.bundle.js +2 -0
- data/assets/js/vendor.bundle.js.br +0 -0
- data/assets/js/vendor.js.map +1 -0
- data/assets/sass/base.scss +84 -0
- data/assets/sass/modules/card.scss +55 -0
- data/assets/sass/modules/navbar.scss +49 -0
- data/assets/sass/theme/_all.scss +2 -0
- data/assets/sass/theme/brand.scss +56 -0
- data/assets/sass/theme/lazyload.scss +10 -0
- data/assets/sass/utilities/_all.sass +2 -0
- data/assets/sass/utilities/breakpoints.scss +25 -0
- data/assets/sass/utilities/helpers.scss +48 -0
- data/index.html +7 -0
- metadata +93 -55
- data/_includes/themes/jmblog/components/navigation.html +0 -7
- data/_includes/themes/jmblog/components/share_buttons +0 -19
- data/_includes/themes/jmblog/page.html +0 -19
- data/_includes/themes/jmblog/post.html +0 -51
- data/_includes/themes/jmblog/settings.yml +0 -2
- data/_includes/themes/jmblog/theme/holding.html +0 -53
- data/assets/img/balloon-3206530_1920.jpg +0 -0
- data/assets/img/head-shot-square.jpg +0 -0
- data/assets/js/error.bundle.js +0 -2
- data/assets/js/error.bundle.js.br +0 -0
- data/assets/js/error.js.map +0 -1
- data/assets/js/holding.bundle.js +0 -2
- data/assets/js/holding.bundle.js.br +0 -0
- data/assets/js/holding.js.map +0 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 04e7a8fea7300246a478a7da49cbaf0867d266561124e5f948dde49ed2c330cc
|
4
|
+
data.tar.gz: c94393335e73e915871ee754573f3bc5749ae6d01ad5d8a6955c53bc62439b55
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c49e013ed1e43be1831c1a6e46ec1e83fcdea305cc1b80f9e9a79f479e41be85754b639136ffd96eb93d7611e689110285a4629554b5c9b8966a3ab1cbf1ce6f
|
7
|
+
data.tar.gz: 610b5f47434f50d62519b06b682bd21e38ffa335f4289482a8f74e92415303faf610051b5768b432f233af6ecac1b74e4c83272a602181a652ec3a4ab5b75494
|
@@ -0,0 +1,15 @@
|
|
1
|
+
---
|
2
|
+
layout: bio
|
3
|
+
short_name: John
|
4
|
+
name: John Doe
|
5
|
+
position: Descriptive Job Title
|
6
|
+
social:
|
7
|
+
linkedin: johnmoxon
|
8
|
+
twitter: johnmoxon
|
9
|
+
medium:
|
10
|
+
email: email@email.com
|
11
|
+
summary: >-
|
12
|
+
This summary will appear where author information is included as a
|
13
|
+
snippet or following an article
|
14
|
+
---
|
15
|
+
This is the main body of the summary text and will appear on the author generated page.
|
data/_config.yml
ADDED
@@ -0,0 +1,98 @@
|
|
1
|
+
# This is a sample _config.yml and can be switched out for another if required
|
2
|
+
|
3
|
+
destination: ./_site
|
4
|
+
include:
|
5
|
+
- _pages
|
6
|
+
collections:
|
7
|
+
authors:
|
8
|
+
output: true
|
9
|
+
|
10
|
+
|
11
|
+
# Site settings
|
12
|
+
# These are used to personalize your new site. If you look in the HTML files,
|
13
|
+
# you will see them accessed via {{ site.title }}, {{ site.email }}, and so on.
|
14
|
+
# You can create any custom variable you would like, and they will be accessible
|
15
|
+
# in the templates via {{ site.myvariable }}.
|
16
|
+
title: Website title
|
17
|
+
tagline: "Website tagline"
|
18
|
+
author: Author Name
|
19
|
+
|
20
|
+
description: >-
|
21
|
+
Website description.
|
22
|
+
|
23
|
+
copyright: "copyright Author name 2020. All rights reserved."
|
24
|
+
license: "copyright Author name 2020. All rights reserved."
|
25
|
+
|
26
|
+
paginate: 5
|
27
|
+
paginate_path: "/articles/page:num/"
|
28
|
+
|
29
|
+
# permalink: /:categories/:title
|
30
|
+
relative_permalinks: false
|
31
|
+
|
32
|
+
timezone: Australia/Brisbane
|
33
|
+
|
34
|
+
quiet: false
|
35
|
+
verbose: false
|
36
|
+
|
37
|
+
baseurl: "" # the subpath of your site, e.g. /blog
|
38
|
+
url: https://www.yourwebsite.com # the base hostname & protocol for your site, e.g. http://example.com
|
39
|
+
twitter_username : https://twitter.com/yourtwitterhandle
|
40
|
+
github_username : http://github.com/githubusername/
|
41
|
+
linkedin_username : https://www.linkedin.com/in/linkedinprofile/
|
42
|
+
medium_username : https://medium.com/@mediumusername
|
43
|
+
meeting_url: 'https://meetings.hubspot.com/meetingurl'
|
44
|
+
|
45
|
+
# GTM Tracking ID
|
46
|
+
analytics:
|
47
|
+
gtm:
|
48
|
+
tracking_id: GTM-XXXXXXX
|
49
|
+
|
50
|
+
# Build settings
|
51
|
+
markdown: kramdown
|
52
|
+
theme: jmblog-theme
|
53
|
+
|
54
|
+
# Currently only plugins used that are supported on github pages, though now using netlify so may swap out for pagination v2 in the future
|
55
|
+
plugins:
|
56
|
+
- jekyll-gist
|
57
|
+
- jekyll-mentions
|
58
|
+
- jekyll-paginate
|
59
|
+
- jekyll-feed
|
60
|
+
- jekyll-sitemap
|
61
|
+
- jekyll-seo-tag
|
62
|
+
|
63
|
+
|
64
|
+
# Exclude from processing.
|
65
|
+
# The following items will not be processed, by default. Create a custom list
|
66
|
+
# to override the default setting.
|
67
|
+
# exclude:
|
68
|
+
# - Gemfile
|
69
|
+
# - Gemfile.lock
|
70
|
+
# - node_modules
|
71
|
+
# - vendor/bundle/
|
72
|
+
# - vendor/cache/
|
73
|
+
# - vendor/gems/
|
74
|
+
# - vendor/ruby/
|
75
|
+
|
76
|
+
kramdown:
|
77
|
+
input: GFM
|
78
|
+
|
79
|
+
|
80
|
+
|
81
|
+
# The URL for the staticman API bridge endpoint
|
82
|
+
# You will want to modify some of the values:
|
83
|
+
# ${github-username}: the username of the account with which you publish your blog
|
84
|
+
# ${blog-repo}: the name of your blog repository in github
|
85
|
+
# master: this the branch out of which your blog is published, often master or gh-pages
|
86
|
+
# ${bridge_app_name}: the name you chose in Heroku for your bridge API
|
87
|
+
# comments: the so-called property, this defines the key in staticman.yml where the configuration is found
|
88
|
+
#
|
89
|
+
# for me, this line reads:
|
90
|
+
# https://staticman-travisdownsio.herokuapp.com/v2/entry/travisdowns/travisdowns.github.io/master/comments
|
91
|
+
# staticman_url: https://staticmaninstance.herokuapp.com/v2/entry/githubusername/repository/branch/comments
|
92
|
+
|
93
|
+
# reCaptcha configuration info: the exact same site key and *encrypted* secret that you used in staticman.yml
|
94
|
+
# I personally don't think the secret needs to be included in the generated site, but the staticman API bridge uses
|
95
|
+
# it to ensure the site configuration and bridge configuration match (but why not just compare the site key?)
|
96
|
+
# reCaptcha:
|
97
|
+
# siteKey: yoursitekey
|
98
|
+
# secret: yourencryptedsecretkey
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
@@ -0,0 +1,45 @@
|
|
1
|
+
{%comment%}
|
2
|
+
Wrap user content, potentially include components that
|
3
|
+
render front matter as content
|
4
|
+
{%endcomment%}
|
5
|
+
<span class="is-block has-text-centered is-hidden-desktop">
|
6
|
+
<span class="icon">
|
7
|
+
<i class="fas fa-infinity"></i>
|
8
|
+
{%- comment -%} <i class="fas fa-paper-plane"></i> {%- endcomment -%}
|
9
|
+
{%- comment -%} <i class="fas fa-leaf"></i> {%- endcomment -%}
|
10
|
+
{%- comment -%} <i class="fas fa-grip-lines"></i> {%- endcomment -%}
|
11
|
+
{%- comment -%} <i class="fas fa-mug-hot"></i> {%- endcomment -%}
|
12
|
+
</span>
|
13
|
+
</span>
|
14
|
+
<section class="section">
|
15
|
+
<div class="container">
|
16
|
+
<div class="columns">
|
17
|
+
<div class="column is-10 is-offset-1">
|
18
|
+
<div class="media">
|
19
|
+
<figure class="media-left">
|
20
|
+
<p class="image is-64x64">
|
21
|
+
<img
|
22
|
+
src="/assets/img/{{ page.name | slugify: 'pretty' }}-square.jpg?nf_resize=fit&w=64&h=64"
|
23
|
+
alt="{{ page.name }}"
|
24
|
+
class="is-rounded">
|
25
|
+
</p>
|
26
|
+
</figure>
|
27
|
+
<div class="media-content">
|
28
|
+
<div class="content">
|
29
|
+
<p class="title is-5">
|
30
|
+
<strong>{{ page.name }}</strong><br><small class="is-size-7">{{ page.position }}</small>
|
31
|
+
</p>
|
32
|
+
<p class="is-size-6">{{ content }}</p>
|
33
|
+
</div>
|
34
|
+
<nav class="level is-mobile">
|
35
|
+
<div class="level-left">
|
36
|
+
{% include themes/jmblog-theme/components/social_buttons_small.html %}
|
37
|
+
</div>
|
38
|
+
</nav>
|
39
|
+
</div>
|
40
|
+
</div>
|
41
|
+
</div>
|
42
|
+
</div>
|
43
|
+
|
44
|
+
</div>
|
45
|
+
</section>
|
File without changes
|
data/_includes/themes/{jmblog → jmblog-theme}/components/analytics/googletagmanager_body.html
RENAMED
File without changes
|
data/_includes/themes/{jmblog → jmblog-theme}/components/analytics/googletagmanager_head.html
RENAMED
File without changes
|
File without changes
|
data/_includes/themes/{jmblog → jmblog-theme}/components/analytics/hubspot_cookie_removal.html
RENAMED
File without changes
|
@@ -0,0 +1,48 @@
|
|
1
|
+
<div class="card is-shadowless">
|
2
|
+
<div class="columns is-gapless">
|
3
|
+
<div class="column">
|
4
|
+
<div class="card-image">
|
5
|
+
<figure class="image is-4by5 is-relative">
|
6
|
+
<a href="{{ post.url }}">
|
7
|
+
<img
|
8
|
+
data-src="{{ post.image.path | default: "https://via.placeholder.com/290x362.png?text=image+is+4by5"}}?nf_resize=smartcrop&w=290&h=362"
|
9
|
+
data-lowsrc="{{ post.image.path | default: "https://via.placeholder.com/290x362.png?text=image+is+4by5"}}?nf_resize=smartcrop&w=72&h=90"
|
10
|
+
alt="Image by {{page.image.author}} on {{page.image.source}}"
|
11
|
+
class="lazyload blur-up">
|
12
|
+
</a>
|
13
|
+
{% assign postcontent = post.content %}
|
14
|
+
{% capture readingtime %}{% include themes/jmblog-theme/components/reading-time.html %}{% endcapture %}
|
15
|
+
{% if readingtime.size > 1 %}
|
16
|
+
<span class="tag is-white is-ontop">{{ readingtime | strip }}</span>
|
17
|
+
{% endif %}
|
18
|
+
</figure>
|
19
|
+
</div>
|
20
|
+
</div>
|
21
|
+
<div class="column">
|
22
|
+
<div class="card-content">
|
23
|
+
<div class="media">
|
24
|
+
{% comment %} <div class="media-left">
|
25
|
+
<figure class="image is-48x48">
|
26
|
+
<img class="is-rounded" src="https://bulma.io/images/placeholders/96x96.png" alt="Placeholder image">
|
27
|
+
</figure>
|
28
|
+
</div> {% endcomment %}
|
29
|
+
<div class="media-content">
|
30
|
+
<h2 class="title is-4"><a href="{{post.url}}" class="has-text-black">{{ post.title }}</a></h2>
|
31
|
+
</div>
|
32
|
+
</div>
|
33
|
+
|
34
|
+
<div class="content">
|
35
|
+
<a href="{{ post.url }}" class="has-text-black">
|
36
|
+
{{ post.summary | truncatewords: 15 }}
|
37
|
+
</a>
|
38
|
+
<div class="tags">
|
39
|
+
{% for tag in post.tags %}
|
40
|
+
<span class="tag">#{{tag}}</span>
|
41
|
+
{% endfor %}
|
42
|
+
</div>
|
43
|
+
</div>
|
44
|
+
</div>
|
45
|
+
</div>
|
46
|
+
</div>
|
47
|
+
</div>
|
48
|
+
<hr>
|
@@ -0,0 +1,45 @@
|
|
1
|
+
{% if page.author != null %}
|
2
|
+
{% assign author = site.authors | find: "name", page.author | first %}
|
3
|
+
{% comment %} page author is not null {% endcomment %}
|
4
|
+
{% else %}
|
5
|
+
{% assign author = site.authors | find: "name", site.author | first %}
|
6
|
+
{% comment %} page author is null revert to {{ site.author }} {% endcomment %}
|
7
|
+
{% endif %}
|
8
|
+
|
9
|
+
{%- comment -%} <div class="is-rounded rounded-image-has-inner-shadow"></div> {%- endcomment -%}
|
10
|
+
|
11
|
+
{% if include.sidebar == true %}
|
12
|
+
<figure class="image is-4by3 has-border-black mb-1">
|
13
|
+
<img class=""
|
14
|
+
src="/assets/img/{{ author.name | slugify: 'pretty' }}.jpg?nf_resize=fit&w=250"
|
15
|
+
alt="{{ author.name }}">
|
16
|
+
</figure>
|
17
|
+
{% endif %}
|
18
|
+
|
19
|
+
<div class="media">
|
20
|
+
{% unless include.sidebar == true %}
|
21
|
+
<figure class="media-left">
|
22
|
+
<p class="image is-64x64">
|
23
|
+
<img
|
24
|
+
src="/assets/img/{{ author.name | slugify: 'pretty' }}-square.jpg?nf_resize=fit&w=64&h=64"
|
25
|
+
alt="{{ author.name }}"
|
26
|
+
class="is-rounded">
|
27
|
+
</p>
|
28
|
+
</figure>
|
29
|
+
{% endunless %}
|
30
|
+
<div class="media-content">
|
31
|
+
<div class="content">
|
32
|
+
<p class="title is-5">
|
33
|
+
<strong>{{ author.name }}</strong><br><small class="is-size-7">{{ author.position }}</small>
|
34
|
+
</p>
|
35
|
+
{% unless include.show_summary == false %}
|
36
|
+
<p class="is-size-6">{{ author.summary }}</p>
|
37
|
+
{% endunless %}
|
38
|
+
</div>
|
39
|
+
<nav class="level is-mobile">
|
40
|
+
<div class="level-left">
|
41
|
+
{% include themes/jmblog-theme/components/social_buttons_small.html %}
|
42
|
+
</div>
|
43
|
+
</nav>
|
44
|
+
</div>
|
45
|
+
</div>
|
File without changes
|
File without changes
|
@@ -0,0 +1,79 @@
|
|
1
|
+
{%- capture article_class %}media js-comment comment{% if include.name == site.author.name %} admin{% endif %}{% if
|
2
|
+
include.is_reply %} child{% endif %}{% endcapture %}
|
3
|
+
{% assign comment_id = include.uid | prepend: 'comment-' %}
|
4
|
+
|
5
|
+
<article class="{{ article_class }}" id="{{ comment_id }}" uid="{{ include.uid }}">
|
6
|
+
<!-- Gravatar here -->
|
7
|
+
<figure class="media-left">
|
8
|
+
<p class="image is-64x64">
|
9
|
+
{% if include.avatar %}
|
10
|
+
<img src="{{ include.avatar }}"
|
11
|
+
alt="{{ include.name | escape }}"
|
12
|
+
width="64px"
|
13
|
+
height="64px"
|
14
|
+
class="is-rounded">
|
15
|
+
{% elsif include.email != "" %}
|
16
|
+
<img src="https://www.gravatar.com/avatar/{{ include.email }}?d={{ '/assets/img/user-circle.svg' | absolute_url | url_encode }}&&s=64"
|
17
|
+
srcset="https://www.gravatar.com/avatar/{{ include.email }}?d={{ '/assets/img/user-circle.svg' | absolute_url | url_encode }}&&s=128 2x"
|
18
|
+
alt="{{ include.name | escape }}"
|
19
|
+
width="64px"
|
20
|
+
height="64px"
|
21
|
+
class="is-rounded">
|
22
|
+
{% else %}
|
23
|
+
<img src="{{ '/assets/img/user-circle.svg' | absolute_url }}"
|
24
|
+
alt="{{ include.name | escape }}"
|
25
|
+
width="64px"
|
26
|
+
height="64px"
|
27
|
+
class="is-rounded">
|
28
|
+
{% endif %}
|
29
|
+
</p>
|
30
|
+
</figure>
|
31
|
+
<!-- end gravatar -->
|
32
|
+
<div class="media-content">
|
33
|
+
<div class="comment__author">
|
34
|
+
<p>
|
35
|
+
<strong>{{- include.name | strip_html -}}</strong> <small class="comment__date">
|
36
|
+
{%- if include.date -%}
|
37
|
+
<a href="#{{ comment_id}}" title="Permalink to this comment">
|
38
|
+
{{- include.date | date:"%B %eth, %Y %H:%M" -}}
|
39
|
+
</a>
|
40
|
+
{%- endif -%}
|
41
|
+
</small>
|
42
|
+
<br>
|
43
|
+
{{ include.message | strip_html | markdownify }}
|
44
|
+
</p>
|
45
|
+
</div>
|
46
|
+
{% unless include.is_reply %}
|
47
|
+
|
48
|
+
|
49
|
+
<nav class="level is-mobile">
|
50
|
+
<div class="level-left">
|
51
|
+
<a rel="nofollow"
|
52
|
+
class="level-item comment__reply-link"
|
53
|
+
data-comment-id="{{ comment_id }}"
|
54
|
+
data-page-slug="{{ page.slug }}"
|
55
|
+
data-uid="{{ include.uid }}"
|
56
|
+
data-respond-id="respond">
|
57
|
+
<span class="icon is-small pr-3">
|
58
|
+
<i class="fas fa-reply"></i></span> <small>reply to {{ include.name }}</small>
|
59
|
+
</a>
|
60
|
+
</div>
|
61
|
+
</nav>
|
62
|
+
|
63
|
+
{%- capture this_uid %}{{ include.uid }}{% endcapture %}
|
64
|
+
{%- assign replies = site.data.comments[page.slug] | where_exp: 'item', 'item.replying_to_uid == this_uid' %}
|
65
|
+
{%- assign replies_date = replies | sort: 'date' %}
|
66
|
+
{% for reply in replies_date %}
|
67
|
+
{%- assign email = reply.email -%}
|
68
|
+
{%- assign name = reply.name -%}
|
69
|
+
{%- assign url = reply.url -%}
|
70
|
+
{%- assign date = reply.date -%}
|
71
|
+
{%- assign message = reply.message -%}
|
72
|
+
{%- assign uid = reply._id -%}
|
73
|
+
{% include themes/jmblog-theme/components/comment.html is_reply=true uid=uid email=email name=name url=url date=date message=message %}
|
74
|
+
{% endfor %}
|
75
|
+
|
76
|
+
<!-- <hr style="border-top: 1px solid #ccc; background: transparent; margin-bottom: 10px;"> -->
|
77
|
+
{% endunless %}
|
78
|
+
</div>
|
79
|
+
</article>
|
@@ -0,0 +1,87 @@
|
|
1
|
+
<div id="comments__form" class="container mt-6">
|
2
|
+
<form class="comments-form form" method="post" action="{{ site.staticman_url }}">
|
3
|
+
<input type="hidden" name="options[origin]" value="{{ page.url | absolute_url }}">
|
4
|
+
<input type="hidden" name="options[parent]" value="{{ page.url | absolute_url }}">
|
5
|
+
<input type="hidden" id="comment-replying-to-uid" name="fields[replying_to_uid]" value="">
|
6
|
+
<input type="hidden" name="options[slug]" value="{{ page.slug }}">
|
7
|
+
<input type="hidden" name="options[reCaptcha][siteKey]" value="{{ site.reCaptcha.siteKey }}">
|
8
|
+
<input type="hidden" name="options[reCaptcha][secret]" value="{{ site.reCaptcha.secret }}">
|
9
|
+
|
10
|
+
<div class="field">
|
11
|
+
<label class="label" for="comment-form-message">
|
12
|
+
{% if include.first_comment == true %}Be The First To {% endif %}
|
13
|
+
Leave A Comment
|
14
|
+
</label>
|
15
|
+
<div class="control">
|
16
|
+
<textarea class="textarea comments-field"
|
17
|
+
name="fields[message]"
|
18
|
+
id="comment-form-message"
|
19
|
+
placeholder="Your comment (markdown accepted)"
|
20
|
+
required></textarea>
|
21
|
+
</div>
|
22
|
+
</div>
|
23
|
+
|
24
|
+
<div class="field">
|
25
|
+
<label class="label" for="comment-form-name">Name</label>
|
26
|
+
<div class="control has-icons-left">
|
27
|
+
<input class="input comments-field"
|
28
|
+
name="fields[name]"
|
29
|
+
id="comment-form-name"
|
30
|
+
type="text"
|
31
|
+
placeholder="Your name (required)"
|
32
|
+
required>
|
33
|
+
<span class="icon is-small is-left">
|
34
|
+
<i class="fas fa-user"></i>
|
35
|
+
</span>
|
36
|
+
</div>
|
37
|
+
</div>
|
38
|
+
|
39
|
+
<div class="field">
|
40
|
+
<label class="label">Email</label>
|
41
|
+
<div class="control has-icons-left">
|
42
|
+
<input class="input comments-field"
|
43
|
+
name="fields[email]"
|
44
|
+
id="comment-form-email"
|
45
|
+
type="email"
|
46
|
+
placeholder="Your email (optional)">
|
47
|
+
<span class="icon is-small is-left">
|
48
|
+
<i class="fas fa-envelope"></i>
|
49
|
+
</span>
|
50
|
+
</div>
|
51
|
+
</div>
|
52
|
+
|
53
|
+
<div class="is-hidden field textfield narrowfield hp">
|
54
|
+
<label class="label">Website</label>
|
55
|
+
<div class="control has-icons-left">
|
56
|
+
<input class="textfield__input input"
|
57
|
+
name="fields[hp]"
|
58
|
+
id="hp"
|
59
|
+
type="text"
|
60
|
+
placeholder="Leave blank">
|
61
|
+
<span class="icon is-small is-left">
|
62
|
+
<i class="fas fa-globe-africa"></i>
|
63
|
+
</span>
|
64
|
+
</div>
|
65
|
+
</div>
|
66
|
+
|
67
|
+
|
68
|
+
<div id="reCaptcha" class="g-recaptcha" data-sitekey="{{ site.reCaptcha.siteKey }}"></div>
|
69
|
+
|
70
|
+
<div class="field is-grouped mt-3 mb-5">
|
71
|
+
<p class="control">
|
72
|
+
<button class="button is-primary" id="comment-form-submit">
|
73
|
+
Submit
|
74
|
+
</button>
|
75
|
+
</p>
|
76
|
+
<p class="control">
|
77
|
+
<button class="button is-hidden" id="cancel-comment-reply-link">
|
78
|
+
Cancel
|
79
|
+
</button>
|
80
|
+
</p>
|
81
|
+
</div>
|
82
|
+
|
83
|
+
|
84
|
+
|
85
|
+
|
86
|
+
</form>
|
87
|
+
</div>
|