aarongustafson / jekyll-webmention_io

A Jekyll Plugin for rendering Webmentions via Webmention.io
https://aarongustafson.github.io/jekyll-webmention_io/
MIT License
139 stars 27 forks source link

Can't get {% webmentions %} tag to output something #155

Closed kslstn closed 3 years ago

kslstn commented 3 years ago

I installed the latest version compatible with Jekyll 4. It seems to run fine, fetching webmentions and saving them in the .cache directory. The only problem is that the {% webmentions %} tag doesn't insert anything into my templates. Neither with normal builds or with the serve tag.

Perhaps worth mentioning is that with every build the terminal shows:

Conflict: The following destination is shared by multiple files.
                    The written file may end up with unexpected contents.
                    /Users/[ project dir ]/_site/js/JekyllWebmentionIO.js
                     - /Users/[ project dir ]/js/JekyllWebmentionIO.js
                     - /var/folders/m5/4cszbc8n2gz53r4jl20xk7z80000gn/T/d20211113-28747-wenpjq/js/JekyllWebmentionIO.js

But I suspect that that's unrelated.

For posts with the {% webmentions %} tag, the terminal seems to show nothing relevant. Nothing is added to the post's HTML. I tried adding the {% webmentions %} tag to an archive page. Upon build with debug set to true, the terminal shows the template to be used, preceded by the line: [jekyll-webmention_io] Webmentions template: But the HTML created doesn't have the <div class="webmentions">.

kslstn commented 3 years ago

Ah got it—it works with {% webmentions page.url %}!