11ty / 11ty-website

Documentation site for the Eleventy static site generator.
https://www.11ty.dev/
MIT License
467 stars 677 forks source link

Create eleventy-plugin-embed-itch-io.json #1687

Closed CavaleriDK closed 3 months ago

CavaleriDK commented 3 months ago

This adds eleventy-plugin-embed-itch-io to the list of community contributed plugins

Snapstromegon commented 3 months ago

Hi @CavaleriDK, two questions:

  1. did you intentionally leave out the author field in the json?
  2. have you considered using shortcodes instead of transformers, so that it really only replaces links when you actually want it to?
CavaleriDK commented 3 months ago

Hi @CavaleriDK, two questions:

1. did you intentionally leave out the `author` field in the json?

2. have you considered using [shortcodes](https://www.11ty.dev/docs/shortcodes/) instead of transformers, so that it really only replaces links when you actually want it to?

Hi @Snapstromegon, thank you for the questions.

  1. I do not have any Twitter account, so I left the author field out on purpose.
  2. I highly appreciate the feedback here. I realise that using a transformer might be very specific to my own use case. I have updated the package to use shortcode as a default behaviour to make the plugin more useful for a broader audience, while still keeping the transformer behaviour as an optional configuration for my own niche requirement.