Sign in
We're evolving to serve you better! This current forum has transitioned to read-only mode. For new discussions, support, and engagement, we've moved to GitHub Discussions.

Plugins for a recipe website

  • This topic has 7 replies, 3 voices, and was last updated 1 month ago by .
Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #11357
    Avatar photoGerechten

    Hey,

    Sorry to be blunt, but I have a recipe website running on Publii with the Taste theme, just kudos for all the hard work you guys have already done.

    But, what I’m wondering is, are you guys releasing more plugins in the future? Namely, I am looking for a plugin that can easily divide recipe quantities by the number of people. This should normally be possible.

    And another plugin I would have liked to see regarding SEO is one that changes the markup of a website. I am in fact looking for a method to get recipes in a markup. As described here; https://developers.google.com/search/docs/appearance/structured-data/recipe

    So in short. Are you guys going to release more plugins soon and could the two plugins mentioned be a possibility in the future?

    Thanks in advance!

    #11367
    Avatar photocandidexmedia
    Gerechten wrote:

    But, what I’m wondering is, are you guys releasing more plugins in the future? Namely, I am looking for a plugin that can easily divide recipe quantities by the number of people. This should normally be possible.

    Do you have an example of this kind of plugin in another website builder?

     

    Gerechten wrote:

    And another plugin I would have liked to see regarding SEO is one that changes the markup of a website. I am in fact looking for a method to get recipes in a markup. As described here; https://developers.google.com/search/docs/appearance/structured-data/recipe

    A plugin for this would definitely be useful! In the meantime, if you don’t mind editing your site files, give this a look: https://gist.github.com/candidexmedia/6304251e0bc2baf7ee07565b4f6fac49

     

    #11381
    Avatar photoGerechten

    As an example this website uses the technologies i mentioned before… even a star rating system that is also linked to the schema markup…

    https://www.leukerecepten.nl/recepten/bladerdeeg-amuse-lepels/

    #11382
    Avatar photoGerechten

    I tried to eddit the taste theme but somewhere i can’t get it to overwrite the theme with the new settings. Thank you for the suggestion tho i will try again, hopefully this time with success. 🙂

    #11383
    Avatar photocandidexmedia
    Gerechten wrote:

    As an example this website uses the technologies i mentioned before… even a star rating system that is also linked to the schema markup… https://www.leukerecepten.nl/recepten/bladerdeeg-amuse-lepels/

    Hmmm… I’m not sure how this kind of feature could translate into a plugin, but maybe the Publii devs or someone else has a better idea… In the meantime, you could try implementing this with Javascript in each post. I asked ChatGPT how to create this with HTML and JS, and here was the result — feel free to copy it (hit the red play button to preview first):

    https://editor.p5js.org/candidexmedia/sketches/8CBi0FeEM

    In terms of translating this to Publii, you could just copy the label/button/input part, ingredients div, and script and paste them into your post as HTML source code (depending on your editor — should work for WYSIWYG and Block Editor), and adjust the ingredients list in the script as needed.

    That said, I suggest editing your post.hbs (or creating a separate template, depending on how your site functions) and hardcoding the parts of the code that repeat from page to page (labels, buttons, most of the script). For the part of the code that changes from recipe to recipe (namely, the “const ingredients = […]” bit), you could use the Theme Settings API to manually type that in the Post settings (via the text area input). When you add that field variable to your post.hbs, make sure to add an extra set of curly brackets so that it’s “{{{ @config.post.nameOfCustomSetting }}}“.

    #11384
    Avatar photocandidexmedia
    Gerechten wrote:

    I tried to eddit the taste theme but somewhere i can’t get it to overwrite the theme with the new settings.

    Check out this step-by-step guide that I wrote a while back for another use on creating theme overrides and custom post templates: https://forum.getpublii.com/topic/post-template-adress-templates/#post-6310

    #11633
    Avatar photorzelnik

    I don’t think it’s a good idea to think about new plugin for each specific content type like “recipe” (for example). In this case we would quickly end up in plugin hell we already know from WordPress’s world. Static website generators are usually flexible enough to create any content type you want by just adding specific data into YAML header of the content file and then displaying them through a tailored template. This is a much easier approach than creating new plugins for each new content type. In case of Publii it is just a bit more difficult because it needs to create a user interface for this, but once you are able to create custom content types, you can create anything you want (recipes, contact lists, lists of favourite albums, etc.). Does Publii support creating/configuring custom content types? Are there any plans to implement this? I think this would be a game changer.

    #11638
    Avatar photocandidexmedia
    rzelnik wrote:

    I don’t think it’s a good idea to think about new plugin for each specific content type like “recipe” (for example). In this case we would quickly end up in plugin hell we already know from WordPress’s world.

    Though I usually agree on this, Recipe schema markups aren’t the most straightforward to implement (vs, say, analytics or comment system embed codes, which there are several plugins for). This isn’t the first time this question has been asked for recipe sites, in particular.

    What I believe would be beneficial instead of a plugin, though, is a recipe theme which integrates everything I’ve mentioned previously.

     

    rzelnik wrote:

    Does Publii support creating/configuring custom content types?

    Not quite, but there is:

    https://getpublii.com/dev/theme-settings-api/

    and

    https://getpublii.com/dev/how-to-create-custom-templates/

    Certain post settings can be tied only to particular templates.

Viewing 8 posts - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.