ioc.exchange is one of the many independent Mastodon servers you can use to participate in the fediverse.
INDICATORS OF COMPROMISE (IOC) InfoSec Community within the Fediverse. Newbies, experts, gurus - Everyone is Welcome! Instance is supposed to be fast and secure.

Administered by:

Server stats:

1.3K
active users

#nunjucks

0 posts0 participants0 posts today
Christopher Kirk-Nielsen<p>I refactored my personal website on <span class="h-card" translate="no"><a href="https://neighborhood.11ty.dev/@11ty" class="u-url mention" rel="nofollow noopener noreferrer" target="_blank">@<span>11ty</span></a></span> from <a href="https://front-end.social/tags/Nunjucks" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Nunjucks</span></a> to <a href="https://front-end.social/tags/Vento" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Vento</span></a>, and I have some tips for you if you want to do the same. It's like a guide but like… less structured and more pun-riddled. Check it out: <a href="https://chriskirknielsen.com/blog/from-nunjucks-to-vento-in-eleventy-migration-guide/" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">chriskirknielsen.com/blog/from</span><span class="invisible">-nunjucks-to-vento-in-eleventy-migration-guide/</span></a></p>
Thomas Rigby<p><span>Calculating yearsSince using a Nunjucks filter in Eleventy<br></span><a href="https://fedia.social/tags/technology" rel="nofollow noopener noreferrer" target="_blank">#technology</a><span> </span><a href="https://fedia.social/tags/eleventy" rel="nofollow noopener noreferrer" target="_blank">#eleventy</a><span> </span><a href="https://fedia.social/tags/11ty" rel="nofollow noopener noreferrer" target="_blank">#11ty</a><span> </span><a href="https://fedia.social/tags/nunjucks" rel="nofollow noopener noreferrer" target="_blank">#nunjucks</a><span> </span><a href="https://fedia.social/tags/code" rel="nofollow noopener noreferrer" target="_blank">#code</a><span><br></span><a href="https://thomasrigby.com/posts/calculating-yearssince-using-a-nunjucks-filter/" rel="nofollow noopener noreferrer" target="_blank">thomasrigby.com/posts/calculating-yearssince-using-a-nunjucks-filter/</a></p>
Wolfram wants peace<p>PicoSSG – A boring static site generator. Just as much tech as it needs.</p><p>Static site generators – sounds boring. But most aren't, because they try to do everything and end up big and complex.<br>PicoSSG is intentionally boring. It processes *.md and *.njk files, copies everything else as-is. Around 300 lines of plain JavaScript. Boring. As it should be.</p><p>Think of it as <a href="https://mastodontech.de/tags/cp" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>cp</span></a> + <a href="https://mastodontech.de/tags/markdown" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>markdown</span></a> + <a href="https://mastodontech.de/tags/nunjucks" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>nunjucks</span></a>. That’s it. Boring.</p><p>My blog picostitch.com is already built with it.</p><p><a href="https://www.npmjs.com/package/@wolframkriesing/picossg" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://www.</span><span class="ellipsis">npmjs.com/package/@wolframkrie</span><span class="invisible">sing/picossg</span></a></p><p><a href="https://mastodontech.de/tags/ssg" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>ssg</span></a></p>
tlohde<p>To the <a href="https://fediscience.org/tags/11ty" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>11ty</span></a> and <a href="https://fediscience.org/tags/nunjucks" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>nunjucks</span></a> users...</p><p>I have a file called list.njk which looks like:</p><p>- item 1<br>- item 2<br>- item 3<br>etc...</p><p>In another file, index.md for example, I want to do something like:</p><p>{% include "file.njk" | rows(4) %}</p><p>That would just bring in the first 4 rows form file.njk.</p><p>Is this possible? If yes, how?</p>