pattex / jekyll-tagging

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

generate a /tag/index.html #43

Closed chrylis closed 7 years ago

chrylis commented 9 years ago

The /tag/ directory has no index, which produces either a Forbidden or a directory listing. It would be nice to have something there, either a configurable page or just a default-layout page with the tag cloud as the content.

nhoizey commented 8 years ago

Here is the page I generate: https://nicolas-hoizey.com/tags/

Here is the source: https://github.com/nhoizey/nicolas-hoizey.com/blob/master/tags/index.html

ParthKolekar commented 7 years ago

@nhoizey how did you get this working?

I created a tag directory, but tag/index.html is being copied verbatim.

0xdevalias commented 7 years ago

From the README

Now you have a new filter called tag_cloud which you can use with the site object as argument in your layout to get a cloud of all your site's tags.

ParthKolekar commented 7 years ago

Oh I got my problem.

my tag/index.html had this content

--
  layout: home
  permalink: /tag/
  title: Tag
--

<div class="tagscloud">
  {{ site | tag_cloud }}
</div>

Do you see the error here? The there are only two dashes. :sob: :sob: I wasted an entire day, only to realize that there need to be three dashes in my file.

0xdevalias commented 7 years ago

Hahaha! The modern evolution of the missing ; problem :p

Get Outlook for iOShttps://aka.ms/o0ukef


From: Parth Laxmikant Kolekar notifications@github.com Sent: Tuesday, March 28, 2017 9:00:46 AM To: pattex/jekyll-tagging Cc: alias1; Manual Subject: Re: [pattex/jekyll-tagging] generate a /tag/index.html (#43)

Oh I got my problem.

my tag/index.html had this content

-- layout: home permalink: /tag/ title: Tag

{{ site | tag_cloud }}

Do you see the error here? The there are only two dashes. 😭 😭 I wasted an entire day, only to realize that there need to be three dashes in my file.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHubhttps://github.com/pattex/jekyll-tagging/issues/43#issuecomment-289599346, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AAuA4-zGAdcn7x1Bcb5HjkFfhnToDspyks5rqDGOgaJpZM4Gg0ye.

nhoizey commented 7 years ago

@ParthKolekar sorry you wasted a full day! ;-)

ParthKolekar commented 7 years ago

None of it was your fault.