在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:pattex/jekyll-tagging开源软件地址:https://github.com/pattex/jekyll-tagging开源编程语言:Ruby 100.0%开源软件介绍:¶ ↑jekyll-taggingBy Arne Eilermann <[email protected]> and Jens Wille <[email protected]> jekyll-tagging is a Jekyll plugin, to add a tag cloud and per tag pages plus feeds to your Jekyll generated Website. ¶ ↑TagsThis plugin does not reinvent Jekyll's tagging feature. It just makes it easy to use. <jekyllrb.com/docs/frontmatter/> Add space-delimited lowercase tags to FrontMatter, e.g. --- author: Willow Rosenberg tags: feminism anti-capitalism witchcraft --- ¶ ↑UsageInstall it: gem install jekyll-tagging Add this line to your Jekyll project's Gemfile: gem 'jekyll-tagging' Add the following to your require 'jekyll/tagging' And in your tag_page_layout: tag_page tag_page_dir: tag This will look for Now you have a new filter called You can optionally define a per tag Atom/RSS feed. In your tag_feed_layout: tag_feed tag_feed_dir: tag ( ¶ ↑Pretty page linksIf your Jekyll tag_permalink_style: pretty ¶ ↑Ignoring tagsSometimes you don't want tag pages generated for certain pages. That's ok! Just add ¶ ↑Extra data on tag pagesYou can attach extra data to generated tag pages by specifying tag_page_data: sitemap: false ¶ ↑Example tag page layout(Save this to --- layout: default --- <h2>{{ page.tag }}</h2> <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> ¶ ↑Example layout of an Atom feed(Save this to --- layout: nil --- <?xml version="1.0" encoding="utf-8"?> <feed xmlns="http://www.w3.org/2005/Atom"> <title>Your Title - {{ page.tag }}</title> <link href="http://example.com{{ page.url }}" rel="self"/> <link href="http://example.com/tag/{{ page.tag }}.html"/> <updated>{{ site.time | date_to_xmlschema }}</updated> <id>http://example.com/tag/{{ page.tag }}.html</id> <author> <name>Author Here</name> </author> {% for post in page.posts %} <entry> <title>{{ post.title }}</title> <link href="http://example.com{{ post.url }}"/> <updated>{{ post.date | date_to_xmlschema }}</updated> <id>http://example.com{{ post.id }}</id> <content type="html">{{ post.content | xml_escape }}</content> </entry> {% endfor %} </feed> ¶ ↑Links
¶ ↑License¶ ↑The MIT LicenseCopyright © 2010-2012 University of Cologne, Albertus-Magnus-Platz, 50923 Cologne, Germany Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论