Code Monkey home page Code Monkey logo

Comments (9)

lividsu avatar lividsu commented on May 10, 2024

还有菜系 川鲁粤苏

from howtocook.

recolic avatar recolic commented on May 10, 2024

因为分类方法的多样性,我们给每一个菜添加一些标签,然后根据标签进行分类索引。我认为是可行的方案。

因为很多用户需要用多种分类标准进行分类(例如菜系、口味、难度),用标签有兼容性。

from howtocook.

LinMingQiang avatar LinMingQiang commented on May 10, 2024

刚开始可以先按几个大类分,之后再慢慢优化,例如先按 菜系 -> 素/荤 -> 辣/不辣,

from howtocook.

Mrzyxing avatar Mrzyxing commented on May 10, 2024

标签格式可以按照kv格式设定,方便扩展维度。
例如:
菜系:徽菜口味:偏辣忌口:香菜,蒜功效:助眠,防脱发
对于后期可能出现的菜品过多导致的管理和浏览问题,可以按照此格式统计出使用频率top 10的key生成动态目录,供大家使用。同时,如果能统一标签格式的话,动态目录就可以定期任务运行脚本自动生成了。应该也能一定程度上激励大厨们补充信息,让自己喜欢的标签冲上热搜。

from howtocook.

Mi-Little avatar Mi-Little commented on May 10, 2024

目前是按 素材荤菜分类,可以增加 豫 鲁 川 等 菜系 ,而且一道菜 不同菜系的做法可能不一样,大家想想如何解决这个,就是可以选择多种 分类的选项

from howtocook.

momoblydblk avatar momoblydblk commented on May 10, 2024

#1024
本issue成功了的话提到的这个issue(1024)也行了(话说真是个好的issue号码啊)

from howtocook.

Anduin2017 avatar Anduin2017 commented on May 10, 2024

看起来这个issue非常有必要解决。我会花一些精力在这个方面。

不过,有一个很实际的问题就是:在试图给菜增加标签时,应该使用何种数据结构呢?是直接加到 markdown 文件中,还是用一个额外的配置文件存储比较合适呢?

from howtocook.

nangonghuang avatar nangonghuang commented on May 10, 2024

额外的配置文件需要额外的维护。建议加到markdown文件中,编辑的时候提供已有的标签做选择。只是存量的菜需要靠merge来更新了

from howtocook.

Mi-Little avatar Mi-Little commented on May 10, 2024

from howtocook.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.