pattex / jekyll-tagging

Jekyll plugin to automatically generate a tag cloud and tag pages.
385 stars 76 forks source link

Jekyll::Drops::SiteDrop #68

Closed jcubic closed 6 years ago

jcubic commented 6 years ago
{{ site | tag_cloud }}

outputs:

Jekyll::Drops::SiteDrop

I have this in Gemfile:

gem 'jekyll', '3.2'
gem 'jekyll-paginate'
gem 'pygments.rb'
gem 'jekyll-tagging'
gem 'json', '~> 2.0'

I was testing older version just to be sure if it's not version issue.

My posts have space separated tags, and I've added this in my _include/sidebar.html:

{{ site | tag_cloud }}

my tag_page.html have:

---
layout: default
---
<header>
  <h2>{{ page.tag }}</h2>
</header>
<ul>
  {% for post in page.posts %}
  <li><a href="{{ post.url }}">{{ post.title }}</a> ({{ post.date | date_to_string }} | Tags: {{ post | tags }})</li>
{% endfor %}
</ul>

<div id="tag-cloud">
  {{ site | tag_cloud }}
</div>

and I have this in _config.yml

tag_page_layout: tag_page
tag_page_dir: tag
tag_permalink_style: pretty

not tag directory and no tag cloud.

jcubic commented 6 years ago

Sorry, I didn't have _plugins/ext.rb because I've removed it while testing.