PicoComments:
# whether the comments plugin is enabled. comment data will not be available to Twig if this is false
enabled: true
# maximum character size of comments. comments larger than this will be rejected
comment_size_limit: 1000
# whether comments must be approved before displaying them to other users
comment_review: false
Hi, this looks promising but I couldn't figure out how to achieve step 3 of the instructions :
I realize
comments.twig
contains a sample macro but couldn't figure out how to add it to my theme'sindex.twig
.Here is what I did so far:
plugins/PicoComments
:config.yml
to include the following :comments: true
to a sample page's header.FWIW, using Pico 2.1.4 / PHP 7.3
Can someone shed a light please ?
EDIT: Found the solution with the help from https://github.com/push-eax/pico-comments/issues/2#issuecomment-823636246 ;
So, step 3 instructions are :
3.a Put the
comments.twig
file in your theme's folder, e.gpico/themes/default
;3.b Edit
comments.twig
and replace line 53 :with
3.c In your
index.twig
file, add the following twig instruction :where you want the form to appear.