shortcode for favourite recent projects #92

Open
opened 2025-11-19 09:06:58 +01:00 by Moiety · 1 comment
Moiety commented 2025-11-19 09:06:58 +01:00 (Migrated from codeberg.org)

this is currently plain text. could be nice to read this from a JSON and have it automatically generated.

[
    {
        "label": "GoToSocial",
        "url": "https://codeberg.org/superseriousbusiness/gotosocial"
    }
]
{{ favouriteProjects }}
Some of my favourite projects to contribute to at the moment are <a href="#">Project 1</a> and <a href="#">Project 2</a>
eleventyConfig.addShortcode("favouriteProjects", () => {
    // Return last two entries
})
this is currently plain text. could be nice to read this from a JSON and have it automatically generated. ```json [ { "label": "GoToSocial", "url": "https://codeberg.org/superseriousbusiness/gotosocial" } ] ``` ```njk {{ favouriteProjects }} ``` ```html Some of my favourite projects to contribute to at the moment are <a href="#">Project 1</a> and <a href="#">Project 2</a> ``` ```js eleventyConfig.addShortcode("favouriteProjects", () => { // Return last two entries }) ```
Moiety commented 2025-11-20 14:54:26 +01:00 (Migrated from codeberg.org)

this may be a bit overkill. Taking it out of the milestone for now.

this may be a bit overkill. Taking it out of the milestone for now.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
zoe/moiety.me#92
No description provided.