mirror of
https://github.com/Decentralized-ID/decentralized-id.github.io.git
synced 2024-12-17 03:24:37 -05:00
hide and disallow url in comments
This commit is contained in:
parent
28108a772d
commit
77069a9dba
@ -32,7 +32,7 @@ words_per_minute : 200
|
|||||||
comments:
|
comments:
|
||||||
provider : "staticman_v2"
|
provider : "staticman_v2"
|
||||||
staticman:
|
staticman:
|
||||||
allowedFields : ["name", "email", "url", "message"]
|
allowedFields : ["name", "email", "message"]
|
||||||
repository : Decentralized-ID/decentralized-id.github.io
|
repository : Decentralized-ID/decentralized-id.github.io
|
||||||
branch : "master"
|
branch : "master"
|
||||||
commitMessage : "New comment by {fields.name}"
|
commitMessage : "New comment by {fields.name}"
|
||||||
|
@ -19,12 +19,6 @@
|
|||||||
{% when "discourse" %}
|
{% when "discourse" %}
|
||||||
<h4 class="page__comments-title">{{ comments_label }}</h4>
|
<h4 class="page__comments-title">{{ comments_label }}</h4>
|
||||||
<section id="discourse-comments"></section>
|
<section id="discourse-comments"></section>
|
||||||
{% when "disqus" %}
|
|
||||||
<h4 class="page__comments-title">{{ comments_label }}</h4>
|
|
||||||
<section id="disqus_thread"></section>
|
|
||||||
{% when "facebook" %}
|
|
||||||
<h4 class="page__comments-title">{{ comments_label }}</h4>
|
|
||||||
<section class="fb-comments" data-href="{{ page.url | absolute_url }}" data-mobile="true" data-num-posts="{{ site.comments.facebook.num_posts | default: 5 }}" data-width="100%" data-colorscheme="{{ site.comments.facebook.colorscheme | default: 'light' }}"></section>
|
|
||||||
{% when "staticman_v2" %}
|
{% when "staticman_v2" %}
|
||||||
<section id="static-comments">
|
<section id="static-comments">
|
||||||
{% if site.repository and site.staticman.branch %}
|
{% if site.repository and site.staticman.branch %}
|
||||||
@ -69,7 +63,7 @@
|
|||||||
<label for="comment-form-email">{{ site.data.ui-text[site.locale].comment_form_email_label | default: "Email address" }} <small class="required">*</small></label>
|
<label for="comment-form-email">{{ site.data.ui-text[site.locale].comment_form_email_label | default: "Email address" }} <small class="required">*</small></label>
|
||||||
<input type="email" id="comment-form-email" name="fields[email]" tabindex="3" />
|
<input type="email" id="comment-form-email" name="fields[email]" tabindex="3" />
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group hidden" style="display: none;">
|
||||||
<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"/>
|
||||||
</div>
|
</div>
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
# https://api.staticman.net/v2/encrypt/{TEXT TO BE ENCRYPTED}
|
# https://api.staticman.net/v2/encrypt/{TEXT TO BE ENCRYPTED}
|
||||||
|
|
||||||
comments:
|
comments:
|
||||||
allowedFields: ["name", "email", "url", "message"]
|
allowedFields: ["name", "email", "message"]
|
||||||
allowedOrigins: ["decentralized-id.com"]
|
allowedOrigins: ["decentralized-id.com"]
|
||||||
branch: "master"
|
branch: "master"
|
||||||
commitMessage: "New comment by {fields.name}"
|
commitMessage: "New comment by {fields.name}"
|
||||||
|
Loading…
Reference in New Issue
Block a user