Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
50c1dfe4cf | ||
|
|
bcae932f8c | ||
|
|
467e5dc84e | ||
|
|
bff773668b | ||
|
|
86a4ca6e2d | ||
|
|
0d6816e770 | ||
|
|
16a1a9a505 | ||
|
|
3c12f7c168 | ||
|
|
8bbf9bb62b | ||
|
|
306d6b40b0 | ||
|
|
4be38f4c8a | ||
|
|
da6ec43918 | ||
|
|
00bdeacb49 | ||
|
|
8f161b04db | ||
|
|
f173b97404 | ||
|
|
f52a18c3d8 | ||
|
|
c4d71dbea7 | ||
|
|
e4abec0a6f | ||
|
|
06a8249a69 | ||
|
|
b29f3ab8a1 | ||
|
|
4340aa7835 | ||
|
|
a524629685 | ||
|
|
804b2171a6 | ||
|
|
3a9350d54c | ||
|
|
b5472d33c0 | ||
|
|
c94c1c59b9 | ||
|
|
c3efe21834 | ||
|
|
304f465430 | ||
|
|
d86a6c995c | ||
|
|
8fe82c73a9 |
@@ -1,3 +1,51 @@
|
|||||||
|
## [3.4.4](https://github.com/mmistakes/minimal-mistakes/releases/tag/3.4.4)
|
||||||
|
|
||||||
|
### Enhancements
|
||||||
|
|
||||||
|
- Add French "comments" related localized UI text. [#472](https://github.com/mmistakes/minimal-mistakes/pull/472)
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
- Exclude `vendor` in Jekyll config file.
|
||||||
|
- Fix Liquid syntax error for offending parenthesis. [#479](https://github.com/mmistakes/minimal-mistakes/issues/479)
|
||||||
|
|
||||||
|
### Maintenance
|
||||||
|
|
||||||
|
- Update gems: `colorator` (1.1.0), `forwardable-extended` (2.6.0), `github-pages` (93), `jekyll` (= 3.2.1), `minima` (= 1.0.1).
|
||||||
|
|
||||||
|
## [3.4.3](https://github.com/mmistakes/minimal-mistakes/releases/tag/3.4.3)
|
||||||
|
|
||||||
|
### Enhancements
|
||||||
|
|
||||||
|
- Make ["honeypot" `input`](https://github.com/mmistakes/minimal-mistakes/commit/06a8249a69a37dddda7e2a5bfbe32056c1a9a607) in Staticman comment form less obvious to spam bots
|
||||||
|
- Add padding to `.highlight` code blocks to better [align `overflow` scrollbar](https://github.com/mmistakes/minimal-mistakes/commit/e4abec0a6f7f8cff72505ca0754615df294fd5b3) to the bottom.
|
||||||
|
- Add additional image options for Twitter card social sharing meta tags. [#466](https://github.com/mmistakes/minimal-mistakes/pull/466)
|
||||||
|
- Add structured data markup for Staticman comments. [#458](https://github.com/mmistakes/minimal-mistakes/issues/458)
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
- Format `og:locale` tag with `_` instead of `-`. [#462](https://github.com/mmistakes/minimal-mistakes/issues/462)
|
||||||
|
|
||||||
|
### Maintenance
|
||||||
|
|
||||||
|
- Add note to docs about using `url: http://localhost:4000` when working locally.
|
||||||
|
|
||||||
|
## [3.4.2](https://github.com/mmistakes/minimal-mistakes/releases/tag/3.4.2)
|
||||||
|
|
||||||
|
### Enhancements
|
||||||
|
|
||||||
|
- Improve UX of static comment forms. [#448](https://github.com/mmistakes/minimal-mistakes/issues/448)
|
||||||
|
|
||||||
|
## [3.4.1](https://github.com/mmistakes/minimal-mistakes/releases/tag/3.4.1)
|
||||||
|
|
||||||
|
### Enhancements
|
||||||
|
|
||||||
|
- Add `staticman.filename` configuration with UNIX timestamp for sorting data files. example ~> `comment-1470943149`.
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
- Don't add `<a>` to author name if URL is blank.
|
||||||
|
|
||||||
## [3.4.0](https://github.com/mmistakes/minimal-mistakes/releases/tag/3.4.0)
|
## [3.4.0](https://github.com/mmistakes/minimal-mistakes/releases/tag/3.4.0)
|
||||||
|
|
||||||
### Enhancements
|
### Enhancements
|
||||||
|
|||||||
+13
-7
@@ -12,7 +12,7 @@ GEM
|
|||||||
coffee-script-source
|
coffee-script-source
|
||||||
execjs
|
execjs
|
||||||
coffee-script-source (1.10.0)
|
coffee-script-source (1.10.0)
|
||||||
colorator (0.1)
|
colorator (1.1.0)
|
||||||
ethon (0.9.0)
|
ethon (0.9.0)
|
||||||
ffi (>= 1.3.0)
|
ffi (>= 1.3.0)
|
||||||
execjs (2.7.0)
|
execjs (2.7.0)
|
||||||
@@ -20,11 +20,12 @@ GEM
|
|||||||
multipart-post (>= 1.2, < 3)
|
multipart-post (>= 1.2, < 3)
|
||||||
ffi (1.9.14)
|
ffi (1.9.14)
|
||||||
ffi (1.9.14-x64-mingw32)
|
ffi (1.9.14-x64-mingw32)
|
||||||
|
forwardable-extended (2.6.0)
|
||||||
gemoji (2.1.0)
|
gemoji (2.1.0)
|
||||||
github-pages (89)
|
github-pages (93)
|
||||||
activesupport (= 4.2.7)
|
activesupport (= 4.2.7)
|
||||||
github-pages-health-check (= 1.1.0)
|
github-pages-health-check (= 1.2.0)
|
||||||
jekyll (= 3.1.6)
|
jekyll (= 3.2.1)
|
||||||
jekyll-coffeescript (= 1.0.1)
|
jekyll-coffeescript (= 1.0.1)
|
||||||
jekyll-feed (= 0.5.1)
|
jekyll-feed (= 0.5.1)
|
||||||
jekyll-gist (= 1.4.0)
|
jekyll-gist (= 1.4.0)
|
||||||
@@ -40,9 +41,10 @@ GEM
|
|||||||
liquid (= 3.0.6)
|
liquid (= 3.0.6)
|
||||||
listen (= 3.0.6)
|
listen (= 3.0.6)
|
||||||
mercenary (~> 0.3)
|
mercenary (~> 0.3)
|
||||||
|
minima (= 1.0.1)
|
||||||
rouge (= 1.11.1)
|
rouge (= 1.11.1)
|
||||||
terminal-table (~> 1.4)
|
terminal-table (~> 1.4)
|
||||||
github-pages-health-check (1.1.0)
|
github-pages-health-check (1.2.0)
|
||||||
addressable (~> 2.3)
|
addressable (~> 2.3)
|
||||||
net-dns (~> 0.8)
|
net-dns (~> 0.8)
|
||||||
octokit (~> 4.0)
|
octokit (~> 4.0)
|
||||||
@@ -52,13 +54,14 @@ GEM
|
|||||||
activesupport (>= 2)
|
activesupport (>= 2)
|
||||||
nokogiri (>= 1.4)
|
nokogiri (>= 1.4)
|
||||||
i18n (0.7.0)
|
i18n (0.7.0)
|
||||||
jekyll (3.1.6)
|
jekyll (3.2.1)
|
||||||
colorator (~> 0.1)
|
colorator (~> 1.0)
|
||||||
jekyll-sass-converter (~> 1.0)
|
jekyll-sass-converter (~> 1.0)
|
||||||
jekyll-watch (~> 1.1)
|
jekyll-watch (~> 1.1)
|
||||||
kramdown (~> 1.3)
|
kramdown (~> 1.3)
|
||||||
liquid (~> 3.0)
|
liquid (~> 3.0)
|
||||||
mercenary (~> 0.3.3)
|
mercenary (~> 0.3.3)
|
||||||
|
pathutil (~> 0.9)
|
||||||
rouge (~> 1.7)
|
rouge (~> 1.7)
|
||||||
safe_yaml (~> 1.0)
|
safe_yaml (~> 1.0)
|
||||||
jekyll-coffeescript (1.0.1)
|
jekyll-coffeescript (1.0.1)
|
||||||
@@ -95,6 +98,7 @@ GEM
|
|||||||
rb-inotify (>= 0.9.7)
|
rb-inotify (>= 0.9.7)
|
||||||
mercenary (0.3.6)
|
mercenary (0.3.6)
|
||||||
mini_portile2 (2.1.0)
|
mini_portile2 (2.1.0)
|
||||||
|
minima (1.0.1)
|
||||||
minitest (5.9.0)
|
minitest (5.9.0)
|
||||||
multipart-post (2.0.0)
|
multipart-post (2.0.0)
|
||||||
net-dns (0.8.0)
|
net-dns (0.8.0)
|
||||||
@@ -106,6 +110,8 @@ GEM
|
|||||||
pkg-config (~> 1.1.7)
|
pkg-config (~> 1.1.7)
|
||||||
octokit (4.3.0)
|
octokit (4.3.0)
|
||||||
sawyer (~> 0.7.0, >= 0.5.3)
|
sawyer (~> 0.7.0, >= 0.5.3)
|
||||||
|
pathutil (0.14.0)
|
||||||
|
forwardable-extended (~> 2.6)
|
||||||
pkg-config (1.1.7)
|
pkg-config (1.1.7)
|
||||||
public_suffix (1.5.3)
|
public_suffix (1.5.3)
|
||||||
rb-fsevent (0.9.7)
|
rb-fsevent (0.9.7)
|
||||||
|
|||||||
@@ -32,6 +32,7 @@ staticman:
|
|||||||
allowedFields : ['name', 'email', 'url', 'message']
|
allowedFields : ['name', 'email', 'url', 'message']
|
||||||
branch : # "master", "gh-pages"
|
branch : # "master", "gh-pages"
|
||||||
commitMessage : "New comment."
|
commitMessage : "New comment."
|
||||||
|
filename : comment-{@timestamp}
|
||||||
format : "yml"
|
format : "yml"
|
||||||
moderation : true
|
moderation : true
|
||||||
path : "_data/comments/{options.slug}"
|
path : "_data/comments/{options.slug}"
|
||||||
@@ -113,6 +114,7 @@ include:
|
|||||||
exclude:
|
exclude:
|
||||||
- "*.sublime-project"
|
- "*.sublime-project"
|
||||||
- "*.sublime-workspace"
|
- "*.sublime-workspace"
|
||||||
|
- vendor
|
||||||
- .asset-cache
|
- .asset-cache
|
||||||
- .bundle
|
- .bundle
|
||||||
- .jekyll-assets-cache
|
- .jekyll-assets-cache
|
||||||
|
|||||||
+12
-29
@@ -36,11 +36,8 @@ en: &DEFAULT_EN
|
|||||||
comment_form_website_label : "Website (optional)"
|
comment_form_website_label : "Website (optional)"
|
||||||
comment_btn_submit : "Submit Comment"
|
comment_btn_submit : "Submit Comment"
|
||||||
comment_btn_submitted : "Submitted"
|
comment_btn_submitted : "Submitted"
|
||||||
comment_success_title : "Comment submitted"
|
|
||||||
comment_success_msg : "Thanks for your comment! It will show on the site once it has been approved."
|
comment_success_msg : "Thanks for your comment! It will show on the site once it has been approved."
|
||||||
comment_error_title : "Error"
|
|
||||||
comment_error_msg : "Sorry, there was an error with your submission. Please make sure all required fields have been completed and try again."
|
comment_error_msg : "Sorry, there was an error with your submission. Please make sure all required fields have been completed and try again."
|
||||||
close_btn_label : "close"
|
|
||||||
loading_label : "Loading..."
|
loading_label : "Loading..."
|
||||||
en-US:
|
en-US:
|
||||||
<<: *DEFAULT_EN
|
<<: *DEFAULT_EN
|
||||||
@@ -87,11 +84,8 @@ es: &DEFAULT_ES
|
|||||||
comment_form_website_label :
|
comment_form_website_label :
|
||||||
comment_btn_submit :
|
comment_btn_submit :
|
||||||
comment_btn_submitted :
|
comment_btn_submitted :
|
||||||
comment_success_title :
|
|
||||||
comment_success_msg :
|
comment_success_msg :
|
||||||
comment_error_title :
|
|
||||||
comment_error_msg :
|
comment_error_msg :
|
||||||
close_btn_label :
|
|
||||||
loading_label :
|
loading_label :
|
||||||
es-ES:
|
es-ES:
|
||||||
<<: *DEFAULT_ES
|
<<: *DEFAULT_ES
|
||||||
@@ -126,20 +120,18 @@ fr: &DEFAULT_FR
|
|||||||
email_label : "Email"
|
email_label : "Email"
|
||||||
recent_posts : "Posts récents"
|
recent_posts : "Posts récents"
|
||||||
undefined_wpm : "Le paramètre words_per_minute n'est pas défini dans _config.yml"
|
undefined_wpm : "Le paramètre words_per_minute n'est pas défini dans _config.yml"
|
||||||
comment_form_info :
|
comments_title : "Commentaires"
|
||||||
comment_form_comment_label :
|
comment_form_info : "Votre adresse email ne sera pas visible. Les champs obligatoires sont marqués"
|
||||||
comment_form_md_info :
|
comment_form_comment_label : "Commentaire"
|
||||||
comment_form_name_label :
|
comment_form_md_info : "Markdown est supporté."
|
||||||
comment_form_email_label :
|
comment_form_name_label : "Nom"
|
||||||
comment_form_website_label :
|
comment_form_email_label : "Adresse mail"
|
||||||
comment_btn_submit :
|
comment_form_website_label : "Site web (optionnel)"
|
||||||
comment_btn_submitted :
|
comment_btn_submit : "Envoyer"
|
||||||
comment_success_title :
|
comment_btn_submitted : "Envoyé"
|
||||||
comment_success_msg :
|
comment_success_msg : "Merci pour votre comentaire, il sera visible sur le site une fois approuvé."
|
||||||
comment_error_title :
|
comment_error_msg : "Désolé, une erreur est survenue lors de la soumission. Vérifiez que les champs obligatoires ont été remplis et réessayez."
|
||||||
comment_error_msg :
|
loading_label : "Chargement..."
|
||||||
close_btn_label :
|
|
||||||
loading_label :
|
|
||||||
fr-FR:
|
fr-FR:
|
||||||
<<: *DEFAULT_FR
|
<<: *DEFAULT_FR
|
||||||
fr-BE:
|
fr-BE:
|
||||||
@@ -183,11 +175,8 @@ tr: &DEFAULT_TR
|
|||||||
comment_form_website_label :
|
comment_form_website_label :
|
||||||
comment_btn_submit :
|
comment_btn_submit :
|
||||||
comment_btn_submitted :
|
comment_btn_submitted :
|
||||||
comment_success_title :
|
|
||||||
comment_success_msg :
|
comment_success_msg :
|
||||||
comment_error_title :
|
|
||||||
comment_error_msg :
|
comment_error_msg :
|
||||||
close_btn_label :
|
|
||||||
loading_label :
|
loading_label :
|
||||||
tr-TR:
|
tr-TR:
|
||||||
<<: *DEFAULT_TR
|
<<: *DEFAULT_TR
|
||||||
@@ -228,11 +217,8 @@ pt: &DEFAULT_PT
|
|||||||
comment_form_website_label :
|
comment_form_website_label :
|
||||||
comment_btn_submit :
|
comment_btn_submit :
|
||||||
comment_btn_submitted :
|
comment_btn_submitted :
|
||||||
comment_success_title :
|
|
||||||
comment_success_msg :
|
comment_success_msg :
|
||||||
comment_error_title :
|
|
||||||
comment_error_msg :
|
comment_error_msg :
|
||||||
close_btn_label :
|
|
||||||
loading_label :
|
loading_label :
|
||||||
pt-BR:
|
pt-BR:
|
||||||
<<: *DEFAULT_PT
|
<<: *DEFAULT_PT
|
||||||
@@ -275,11 +261,8 @@ it: &DEFAULT_IT
|
|||||||
comment_form_website_label :
|
comment_form_website_label :
|
||||||
comment_btn_submit :
|
comment_btn_submit :
|
||||||
comment_btn_submitted :
|
comment_btn_submitted :
|
||||||
comment_success_title :
|
|
||||||
comment_success_msg :
|
comment_success_msg :
|
||||||
comment_error_title :
|
|
||||||
comment_error_msg :
|
comment_error_msg :
|
||||||
close_btn_label :
|
|
||||||
loading_label :
|
loading_label :
|
||||||
it-IT:
|
it-IT:
|
||||||
<<: *DEFAULT_IT
|
<<: *DEFAULT_IT
|
||||||
|
|||||||
@@ -1,22 +1,22 @@
|
|||||||
<article id="comment{{ include.index }}" class="js-comment comment">
|
<article id="comment{{ include.index }}" class="js-comment comment" itemprop="comment" itemscope itemtype="http://schema.org/Comment">
|
||||||
<div class="comment__avatar-wrapper">
|
<div class="comment__avatar-wrapper">
|
||||||
<img class="comment__avatar" src="https://www.gravatar.com/avatar/{{ include.email }}?d=mm&s=80">
|
<img class="comment__avatar" src="https://www.gravatar.com/avatar/{{ include.email }}?d=mm&s=80">
|
||||||
</div>
|
</div>
|
||||||
<div class="comment__content-wrapper">
|
<div class="comment__content-wrapper">
|
||||||
<h3 class="comment__author">
|
<h3 class="comment__author" itemprop="author" itemscope itemtype="http://schema.org/Person">
|
||||||
{% if (include.url) and (include.url != '@url') %}
|
{% unless include.url == blank %}
|
||||||
<a rel="nofollow" href="{{ include.url }}">{{ include.name }}</a>
|
<span itemprop="name"><a rel="external nofollow" itemprop="url" href="{{ include.url }}">{{ include.name }}</a></span>
|
||||||
{% else %}
|
{% else %}
|
||||||
{{ include.name }}
|
<span itemprop="name">{{ include.name }}</span>
|
||||||
{% endif %}
|
{% endunless %}
|
||||||
</h3>
|
</h3>
|
||||||
<p class="comment__date">
|
<p class="comment__date">
|
||||||
{% if include.date %}
|
{% if include.date %}
|
||||||
{% if include.index %}<a href="#comment{{ include.index }}">{% endif %}
|
{% if include.index %}<a href="#comment{{ include.index }}" itemprop="url">{% endif %}
|
||||||
<time datetime="{{ include.date | date_to_xmlschema }}">{{ include.date | date: "%B %d, %Y at %I:%M %p" }}</time>
|
<time datetime="{{ include.date | date_to_xmlschema }}" itemprop="datePublished">{{ include.date | date: "%B %d, %Y at %I:%M %p" }}</time>
|
||||||
{% if include.index %}</a>{% endif %}
|
{% if include.index %}</a>{% endif %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</p>
|
</p>
|
||||||
{{ include.message | markdownify }}
|
<div itemprop="text">{{ include.message | markdownify }}</div>
|
||||||
</div>
|
</div>
|
||||||
</article>
|
</article>
|
||||||
@@ -1,22 +1,13 @@
|
|||||||
{% if site.repository and site.staticman.branch %}
|
{% if site.repository and site.staticman.branch %}
|
||||||
<!-- Start comment form modal -->
|
|
||||||
<article class="modal">
|
|
||||||
<h2 class="modal__title js-modal-title"></h2>
|
|
||||||
<div class="modal__supporting-text js-modal-text"></div>
|
|
||||||
<div class="modal__actions">
|
|
||||||
<button class="btn btn--danger js-close-modal">{{ site.data.ui-text[site.locale].close_btn_label | default: "close" }}</button>
|
|
||||||
</div>
|
|
||||||
</article>
|
|
||||||
<!-- End comment form modal -->
|
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
(function ($) {
|
(function ($) {
|
||||||
var $comments = $('.js-comments');
|
var $comments = $('.js-comments');
|
||||||
|
|
||||||
$('.js-form').submit(function () {
|
$('#new_comment').submit(function () {
|
||||||
var form = this;
|
var form = this;
|
||||||
|
|
||||||
$(form).addClass('form--loading');
|
$(form).addClass('disabled');
|
||||||
|
$('#comment-form-submit').html('<i class="fa fa-spinner fa-spin fa-fw"></i> {{ site.data.ui-text[site.locale].loading_label | default: "Loading..." }}');
|
||||||
|
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: $(this).attr('method'),
|
type: $(this).attr('method'),
|
||||||
@@ -24,29 +15,27 @@
|
|||||||
data: $(this).serialize(),
|
data: $(this).serialize(),
|
||||||
contentType: 'application/x-www-form-urlencoded',
|
contentType: 'application/x-www-form-urlencoded',
|
||||||
success: function (data) {
|
success: function (data) {
|
||||||
showModal('{{ site.data.ui-text[site.locale].comment_success_title | default: "Comment submitted" }}', '{{ site.data.ui-text[site.locale].comment_success_msg | default: "Thanks for your comment! It will show on the site once it has been approved." }}');
|
$('#comment-form-submit').html('{{ site.data.ui-text[site.locale].comment_btn_submitted | default: "Submitted" }}');
|
||||||
$(form).removeClass('form--loading');
|
$('.page__comments-form .js-notice').removeClass('notice--danger');
|
||||||
$('#comment-form-submit').addClass('btn--disabled').html('{{ site.data.ui-text[site.locale].comment_btn_submitted | default: "Submitted" }}');
|
$('.page__comments-form .js-notice').addClass('notice--success');
|
||||||
|
showAlert('{{ site.data.ui-text[site.locale].comment_success_msg | default: "Thanks for your comment! It will show on the site once it has been approved." }}');
|
||||||
},
|
},
|
||||||
error: function (err) {
|
error: function (err) {
|
||||||
console.log(err);
|
console.log(err);
|
||||||
showModal('{{ site.data.ui-text[site.locale].comment_error_title | default: "Error" }}', '{{ site.data.ui-text[site.locale].comment_error_msg | default: "Sorry, there was an error with your submission. Please make sure all required fields have been completed and try again." }}');
|
$('#comment-form-submit').html('{{ site.data.ui-text[site.locale].comment_btn_submit | default: "Submit Comment" }}');
|
||||||
$(form).removeClass('form--loading');
|
$('.page__comments-form .js-notice').removeClass('notice--success');
|
||||||
|
$('.page__comments-form .js-notice').addClass('notice--danger');
|
||||||
|
showAlert('{{ site.data.ui-text[site.locale].comment_error_msg | default: "Sorry, there was an error with your submission. Please make sure all required fields have been completed and try again." }}');
|
||||||
|
$(form).removeClass('disabled');
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
});
|
});
|
||||||
|
|
||||||
$('.js-close-modal').click(function () {
|
function showAlert(message) {
|
||||||
$('body').removeClass('show-modal');
|
$('.page__comments-form .js-notice').removeClass('hidden');
|
||||||
});
|
$('.page__comments-form .js-notice-text').html(message);
|
||||||
|
|
||||||
function showModal(title, message) {
|
|
||||||
$('.js-modal-title').text(title);
|
|
||||||
$('.js-modal-text').html(message);
|
|
||||||
|
|
||||||
$('body').addClass('show-modal');
|
|
||||||
}
|
}
|
||||||
})(jQuery);
|
})(jQuery);
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
@@ -35,7 +35,7 @@
|
|||||||
|
|
||||||
<!-- Start new comment form -->
|
<!-- Start new comment form -->
|
||||||
<h4 class="page__comments-title">{{ site.data.ui-text[site.locale].comments_label | default: "Leave a Comment" }}</h4>
|
<h4 class="page__comments-title">{{ site.data.ui-text[site.locale].comments_label | default: "Leave a Comment" }}</h4>
|
||||||
<p class="small help-block">{{ site.data.ui-text[site.locale].comment_form_info | default: "Your email address will not be published. Required fields are marked" }} <span class="required">*</span></p>
|
<p class="small">{{ site.data.ui-text[site.locale].comment_form_info | default: "Your email address will not be published. Required fields are marked" }} <span class="required">*</span></p>
|
||||||
<form id="new_comment" class="page__comments-form js-form form" method="post" action="https://api.staticman.net/v1/entry/{{ site.repository }}/{{ site.staticman.branch }}">
|
<form id="new_comment" class="page__comments-form js-form form" method="post" action="https://api.staticman.net/v1/entry/{{ site.repository }}/{{ site.staticman.branch }}">
|
||||||
<div class="form__spinner">
|
<div class="form__spinner">
|
||||||
<i class="fa fa-spinner fa-spin fa-3x fa-fw"></i>
|
<i class="fa fa-spinner fa-spin fa-3x fa-fw"></i>
|
||||||
@@ -59,10 +59,16 @@
|
|||||||
<label for="comment-form-url">{{ site.data.ui-text[site.locale].comment_form_website_label | default: "Website (optional)" }}</label>
|
<label for="comment-form-url">{{ site.data.ui-text[site.locale].comment_form_website_label | default: "Website (optional)" }}</label>
|
||||||
<input type="url" id="comment-form-url" name="fields[url]" tabindex="4"/>
|
<input type="url" id="comment-form-url" name="fields[url]" tabindex="4"/>
|
||||||
</fieldset>
|
</fieldset>
|
||||||
<fieldset class="hidden">
|
<fieldset class="hidden" style="display: none;">
|
||||||
<input type="hidden" name="options[slug]" value="{{ page.slug }}">
|
<input type="hidden" name="options[slug]" value="{{ page.slug }}">
|
||||||
<input type="hidden" name="fields[hidden]"/>
|
<label for="comment-form-location">Not used. Leave blank if you are a human.</label>
|
||||||
|
<input type="text" id="comment-form-location" name="fields[hidden]" autocomplete="off"/>
|
||||||
</fieldset>
|
</fieldset>
|
||||||
|
<!-- Start comment form alert messaging -->
|
||||||
|
<p class="hidden js-notice">
|
||||||
|
<strong class="js-notice-text"></strong>
|
||||||
|
</p>
|
||||||
|
<!-- End comment form alert messaging -->
|
||||||
<fieldset>
|
<fieldset>
|
||||||
<button type="submit" id="comment-form-submit" tabindex="5" class="btn btn--large">{{ site.data.ui-text[site.locale].comment_btn_submit | default: "Submit Comment" }}</button>
|
<button type="submit" id="comment-form-submit" tabindex="5" class="btn btn--large">{{ site.data.ui-text[site.locale].comment_btn_submit | default: "Submit Comment" }}</button>
|
||||||
</fieldset>
|
</fieldset>
|
||||||
|
|||||||
+8
-2
@@ -39,7 +39,7 @@
|
|||||||
{% assign seo_author_twitter = seo_author_twitter | replace: "@", "" %}
|
{% assign seo_author_twitter = seo_author_twitter | replace: "@", "" %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
<meta property="og:locale" content="{{ site.locale | default: "en" }}">
|
<meta property="og:locale" content="{{ site.locale | replace: "-", "_" | default: "en" }}">
|
||||||
<meta property="og:site_name" content="{{ site.title }}">
|
<meta property="og:site_name" content="{{ site.title }}">
|
||||||
<meta property="og:title" content="{{ page.title | default: site.title | markdownify | strip_html | strip_newlines | escape_once }}">
|
<meta property="og:title" content="{{ page.title | default: site.title | markdownify | strip_html | strip_newlines | escape_once }}">
|
||||||
|
|
||||||
@@ -63,7 +63,9 @@
|
|||||||
<meta name="twitter:image" content="{% if page.header.image contains "://" %}{{ page.header.image }}{% else %}{{ page.header.image | prepend: "/images/" | prepend: base_path }}{% endif %}">
|
<meta name="twitter:image" content="{% if page.header.image contains "://" %}{{ page.header.image }}{% else %}{{ page.header.image | prepend: "/images/" | prepend: base_path }}{% endif %}">
|
||||||
{% else %}
|
{% else %}
|
||||||
<meta name="twitter:card" content="summary">
|
<meta name="twitter:card" content="summary">
|
||||||
{% if site.og_image %}
|
{% if page.header.teaser %}
|
||||||
|
<meta name="twitter:image" content="{% if page.header.teaser contains "://" %}{{ page.header.teaser }}{% else %}{{ page.header.teaser | prepend: "/images/" | prepend: base_path }}{% endif %}">
|
||||||
|
{% elsif site.og_image %}
|
||||||
<meta name="twitter:image" content="{{ site.og_image | prepend: "/images/" | prepend: base_path }}">
|
<meta name="twitter:image" content="{{ site.og_image | prepend: "/images/" | prepend: base_path }}">
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
@@ -87,6 +89,10 @@
|
|||||||
<meta property="og:image" content="{% if page.header.image contains "://" %}{{ page.header.image }}{% else %}{{ page.header.image | prepend: "/images/" | prepend: base_path }}{% endif %}">
|
<meta property="og:image" content="{% if page.header.image contains "://" %}{{ page.header.image }}{% else %}{{ page.header.image | prepend: "/images/" | prepend: base_path }}{% endif %}">
|
||||||
{% elsif page.header.overlay_image %}
|
{% elsif page.header.overlay_image %}
|
||||||
<meta property="og:image" content="{% if page.header.overlay_image contains "://" %}{{ page.header.overlay_image }}{% else %}{{ page.header.overlay_image | prepend: "/images/" | prepend: base_path }}{% endif %}">
|
<meta property="og:image" content="{% if page.header.overlay_image contains "://" %}{{ page.header.overlay_image }}{% else %}{{ page.header.overlay_image | prepend: "/images/" | prepend: base_path }}{% endif %}">
|
||||||
|
{% elsif page.header.teaser %}
|
||||||
|
<meta property="og:image" content="{% if page.header.teaser contains "://" %}{{ page.header.teaser }}{% else %}{{ page.header.teaser | prepend: "/images/" | prepend: base_path }}{% endif %}">
|
||||||
|
{% elsif site.og_image %}
|
||||||
|
<meta property="og:image" content="{% if site.og_image contains "://" %}{{ site.og_image }}{% else %}{{ site.og_image | prepend: "/images/" | prepend: base_path }}{% endif %}">
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% if page.date %}
|
{% if page.date %}
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
layout: default
|
layout: default
|
||||||
---
|
---
|
||||||
|
|
||||||
{% if (page.header.overlay_color or page.header.overlay_image) or page.header.image %}
|
{% if page.header.overlay_color or page.header.overlay_image or page.header.image %}
|
||||||
{% include page__hero.html %}
|
{% include page__hero.html %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ layout: default
|
|||||||
|
|
||||||
{% include base_path %}
|
{% include base_path %}
|
||||||
|
|
||||||
{% if (page.header.overlay_color or page.header.overlay_image) or page.header.image %}
|
{% if page.header.overlay_color or page.header.overlay_image or page.header.image %}
|
||||||
{% include page__hero.html %}
|
{% include page__hero.html %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ layout: default
|
|||||||
|
|
||||||
{% include base_path %}
|
{% include base_path %}
|
||||||
|
|
||||||
{% if (page.header.overlay_color or page.header.overlay_image) or page.header.image %}
|
{% if page.header.overlay_color or page.header.overlay_image or page.header.image %}
|
||||||
{% include page__hero.html %}
|
{% include page__hero.html %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
|||||||
@@ -97,7 +97,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
&.disabled {
|
&.disabled {
|
||||||
color: $light-gray;
|
color: mix(#fff, $gray, 75%);
|
||||||
pointer-events: none;
|
pointer-events: none;
|
||||||
cursor: not-allowed;
|
cursor: not-allowed;
|
||||||
}
|
}
|
||||||
@@ -131,7 +131,7 @@
|
|||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
color: mix(#fff, $gray, 25%);
|
color: mix(#fff, $gray, 50%);
|
||||||
border: 1px solid $light-gray;
|
border: 1px solid $light-gray;
|
||||||
border-radius: $border-radius;
|
border-radius: $border-radius;
|
||||||
|
|
||||||
@@ -151,7 +151,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
&.disabled {
|
&.disabled {
|
||||||
color: $light-gray;
|
color: mix(#fff, $gray, 75%);
|
||||||
pointer-events: none;
|
pointer-events: none;
|
||||||
cursor: not-allowed;
|
cursor: not-allowed;
|
||||||
}
|
}
|
||||||
|
|||||||
+23
-11
@@ -8,9 +8,7 @@
|
|||||||
margin-top: 2em;
|
margin-top: 2em;
|
||||||
padding-left: 1em;
|
padding-left: 1em;
|
||||||
padding-right: 1em;
|
padding-right: 1em;
|
||||||
-webkit-animation: intro 0.3s both;
|
|
||||||
animation: intro 0.3s both;
|
animation: intro 0.3s both;
|
||||||
-webkit-animation-delay: 0.35s;
|
|
||||||
animation-delay: 0.35s;
|
animation-delay: 0.35s;
|
||||||
|
|
||||||
@include breakpoint($x-large) {
|
@include breakpoint($x-large) {
|
||||||
@@ -113,9 +111,7 @@
|
|||||||
position: relative;
|
position: relative;
|
||||||
margin-bottom: 2em;
|
margin-bottom: 2em;
|
||||||
@include clearfix;
|
@include clearfix;
|
||||||
-webkit-animation: intro 0.3s both;
|
|
||||||
animation: intro 0.3s both;
|
animation: intro 0.3s both;
|
||||||
-webkit-animation-delay: 0.25s;
|
|
||||||
animation-delay: 0.25s;
|
animation-delay: 0.25s;
|
||||||
|
|
||||||
&--overlay {
|
&--overlay {
|
||||||
@@ -126,9 +122,7 @@
|
|||||||
background-size: cover;
|
background-size: cover;
|
||||||
background-repeat: no-repeat;
|
background-repeat: no-repeat;
|
||||||
background-position: center;
|
background-position: center;
|
||||||
-webkit-animation: intro 0.3s both;
|
|
||||||
animation: intro 0.3s both;
|
animation: intro 0.3s both;
|
||||||
-webkit-animation-delay: 0.25s;
|
|
||||||
animation-delay: 0.25s;
|
animation-delay: 0.25s;
|
||||||
|
|
||||||
a {
|
a {
|
||||||
@@ -303,10 +297,25 @@
|
|||||||
.page__comments-form {
|
.page__comments-form {
|
||||||
padding: 1em;
|
padding: 1em;
|
||||||
background: $lighter-gray;
|
background: $lighter-gray;
|
||||||
|
transition: $global-transition;
|
||||||
|
|
||||||
|
&.disabled {
|
||||||
|
input,
|
||||||
|
button,
|
||||||
|
textarea,
|
||||||
|
label {
|
||||||
|
pointer-events: none;
|
||||||
|
cursor: not-allowed;
|
||||||
|
filter: alpha(opacity=65);
|
||||||
|
box-shadow: none;
|
||||||
|
opacity: 0.65;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.comment {
|
.comment {
|
||||||
margin: 2em 0;
|
@include clearfix();
|
||||||
|
margin: 1em 0;
|
||||||
|
|
||||||
&:not(:last-child) {
|
&:not(:last-child) {
|
||||||
border-bottom: 1px solid $border-color;
|
border-bottom: 1px solid $border-color;
|
||||||
@@ -314,8 +323,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.comment__avatar-wrapper {
|
.comment__avatar-wrapper {
|
||||||
display: table-cell;
|
float: left;
|
||||||
vertical-align: top;
|
|
||||||
width: 60px;
|
width: 60px;
|
||||||
height: 60px;
|
height: 60px;
|
||||||
|
|
||||||
@@ -339,8 +347,12 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.comment__content-wrapper {
|
.comment__content-wrapper {
|
||||||
display: table-cell;
|
float: right;
|
||||||
vertical-align: top;
|
width: calc(100% - 60px);
|
||||||
|
|
||||||
|
@include breakpoint($large) {
|
||||||
|
width: calc(100% - 100px);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.comment__author {
|
.comment__author {
|
||||||
|
|||||||
+1
-1
@@ -5,7 +5,6 @@
|
|||||||
div.highlighter-rouge, figure.highlight {
|
div.highlighter-rouge, figure.highlight {
|
||||||
position: relative;
|
position: relative;
|
||||||
margin-bottom: 1em;
|
margin-bottom: 1em;
|
||||||
padding: 1em;
|
|
||||||
border: 1px solid $border-color;
|
border: 1px solid $border-color;
|
||||||
border-radius: $border-radius;
|
border-radius: $border-radius;
|
||||||
background-color: $code-background-color;
|
background-color: $code-background-color;
|
||||||
@@ -27,6 +26,7 @@ div.highlighter-rouge, figure.highlight {
|
|||||||
|
|
||||||
.highlight {
|
.highlight {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
|
padding: 1em;
|
||||||
font-family: $monospace;
|
font-family: $monospace;
|
||||||
font-size: $type-size-7;
|
font-size: $type-size-7;
|
||||||
line-height: 1.8;
|
line-height: 1.8;
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "minimal-mistakes",
|
"name": "minimal-mistakes",
|
||||||
"version": "3.4.0",
|
"version": "3.4.4",
|
||||||
"description": "Minimal Mistakes Jekyll theme npm build scripts",
|
"description": "Minimal Mistakes Jekyll theme npm build scripts",
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
|
|||||||
Reference in New Issue
Block a user