Closed
Description
- This is a question about using the theme.
- This is a feature request.
- I have updated all gems with
bundle update
. - I have tested locally with
bundle exec jekyll build
. - I believe this to be a bug with the theme --- not Jekyll, GitHub Pages or one of the bundled plugins.
Environment informations
- Minimal Mistakes version: 4.5.0
Expected behavior
Integration with discourse as a comments provider doesn't work in all conditions.
Steps to reproduce the behavior
- Set up _config.yml appropriately for discourse embedding.
- Follow the instructions at https://meta.discourse.org/t/embedding-discourse-comments-via-javascript/31963. In particular notice the code listed in step 4, and compare it to the code generated by
_includes/comments-providers/discourse.html
.
There are two problems.
First, discourseUrl
will be given an extra pair of forward slashes:
discourseUrl: '//http://discourse.example.com/'
while it should be:
discourseUrl: 'http://discourse.example.com/'
Second, the canonical url is missing (at least) the site.url
and appears as:
discourseEmbedUrl: '/blog/entry-123.html'
while it should be
discourseEmbedUrl: 'http://example.com/blog/entry-123.html'
A fix is proposed in this PR: #1181
Note: in order for everything to work correctly, you must ensure that _config.yml
contains the proper settings (site.url
and site.baseurl
) for the urls!