tagging

An easy way to support tags in a jekyll blog

筅森魡賤 提交于 2019-11-26 05:19:08
问题 I am using the standard jekyll installation to maintain a blog, everything is going fine. Except I would really like to tag my posts. I can tag a post using the YAML front matter, but how do I generate pages for each tag that can will list all posts for a tag? 回答1: This gist will generate a page per category for you: https://gist.github.com/524748 It uses a Jekyll Generator plugin, plus a Page subclass. 回答2: Here is a solution with alphabetically sorted tags on a single page . It uses Liquid

Database Design for Tagging

孤人 提交于 2019-11-26 02:39:15
问题 How would you design a database to support the following tagging features: items can have a large number of tags searches for all items that are tagged with a given set of tags must be quick (the items must have ALL tags, so it\'s an AND-search, not an OR-search) creating/writing items may be slower to enable quick lookup/reading Ideally, the lookup of all items that are tagged with (at least) a set of n given tags should be done using a single SQL statement. Since the number of tags to

Recommended SQL database design for tags or tagging [closed]

我的未来我决定 提交于 2019-11-25 21:59:22
问题 I\'ve heard of a few ways to implement tagging; using a mapping table between TagID and ItemID (makes sense to me, but does it scale?), adding a fixed number of possible TagID columns to ItemID (seems like a bad idea), Keeping tags in a text column that\'s comma separated (sounds crazy but could work). I\'ve even heard someone recommend a sparse matrix, but then how do the tag names grow gracefully? Am I missing a best practice for tags? 回答1: Three tables (one for storing all items, one for