Imported Pingbacks can display or be toggled off. You can also display

comments but have adding new ones disabled. TODO: allow disabling
comments on a per page basis.
This commit is contained in:
Ernst 2017-12-01 17:53:07 -08:00
parent 563d7af096
commit a52c1b2f6d
9 changed files with 735 additions and 46 deletions

View file

@ -1,4 +1,6 @@
enabled: true
pingbacks: true
commenting: true
enable_on_routes:
- '/blog'
@ -6,7 +8,6 @@ enable_on_routes:
disable_on_routes:
- /blog/blog-post-to-ignore
- /ignore-this-route
#- '/blog/daring-fireball-link'
form:
name: comments
@ -26,6 +27,13 @@ form:
validate:
required: true
- name: blah
label: PLUGIN_COMMENTS.EMAIL_LABEL
placeholder: "https://leetnightshade.com"
type: text
validate:
required: false
- name: text
label: PLUGIN_COMMENTS.MESSAGE_LABEL
placeholder: PLUGIN_COMMENTS.MESSAGE_PLACEHOLDER
@ -50,6 +58,9 @@ form:
type: hidden
evaluateDefault: grav.uri.path
- name: blockme
type: honeypot
# - name: g-recaptcha-response
# label: Captcha
# type: captcha