{% comment %} # ----------------------------------------------------------------------------- # ~/_includes/themes/j1/modules/connectors/comments # Liquid CONNECTOR for comment providers supported by J1 Template # # Product/Info: # https://jekyll-one.com # # Copyright (C) 2019 Juergen Adams # # J1 Template is licensed under the MIT License. # See: https://github.com/jekyll-one/j1_template_mde/blob/master/LICENSE # ----------------------------------------------------------------------------- # Test data: # liquid_var: {{ liquid_var | debug }} # ----------------------------------------------------------------------------- {% endcomment %} {% comment %} Liquid procedures -------------------------------------------------------------------------------- {% endcomment %} {% comment %} Variables -------------------------------------------------------------------------------- {% endcomment %} {% assign comments = site.data.j1_config.comments.enabled %} {% assign comment_provider = site.data.j1_config.comments.provider %} {% comment %} Main -------------------------------------------------------------------------------- {% endcomment %} {% if comments and page.comments %} {% case comment_provider %} {% when "disqus" %} {% include themes/{{site.template.name}}/modules/connectors/comment/disqus.html %} {% when "facebook" %} {% include themes/{{site.template.name}}/procedures/provider/comment/facebook.html %} {% when "custom" %} {% include themes/{{site.template.name}}/procedures/provider/comment/custom-provider.html %} {% endcase %} {% endif %}