{"id":13434687,"url":"https://github.com/pattex/jekyll-tagging","last_synced_at":"2025-03-18T01:31:56.894Z","repository":{"id":1146386,"uuid":"1028816","full_name":"pattex/jekyll-tagging","owner":"pattex","description":"Jekyll plugin to automatically generate a tag cloud and tag pages.","archived":false,"fork":false,"pushed_at":"2022-10-29T05:40:39.000Z","size":57,"stargazers_count":385,"open_issues_count":31,"forks_count":75,"subscribers_count":12,"default_branch":"master","last_synced_at":"2024-04-24T23:42:12.956Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pattex.png","metadata":{"files":{"readme":"README.rdoc","changelog":"ChangeLog","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2010-10-27T14:20:33.000Z","updated_at":"2024-04-17T19:10:50.000Z","dependencies_parsed_at":"2023-01-13T10:58:19.492Z","dependency_job_id":null,"html_url":"https://github.com/pattex/jekyll-tagging","commit_stats":null,"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pattex%2Fjekyll-tagging","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pattex%2Fjekyll-tagging/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pattex%2Fjekyll-tagging/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pattex%2Fjekyll-tagging/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pattex","download_url":"https://codeload.github.com/pattex/jekyll-tagging/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244139304,"owners_count":20404491,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-07-31T03:00:20.509Z","updated_at":"2025-03-18T01:31:56.591Z","avatar_url":"https://github.com/pattex.png","language":"Ruby","funding_links":[],"categories":["Tags \u0026 Taggings, Categories \u0026 Categorizations","jQuery","Ruby"],"sub_categories":["RESTful"],"readme":"= jekyll-tagging\n\nBy Arne Eilermann \u003cmailto:arne@kleinerdrei.net\u003e and Jens Wille \u003cmailto:jens.wille@uni-koeln.de\u003e\n\njekyll-tagging is a Jekyll plugin, to add a tag cloud and per tag pages plus feeds to your Jekyll generated Website.\n\n== Tags\nThis plugin does not reinvent Jekyll's tagging feature. It just makes it easy to use.\n\u003chttps://jekyllrb.com/docs/frontmatter/\u003e\n\nAdd space-delimited lowercase tags to FrontMatter, e.g.\n\n  ---\n  author: Willow Rosenberg\n  tags: feminism anti-capitalism witchcraft\n  ---\n\n== Usage\n\nInstall it:\n\n  gem install jekyll-tagging\n\nAdd this line to your Jekyll project's Gemfile:\n\n  gem 'jekyll-tagging'\n\nAdd the following to your \u003ctt\u003e_plugins/ext.rb\u003c/tt\u003e file:\n\n  require 'jekyll/tagging'\n\nAnd in your \u003ctt\u003e_config.yml\u003c/tt\u003e you have to define your layout used to generate tag pages like:\n\n  tag_page_layout: tag_page\n  tag_page_dir: tag\n\nThis will look for \u003ctt\u003e_layouts/tag_page.html\u003c/tt\u003e, and use it to generate tag pages into the \u003ctt\u003e_site/tag\u003c/tt\u003e directory.\n\nNow you have a new filter called \u003ctt\u003etag_cloud\u003c/tt\u003e which you can use with the \u003ctt\u003esite\u003c/tt\u003e object as argument in your layout to get a cloud of all your site's tags. The tags are linked to their related tag page. Furthermore, you have a \u003ctt\u003etags\u003c/tt\u003e filter which you can feed with a \u003ctt\u003epost\u003c/tt\u003e or a \u003ctt\u003epage\u003c/tt\u003e object to get a link list of all its tags.\n\nYou can optionally define a per tag Atom/RSS feed.  In your \u003ctt\u003e_config.yml\u003c/tt\u003e define the following:\n\n  tag_feed_layout: tag_feed\n  tag_feed_dir: tag\n\n(\u003ctt\u003etag_page_dir\u003c/tt\u003e and \u003ctt\u003etag_feed_dir\u003c/tt\u003e can have the same value.)\n\n=== Pretty page links\n\nIf your Jekyll \u003ctt\u003epermalink\u003c/tt\u003e configuration is set to something other than \u003ctt\u003e:pretty\u003c/tt\u003e, and you still want to have pretty tag links define the following in your \u003ctt\u003e_config.yml\u003c/tt\u003e:\n\n  tag_permalink_style: pretty\n\n=== Ignoring tags\n\nSometimes you don't want tag pages generated for certain pages. That's ok! Just add \u003ctt\u003eignored_tags: [tags,to,ignore]\u003c/tt\u003e to your \u003ctt\u003e_config.yml\u003c/tt\u003e\n\n=== Extra data on tag pages\n\nYou can attach extra data to generated tag pages by specifying \u003ctt\u003etag_page_data\u003c/tt\u003e in \u003ctt\u003e_config.yml\u003c/tt\u003e (this also works for \u003ctt\u003etag_feed_data\u003c/tt\u003e). For example, you might want to exclude tag pages from being picked up by `jekyll-sitemap`:\n\n  tag_page_data:\n    sitemap: false\n\n=== Example tag page layout\n\n(Save this to \u003ctt\u003e_layouts/tag_page.html\u003c/tt\u003e if using the \u003ctt\u003e_config.yml\u003c/tt\u003e snippet above.)\n\n  ---\n  layout: default\n  ---\n  \u003ch2\u003e{{ page.tag }}\u003c/h2\u003e\n  \u003cul\u003e\n  {% for post in page.posts %}\n    \u003cli\u003e\u003ca href=\"{{ post.url }}\"\u003e{{ post.title }}\u003c/a\u003e ({{ post.date | date_to_string }} | Tags: {{ post | tags }})\u003c/li\u003e\n  {% endfor %}\n  \u003c/ul\u003e\n\n  \u003cdiv id=\"tag-cloud\"\u003e\n    {{ site | tag_cloud }}\n  \u003c/div\u003e\n\n\n=== Example layout of an Atom feed\n\n(Save this to \u003ctt\u003e_layouts/tag_feed.xml\u003c/tt\u003e if using the \u003ctt\u003e_config.yml\u003c/tt\u003e snippet above.)\n\n  ---\n  layout: nil\n  ---\n  \u003c?xml version=\"1.0\" encoding=\"utf-8\"?\u003e\n  \u003cfeed xmlns=\"http://www.w3.org/2005/Atom\"\u003e\n   \u003ctitle\u003eYour Title - {{ page.tag }}\u003c/title\u003e\n   \u003clink href=\"http://example.com{{ page.url }}\" rel=\"self\"/\u003e\n   \u003clink href=\"http://example.com/tag/{{ page.tag }}.html\"/\u003e\n   \u003cupdated\u003e{{ site.time | date_to_xmlschema }}\u003c/updated\u003e\n   \u003cid\u003ehttp://example.com/tag/{{ page.tag }}.html\u003c/id\u003e\n   \u003cauthor\u003e\n     \u003cname\u003eAuthor Here\u003c/name\u003e\n   \u003c/author\u003e\n   {% for post in page.posts %}\n   \u003centry\u003e\n     \u003ctitle\u003e{{ post.title }}\u003c/title\u003e\n     \u003clink href=\"http://example.com{{ post.url }}\"/\u003e\n     \u003cupdated\u003e{{ post.date | date_to_xmlschema }}\u003c/updated\u003e\n     \u003cid\u003ehttp://example.com{{ post.id }}\u003c/id\u003e\n     \u003ccontent type=\"html\"\u003e{{ post.content | xml_escape }}\u003c/content\u003e\n   \u003c/entry\u003e\n   {% endfor %}\n  \u003c/feed\u003e\n\n== Links\n\n\u003cb\u003e\u003c/b\u003e\nDocumentation:: \u003chttp://rubydoc.info/gems/jekyll-tagging/frames\u003e\nSource code:: \u003chttp://github.com/pattex/jekyll-tagging\u003e\nRubyGem:: \u003chttp://rubygems.org/gems/jekyll-tagging\u003e\n\n== License\n\n=== The MIT License\n\nCopyright (c) 2010-2012 University of Cologne,\nAlbertus-Magnus-Platz, 50923 Cologne, Germany\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpattex%2Fjekyll-tagging","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpattex%2Fjekyll-tagging","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpattex%2Fjekyll-tagging/lists"}