<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
  <title>fragosti</title>
  <subtitle>Posts, projects and more by fragosti</subtitle>
  <link href="https://fragosti.com/feed.xml" rel="self"/>
  <link href="https://fragosti.com/"/>
  <updated>2020-06-11T00:00:00Z</updated>
  <id>https://fragosti.com/</id>
  <author>
    <name>Francesco Agosti</name>
    <email>francesco@fragosti.com</email>
  </author>
  
  <entry>
    <title>A Look at Cryptovoxels</title>
    <link href="https://fragosti.com/posts/a-look-at-cryptovoxels/"/>
    <updated>2020-06-11T00:00:00Z</updated>
    <id>https://fragosti.com/posts/a-look-at-cryptovoxels/</id>
    <description>The Metaverse Being Built on Ethereum</description>
    <content type="html">&lt;p&gt;The term &amp;quot;Metaverse&amp;quot; was originally coined by &lt;a href=&quot;https://en.wikipedia.org/wiki/Neal_Stephenson&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;Neal Stephenson&lt;/a&gt; in his 1992 novel &lt;a href=&quot;https://en.wikipedia.org/wiki/Snow_Crash&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;Snow Crash&lt;/a&gt;. In the Metaverse humans, as avatars, interact with each other and software agents, in a three-dimensional space that uses the metaphor of the real world. Stephenson used the term to describe a virtual reality-based successor to the Internet.&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;https://fragosti.com/assets/img/cv-ready-player-one.jpg&quot; alt=&quot;Ready Player One&quot; class=&quot;mx-auto&quot; /&gt;&lt;/p&gt;
&lt;p&gt;A more recent rendition of the Metaverse can be seen in the movie &lt;a href=&quot;https://en.wikipedia.org/wiki/Ready_Player_One_(film)&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;Ready Player One&lt;/a&gt;, where it is called &amp;quot;The OASIS&amp;quot;.&lt;/p&gt;
&lt;h2 id=&quot;what-is-cryptovoxels%3F&quot; tabindex=&quot;-1&quot;&gt;What is Cryptovoxels? &lt;a class=&quot;header-anchor&quot; href=&quot;https://fragosti.com/posts/a-look-at-cryptovoxels/#what-is-cryptovoxels%3F&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;&lt;i data-feather=&quot;link&quot; class=&quot;link&quot;&gt;&lt;/i&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;https://www.youtube.com/watch?v=PMAkpeyWGWA&lt;/p&gt;
&lt;p&gt;Cryptovoxels is a Metaverse that runs in &lt;a href=&quot;https://www.cryptovoxels.com/play?coords=&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;your browser&lt;/a&gt; (and phone, and VR headset). It uses the Ethereum blockchain to track ownership of goods in its economy, most importantly property. It has come a long way since the original trailer (above) was released.&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;Cryptovoxels is a virtual world powered by the Ethereum blockchain. Players can buy land and build stores and art galleries. Editing tools, avatars, text chat and voice chat are built in. – cryptovoxels.com&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;There are other similar projects on Ethereum, such as &lt;a href=&quot;https://www.decentraland.org/&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;Decentraland&lt;/a&gt; and &lt;a href=&quot;https://www.sandbox.game/en/&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;The Sandbox&lt;/a&gt;, but this post will focus on Cryptovoxels.&lt;/p&gt;
&lt;h2 id=&quot;why-ethereum%3F&quot; tabindex=&quot;-1&quot;&gt;Why Ethereum? &lt;a class=&quot;header-anchor&quot; href=&quot;https://fragosti.com/posts/a-look-at-cryptovoxels/#why-ethereum%3F&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;&lt;i data-feather=&quot;link&quot; class=&quot;link&quot;&gt;&lt;/i&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;From an implementation standpoint, there is no reason you &lt;em&gt;technically&lt;/em&gt; need a blockchain to build a Metaverse. In fact, building Cryptovoxels on Ethereum likely came with its unique set of challenges.&lt;/p&gt;
&lt;p&gt;&lt;em&gt;However&lt;/em&gt;, building on Ethereum also comes with some unique advantages. For one, it just fits the &lt;em&gt;ethos&lt;/em&gt;. In Ready Player One the OASIS becomes so important that the company running it becomes one of the most valuable in the world. In fact, the OASIS is so valuable that the central conflict of the movie is about who owns and controls it.&lt;/p&gt;
&lt;p&gt;Having Cryptovoxel parcel ownership be tracked on Ethereum provides users with strong guarantees that their assets cannot simply be taken away by the creators. While it is true that the entire game isn&#39;t decentralized, and that the creators could change the game to &lt;em&gt;ignore&lt;/em&gt; what Ethereum says, the fact that it is built on Ethereum shows a commitment to letting the users own the world.&lt;/p&gt;
&lt;p&gt;This commitment has allowed Cryptovoxels to attract the right kind of early adopters, who have taken ownership of the world in their own right. More specifically, it has attracted designers, painters, modeling experts, architects, digital artists, etc.... These artists have done an amazing job in building out the world and &lt;a href=&quot;https://fragosti.com/posts/a-look-at-cryptovoxels/#what-can-you-do%3F&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;making it a place worth exploring and hanging out in&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Finally, there is at least one more tangible advantage to building a Metaverse on Ethereum: existing assets and infrastructure. The Cryptovoxel world is highly compatible with the rest of the Ethereum ecosystem, especially the &lt;a href=&quot;https://eips.ethereum.org/EIPS/eip-721&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;ERC-721&lt;/a&gt; standard (also known as Non-Fungible Tokens).&lt;/p&gt;
&lt;p&gt;Many users already own NFTs (such as &lt;a href=&quot;https://www.cryptokitties.co/&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;CryptoKitties&lt;/a&gt;), and will see Cryptovoxels as a perfect place to display and sell them. Cryptovoxel parcels are also NFTs, and so are compatible with &lt;a href=&quot;https://opensea.io/assets/cryptovoxels?sortBy=assets_prod_main_price_asc&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;existing exchange infrastructure&lt;/a&gt;, which means the creators of Cryptovoxels never had to build an exchange to let their users trade parcels.&lt;/p&gt;
&lt;h2 id=&quot;what-can-you-do%3F&quot; tabindex=&quot;-1&quot;&gt;What can you do? &lt;a class=&quot;header-anchor&quot; href=&quot;https://fragosti.com/posts/a-look-at-cryptovoxels/#what-can-you-do%3F&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;&lt;i data-feather=&quot;link&quot; class=&quot;link&quot;&gt;&lt;/i&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;While Cryptovoxels feels like a game, it is just an open world. There are no clear objectives. You do whatever you want.&lt;/p&gt;
&lt;h3 id=&quot;explore&quot; tabindex=&quot;-1&quot;&gt;Explore &lt;a class=&quot;header-anchor&quot; href=&quot;https://fragosti.com/posts/a-look-at-cryptovoxels/#explore&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;&lt;i data-feather=&quot;link&quot; class=&quot;link&quot;&gt;&lt;/i&gt;&lt;/a&gt;&lt;/h3&gt;
&lt;p&gt;&lt;img src=&quot;https://fragosti.com/assets/img/cv-map-1.png&quot; alt=&quot;Cryptovoxel Map&quot; /&gt;&lt;/p&gt;
&lt;p&gt;One of the best things to do in Cryptovoxels is to wander around. Every time I explore, I find something new and surprising.&lt;/p&gt;
&lt;p&gt;You can see that &lt;a href=&quot;https://www.cryptovoxels.com/map&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;the map&lt;/a&gt; displays a few islands and neighborhoods, such as &amp;quot;Proxima&amp;quot; or &amp;quot;Moon&amp;quot;. At the time of writing, there are 31 neighborhoods and 4 islands, although &lt;a href=&quot;https://fragosti.com/posts/a-look-at-cryptovoxels/posts/a-look-at-cryptovoxels/#how-to-get-a-parcel&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;more are coming online every week&lt;/a&gt;.&lt;/p&gt;
&lt;div class=&quot;flex justify-center flex-wrap items-center full-width space-x-2&quot;&gt;
  &lt;img src=&quot;https://fragosti.com/assets/img/cv-area-51.jpg&quot; alt=&quot;Area 51&quot; class=&quot;my-4&quot; style=&quot;width: 350px&quot; /&gt;
  &lt;img src=&quot;https://fragosti.com/assets/img/cv-kitties.jpg&quot; alt=&quot;CryptoKitties&quot; class=&quot;my-4&quot; style=&quot;width: 350px&quot; /&gt;
  &lt;img src=&quot;https://fragosti.com/assets/img/cv-frankfurt.jpg&quot; alt=&quot;Frankfurt&quot; class=&quot;my-4&quot; style=&quot;width: 350px&quot; /&gt;
&lt;/div&gt;
&lt;p&gt;Each neighborhood has its unique look-and-feel. In &lt;a href=&quot;https://www.cryptovoxels.com/neighborhoods/area-51&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;Area 51&lt;/a&gt;, you&#39;ll see a lot of alien themed content, and in &lt;a href=&quot;https://www.cryptovoxels.com/neighborhoods/kitties&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;Kitties&lt;/a&gt;, you&#39;ll see a lot of references to and collectibles from the CryptoKitties game. Neighborhood building restrictions come into play as well, as some neighborhoods such as &lt;a href=&quot;https://www.cryptovoxels.com/neighborhoods/frankfurt&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;Frankfurt&lt;/a&gt; allow for taller buildings and therefore have a big city vibe.&lt;/p&gt;
&lt;p&gt;Of course, neighborhoods are just composed of individual parcels with unique owners and unique builds – some more impressive than others. Take the &lt;a href=&quot;https://www.cryptovoxels.com/parcels/1418&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;DAI House&lt;/a&gt; for example, which is a tribute to the &lt;a href=&quot;https://makerdao.com/en/&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;DAI cryptocurrency&lt;/a&gt; and boasts fountains and spinning 3D DAI models. Another example is the &lt;a href=&quot;https://www.cryptovoxels.com/parcels/2908&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;Token Smart Amphitheatre&lt;/a&gt;, which displays some impressive architecture and even a cafe, or &lt;a href=&quot;https://www.cryptovoxels.com/parcels/2792&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;Sugar Club&lt;/a&gt; where people go to listen to music and dance (yes, there is a dance button).&lt;/p&gt;
&lt;div class=&quot;flex justify-center flex-wrap items-center full-width space-x-2&quot;&gt;
  &lt;img src=&quot;https://fragosti.com/assets/img/cv-dai-house.jpg&quot; alt=&quot;DAI House&quot; class=&quot;my-4&quot; style=&quot;width: 350px&quot; /&gt;
  &lt;img src=&quot;https://fragosti.com/assets/img/cv-amphitheatre.jpg&quot; alt=&quot;Amphitheatre&quot; class=&quot;my-4&quot; style=&quot;width: 350px&quot; /&gt;
  &lt;img src=&quot;https://fragosti.com/assets/img/cv-sugar-club.jpg&quot; alt=&quot;Sugar Club&quot; class=&quot;my-4&quot; style=&quot;width: 350px&quot; /&gt;
&lt;/div&gt;
&lt;p&gt;There are also quite a few personalities and magnates in Cryptovoxels, who are responsible for building and advertising some of the biggest builds and events. Artist, architect and &amp;quot;Photoshop Priest&amp;quot; &lt;a href=&quot;https://twitter.com/money_alotta&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;Alotta Money&lt;/a&gt; recently advertised the opening party for the &lt;a href=&quot;https://www.cryptovoxels.com/parcels/2377&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;Voxel Hotel&lt;/a&gt;, which has to be the most impressive build I&#39;ve seen in Cryptovoxels so far.&lt;/p&gt;
&lt;div class=&quot;flex justify-center&quot;&gt;
&lt;blockquote class=&quot;twitter-tweet&quot;&gt;&lt;a href=&quot;https://twitter.com/user/status/1260381348746977284&quot;&gt;&lt;/a&gt;&lt;/blockquote&gt;&lt;script async=&quot;&quot; src=&quot;https://platform.twitter.com/widgets.js&quot; charset=&quot;utf-8&quot;&gt;&lt;/script&gt;
&lt;/div&gt;
&lt;p&gt;In fact, as recently as yesterday, people have been gathering at the Voxel Hotel and elsewhere for legitimate meet-ups and events. Many of these meet-ups are &lt;a href=&quot;https://www.vraf.world/&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;well organized&lt;/a&gt; and have considerable thought put into them.&lt;/p&gt;
&lt;div class=&quot;flex justify-center&quot;&gt;
&lt;blockquote class=&quot;twitter-tweet&quot;&gt;&lt;a href=&quot;https://twitter.com/user/status/1271160070282174464&quot;&gt;&lt;/a&gt;&lt;/blockquote&gt;&lt;script async=&quot;&quot; src=&quot;https://platform.twitter.com/widgets.js&quot; charset=&quot;utf-8&quot;&gt;&lt;/script&gt;
&lt;/div&gt;
&lt;p&gt;There are plenty of secrets to discover as well, as some of the best builds and experiences are hidden away. If you check out &lt;a href=&quot;https://www.cryptovoxels.com/parcels/2902&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;EtherBrews&lt;/a&gt; it appears to be a simple brewery on the water, but if you go inside and fly over the wall, you&#39;ll find a beautiful tree. Some builds are straight up puzzles, like &lt;a href=&quot;https://www.cryptovoxels.com/parcels/1861&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;Yours Truly Puzzle&lt;/a&gt; (can you get in?). Finally, you may even find &lt;a href=&quot;https://www.cryptovoxels.com/play?coords=S@289W,3U,476N&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;games like Breakout&lt;/a&gt; appear on random corners of the world since better scripting functionality has been added.&lt;/p&gt;
&lt;div class=&quot;flex justify-center flex-wrap items-center full-width space-x-2&quot;&gt;
  &lt;img src=&quot;https://fragosti.com/assets/img/cv-tree.jpg&quot; alt=&quot;EtherBrews&quot; class=&quot;my-4&quot; style=&quot;width: 350px&quot; /&gt;
  &lt;img src=&quot;https://fragosti.com/assets/img/cv-puzzle.jpg&quot; alt=&quot;Yours Truly Puzzle&quot; class=&quot;my-4&quot; style=&quot;width: 350px&quot; /&gt;
  &lt;img src=&quot;https://fragosti.com/assets/img/cv-breakout.jpg&quot; alt=&quot;Breakout&quot; class=&quot;my-4&quot; style=&quot;width: 350px&quot; /&gt;
&lt;/div&gt;
&lt;p&gt;The above only scratches the surface of what you can explore in Cryptovoxels. You can watch &lt;a href=&quot;https://www.cryptovoxels.com/play?coords=W@415E,3S&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;live events&lt;/a&gt; as Cryptovoxels supports YouTube embeds and Twitch streams, you can &lt;a href=&quot;https://www.cryptovoxels.com/play?coords=W@134E,171N&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;go shopping&lt;/a&gt; (more on that &lt;a href=&quot;https://fragosti.com/posts/a-look-at-cryptovoxels/#buy-%26-sell&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;later&lt;/a&gt;) and even &lt;a href=&quot;https://www.cryptovoxels.com/play?coords=S@214E,76N&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;pray in a virtual church&lt;/a&gt; if that&#39;s your thing.&lt;/p&gt;
&lt;div class=&quot;flex justify-center flex-wrap items-center full-width space-x-2&quot;&gt;
  &lt;img src=&quot;https://fragosti.com/assets/img/cv-spacex.jpg&quot; alt=&quot;Cryptovoxels SpaceX Launch&quot; class=&quot;my-4&quot; style=&quot;width: 350px&quot; /&gt;
  &lt;img src=&quot;https://fragosti.com/assets/img/cv-market.jpg&quot; alt=&quot;Cryptovoxels Market&quot; class=&quot;my-4&quot; style=&quot;width: 350px&quot; /&gt;
  &lt;img src=&quot;https://fragosti.com/assets/img/cv-church.jpg&quot; alt=&quot;Cryptovoxels Church&quot; class=&quot;my-4&quot; style=&quot;width: 350px&quot; /&gt;
&lt;/div&gt;
&lt;h3 id=&quot;build&quot; tabindex=&quot;-1&quot;&gt;Build &lt;a class=&quot;header-anchor&quot; href=&quot;https://fragosti.com/posts/a-look-at-cryptovoxels/#build&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;&lt;i data-feather=&quot;link&quot; class=&quot;link&quot;&gt;&lt;/i&gt;&lt;/a&gt;&lt;/h3&gt;
&lt;p&gt;After you&#39;re done exploring, you may be inspired to build something yourself. Once you &lt;a href=&quot;https://fragosti.com/posts/a-look-at-cryptovoxels/#how-to-get-a-parcel&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;purchase a parcel&lt;/a&gt;, or discover one in &amp;quot;sandbox&amp;quot; mode you&#39;ll find that it&#39;s pretty easy to get going, but much harder to build more complex builds.&lt;/p&gt;
&lt;p&gt;https://www.youtube.com/watch?v=9d7GY2u3f2o&lt;/p&gt;
&lt;p&gt;At the most basic level, if you press &amp;quot;tab&amp;quot; on your property you&#39;ll see a build menu pop-up with tons of options. If you head over to &amp;quot;Tiles&amp;quot; and select your preferred tile color and pattern, you can place them wherever you want in the bounds of your property!&lt;/p&gt;
&lt;div class=&quot;flex justify-center flex-wrap items-center full-width space-x-2&quot;&gt;
  &lt;img src=&quot;https://fragosti.com/assets/img/cv-menu.png&quot; alt=&quot;Cryptovoxels Build Menu&quot; class=&quot;my-4&quot; style=&quot;width: 350px&quot; /&gt;
  &lt;img src=&quot;https://fragosti.com/assets/img/cv-tiles.png&quot; alt=&quot;Cryptovoxels Tile Menu&quot; class=&quot;my-4&quot; style=&quot;width: 350px&quot; /&gt;
  &lt;img src=&quot;https://fragosti.com/assets/img/cv-tile-place.png&quot; alt=&quot;Cryptovoxels Placing a Tile&quot; class=&quot;my-4&quot; style=&quot;width: 350px&quot; /&gt;
&lt;/div&gt;
&lt;p&gt;If this reminds you of Minecraft, you&#39;re right. &lt;a href=&quot;https://twitter.com/bnolan&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;Ben Nolan&lt;/a&gt;, the founder, &lt;a href=&quot;https://thenextweb.com/hardfork/2019/04/05/cryptovoxels-walk-blockchain-ethereum/&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;says&lt;/a&gt; that Minecraft was a big inspiration for the project.&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;I was inspired by Minecraft and loved the idea of a Minecraft city that is owned by its users – Ben Nolan, Founder of Cryptovoxels&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;That explains the basics, but as you may have noticed from the YouTube video, there are tons of tutorials online. Once you get more advanced, you&#39;ll likely be playing with Vox files which allow you to import more granular assets from &lt;a href=&quot;https://medium.com/pinata/how-to-create-a-vox-file-for-cryptovoxels-39768edd8622&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;external editors&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;If that all sounds like too much effort, you can always hire an a &lt;a href=&quot;https://www.voxelarchitects.com/&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;professional Cryptovoxel architect&lt;/a&gt; to build something for you.&lt;/p&gt;
&lt;h3 id=&quot;buy-%26-sell&quot; tabindex=&quot;-1&quot;&gt;Buy &amp;amp; Sell &lt;a class=&quot;header-anchor&quot; href=&quot;https://fragosti.com/posts/a-look-at-cryptovoxels/#buy-%26-sell&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;&lt;i data-feather=&quot;link&quot; class=&quot;link&quot;&gt;&lt;/i&gt;&lt;/a&gt;&lt;/h3&gt;
&lt;p&gt;A Metaverse would not be complete without an economy. The main thing people exchange in Cryptovoxels are the parcels themselves, which can be bought and sold on &lt;a href=&quot;https://opensea.io/assets/cryptovoxels?sortBy=assets_prod_main_price_asc&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;OpenSea&lt;/a&gt; and &lt;a href=&quot;https://tokentrove.com/Cryptovoxels&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;TokenTrove&lt;/a&gt;. On the &lt;a href=&quot;https://opensea.io/activity/cryptovoxels&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;OpeanSea activity page&lt;/a&gt;, you can see that 277 ETH (approx. $70,000) worth of parcels have been traded this week, and 8480 ETH (approx. $2,000.000) worth has been traded in total. On average, parcels have gone for 1.9 ETH (approx. $475).&lt;/p&gt;
&lt;div class=&quot;flex justify-center flex-wrap items-center full-width space-x-2 bg-white&quot;&gt;
  &lt;img src=&quot;https://fragosti.com/assets/img/cv-price-dist.png&quot; alt=&quot;Cryptovoxels Price Distribution&quot; class=&quot;my-4&quot; style=&quot;width: 350px&quot; /&gt;
  &lt;img src=&quot;https://fragosti.com/assets/img/cv-price-height.png&quot; alt=&quot;Cryptovoxels Price Over Height&quot; class=&quot;my-4&quot; style=&quot;width: 350px&quot; /&gt;
  &lt;img src=&quot;https://fragosti.com/assets/img/cv-price-area.png&quot; alt=&quot;Cryptovoxels Price Over Area&quot; class=&quot;my-4&quot; style=&quot;width: 350px&quot; /&gt;
&lt;/div&gt;
&lt;p&gt;Above you can see the distribution of the ETH prices (in wei) for settled trades, a plot of ETH price vs. parcel height, and a plot of ETH price vs. parcel area over the past month (May 2020) or so. While you do see a lot of sales occur at the 1.5 ETH (approx. $375) mark, you also see some parcels go for over 10 ETH (approx. $2,500)! The plots show that while there is some noise, price is generally correlated with the size of the parcel.&lt;/p&gt;
&lt;p&gt;Anecdotally, the prices of parcels have gotten much higher over the past year. If you want to investigate more, &lt;a href=&quot;https://andrewsteinwold.substack.com/p/cryptovoxels-investment-thoughts&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;Cryptovoxels Investment Thoughts&lt;/a&gt; and &lt;a href=&quot;https://andrewsteinwold.substack.com/p/how-to-value-virtual-assets&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;How to Value Virtual Assets&lt;/a&gt; go pretty in-depth.&lt;/p&gt;
&lt;p&gt;It&#39;s worth calling out that a lot more stuff is being exchanged in Cryptovoxels. For one, most of the world is an art gallery where the art is for sale. The art ranges from game collectibles (like CryptoKitties) to photography to classical art that has been tokenized.&lt;/p&gt;
&lt;div class=&quot;flex justify-center flex-wrap items-center full-width space-x-2&quot;&gt;
  &lt;img src=&quot;https://fragosti.com/assets/img/cv-gallery-1.jpg&quot; alt=&quot;Cryptovoxel Gallery 1&quot; class=&quot;my-4&quot; style=&quot;width: 350px&quot; /&gt;
  &lt;img src=&quot;https://fragosti.com/assets/img/cv-gallery-2.jpg&quot; alt=&quot;Cryptovoxels Gallery 2&quot; class=&quot;my-4&quot; style=&quot;width: 350px&quot; /&gt;
  &lt;img src=&quot;https://fragosti.com/assets/img/cv-gallery-3.jpg&quot; alt=&quot;Cryptovoxels Gallery 3&quot; class=&quot;my-4&quot; style=&quot;width: 350px&quot; /&gt;
&lt;/div&gt;
&lt;p&gt;On top of that, &lt;a href=&quot;https://www.cryptovoxels.com/wearables&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;wearables&lt;/a&gt; have gotten incredibly popular lately. Wearables are items that you can put onto your avatar (you can also &lt;a href=&quot;https://www.cryptovoxels.com/account/names&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;claim handles&lt;/a&gt;, and &lt;a href=&quot;https://www.cryptovoxels.com/account/colors&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;change your skin&lt;/a&gt; by the way). Entire &lt;a href=&quot;https://www.cryptovoxels.com/play?coords=W@134E,171N&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;malls&lt;/a&gt;, brands and promotional videos have emerged as a result. People are going nuts over these virtual products that are entirely generated by the community.&lt;/p&gt;
&lt;div class=&quot;flex justify-center flex-wrap items-center full-width space-x-2&quot;&gt;
  &lt;img src=&quot;https://fragosti.com/assets/img/cv-hats.jpg&quot; alt=&quot;Cryptovoxels Hat&quot; class=&quot;my-4&quot; style=&quot;width: 350px&quot; /&gt;
  &lt;img src=&quot;https://fragosti.com/assets/img/cv-car.jpg&quot; alt=&quot;Cryptovoxels Car&quot; class=&quot;my-4&quot; style=&quot;width: 350px&quot; /&gt;
  &lt;img src=&quot;https://fragosti.com/assets/img/cv-watches.jpg&quot; alt=&quot;Cryptovoxels Watch&quot; class=&quot;my-4&quot; style=&quot;width: 350px&quot; /&gt;
&lt;/div&gt;
&lt;p&gt;This is what it looks like when your avatar is completely decked out.&lt;/p&gt;
&lt;div class=&quot;flex justify-center&quot;&gt;
&lt;blockquote class=&quot;twitter-tweet&quot;&gt;&lt;a href=&quot;https://twitter.com/user/status/1267998303217688576&quot;&gt;&lt;/a&gt;&lt;/blockquote&gt;&lt;script async=&quot;&quot; src=&quot;https://platform.twitter.com/widgets.js&quot; charset=&quot;utf-8&quot;&gt;&lt;/script&gt;
&lt;/div&gt;
&lt;h2 id=&quot;how-to-get-a-parcel&quot; tabindex=&quot;-1&quot;&gt;How to get a parcel &lt;a class=&quot;header-anchor&quot; href=&quot;https://fragosti.com/posts/a-look-at-cryptovoxels/#how-to-get-a-parcel&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;&lt;i data-feather=&quot;link&quot; class=&quot;link&quot;&gt;&lt;/i&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;If the prices you see for parcels on OpenSea are a bit out of your price range, you should know that new parcels are minted every Tuesday at approximately 5pm PST. To get in on the action the best first step is to join the &lt;a href=&quot;https://discord.com/invite/Bv68xT4&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;Cryptovoxels Discord&lt;/a&gt;, where the &lt;code&gt;#general&lt;/code&gt; and &lt;code&gt;#new-island&lt;/code&gt; channels will be the most relevant.&lt;/p&gt;
&lt;p&gt;Every Tuesday the Cryptovoxels team releases new islands around Origin City. The process is likely to change in the future, but the way it works for now is that the team will bulk sell 20-30 new properties at prices from 1 ETH and above (perhaps lower, depending on the island).&lt;/p&gt;
&lt;p&gt;To see the parcels before they go on sale, you can check OpenSea for &lt;a href=&quot;https://opensea.io/assets/cryptovoxels?sortBy=assets_prod_main&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;&amp;quot;Recently Born&amp;quot; parcels&lt;/a&gt;, select the parcel that you&#39;re interested in, and press &amp;quot;View on Cryptovoxels&amp;quot; to visit the parcel itself. Once the sale goes live, you&#39;ll likely want to &lt;a href=&quot;https://opensea.io/assets/cryptovoxels?sortBy=assets_prod_main&amp;amp;refinementList%5B_tags%5D%5B0%5D=The%20Bronx&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;filter for that specific island, and sort by price&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;If you are technically savvy, I&#39;ve written a &lt;em&gt;very&lt;/em&gt; simple &lt;a href=&quot;https://github.com/fragosti/sea-sniper&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;script&lt;/a&gt; that will participate in the sales for you. However, unless you understand the code, I recommend taking the OpenSea approach. In my experience, it has been very easy to get a parcel this way.&lt;/p&gt;
&lt;p&gt;When you succeed feel free to come say hi at &lt;a href=&quot;https://www.cryptovoxels.com/parcels/1994&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;my parcel&lt;/a&gt;!&lt;/p&gt;
&lt;h2 id=&quot;final-thoughts&quot; tabindex=&quot;-1&quot;&gt;Final thoughts &lt;a class=&quot;header-anchor&quot; href=&quot;https://fragosti.com/posts/a-look-at-cryptovoxels/#final-thoughts&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;&lt;i data-feather=&quot;link&quot; class=&quot;link&quot;&gt;&lt;/i&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;It&#39;s not too late to join the party. The community is very welcoming and the Cryptovoxels team seems to be always implementing feature requests from people in the &lt;a href=&quot;https://discord.com/invite/Bv68xT4&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;Discord&lt;/a&gt; channel. It&#39;s a lot of fun to see it evolve, and I&#39;m sure it will be a lot different just a couple of months from now.&lt;/p&gt;
&lt;p&gt;As mentioned above, new parcels are being added all the time. You can check out some awesome parcel stats at this &lt;a href=&quot;https://explore.duneanalytics.com/public/dashboards/7wZSRLMluMWXSQJPYEVQVheZWBOXDlt8GEeZk05C&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;Dune Analytics dashboard&lt;/a&gt;.&lt;/p&gt;
&lt;div class=&quot;flex justify-center&quot;&gt;
&lt;blockquote class=&quot;twitter-tweet&quot;&gt;&lt;a href=&quot;https://twitter.com/user/status/1271269544993140737&quot;&gt;&lt;/a&gt;&lt;/blockquote&gt;&lt;script async=&quot;&quot; src=&quot;https://platform.twitter.com/widgets.js&quot; charset=&quot;utf-8&quot;&gt;&lt;/script&gt;
&lt;/div&gt;
</content>
  </entry>
  
  <entry>
    <title>How This Blog is Made</title>
    <link href="https://fragosti.com/posts/how-this-blog-is-made/"/>
    <updated>2020-06-01T00:00:00Z</updated>
    <id>https://fragosti.com/posts/how-this-blog-is-made/</id>
    <description>Building a Statically Generated Blog with Eleventy</description>
    <content type="html">&lt;p&gt;Long story short, this blog is implemented using &lt;a href=&quot;https://www.11ty.dev/&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;Eleventy&lt;/a&gt;, specifically by using &lt;a href=&quot;https://github.com/eastslopestudio/eleventy-starter&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;eleventy-starter&lt;/a&gt; as a starting point. Feel free to check out &lt;a href=&quot;https://github.com/fragosti/blog&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;the code&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Before landing and settling on Eleventy I checked out the extremely popular &lt;a href=&quot;https://www.gatsbyjs.org/&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;Gatsby&lt;/a&gt;. As someone accustomed to React and Typescript it seemed like the natural choice. Going through the docs was easy enough, and I even &lt;a href=&quot;https://github.com/LekoArts/gatsby-themes/tree/master/themes/gatsby-theme-minimal-blog&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;found a theme&lt;/a&gt; that I ended up mostly keeping for the final implementation.&lt;/p&gt;
&lt;p&gt;However, I found the API complex and confusing. While I was familiar with most of the frameworks used, I couldn&#39;t wrap my head around how it all fit together. In particular, implementing a simple collection of posts took way too much ceremony and involved a &lt;a href=&quot;https://graphql.org/&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;GraphQL&lt;/a&gt; API. While I love GraphQL, it all seemed overkill to me, and so I gravitated towards Eleventy because it seemed like the simplest tool for the job.&lt;/p&gt;
&lt;h2 id=&quot;a-look-into-eleventy&quot; tabindex=&quot;-1&quot;&gt;A Look into Eleventy &lt;a class=&quot;header-anchor&quot; href=&quot;https://fragosti.com/posts/how-this-blog-is-made/#a-look-into-eleventy&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;&lt;i data-feather=&quot;link&quot; class=&quot;link&quot;&gt;&lt;/i&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;Eleventy was a pleasure to work with. I know there are other great solutions out there (&lt;a href=&quot;https://gohugo.io/&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;Hugo&lt;/a&gt; and &lt;a href=&quot;https://nextjs.org/&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;NextJS&lt;/a&gt; come to mind), but I really didn&#39;t have many complaints while building this blog.
To learn more about the basics, I recommend the &lt;a href=&quot;https://www.11ty.dev/docs/tutorials/&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;tutorials&lt;/a&gt; or &lt;a href=&quot;https://www.digitalocean.com/community/tutorials/js-eleventy&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;A Brief Tour of the Eleventy Static Site Generator&lt;/a&gt; by Digital Ocean.&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;11ty is easy to use, doesn’t get in your way and spits out exactly what you put in, so there’s no surprise or hidden code bloat. At its most basic, 11ty just compiles files it finds from your working directory into static HTML files. Plus, since it’s written in JavaScript, you gain access to the whole of npm in terms of packages you can use in your project.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;As a sample, this is basically how you would implement a page showing your &lt;a href=&quot;https://www.11ty.dev/docs/collections/&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;collection&lt;/a&gt; of posts in Eleventy.&lt;/p&gt;
&lt;p&gt;First you would create a &lt;code&gt;my-first-post.md&lt;/code&gt; file.&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;---
layout: post.njk
title: My First Blog Post
date: 2019-11-30
tags: post
---

My first blog post content.
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;And because of the &lt;code&gt;tags&lt;/code&gt; field, that post content and meta-data is available in templates to render in &lt;code&gt;collections.post&lt;/code&gt;.&lt;/p&gt;
&lt;pre class=&quot;language-html&quot;&gt;&lt;code class=&quot;language-html&quot;&gt;&lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token punctuation&quot;&gt;&amp;lt;&lt;/span&gt;ul&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;  {%- for post in collections.post | reverse | limit(postsListLimit) -%}&lt;br /&gt;  &lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token punctuation&quot;&gt;&amp;lt;&lt;/span&gt;li&lt;/span&gt; &lt;span class=&quot;token attr-name&quot;&gt;class&lt;/span&gt;&lt;span class=&quot;token attr-value&quot;&gt;&lt;span class=&quot;token punctuation attr-equals&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;&quot;&lt;/span&gt;py-3&lt;span class=&quot;token punctuation&quot;&gt;&quot;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;    &lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token punctuation&quot;&gt;&amp;lt;&lt;/span&gt;h3&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;      &lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token punctuation&quot;&gt;&amp;lt;&lt;/span&gt;a&lt;/span&gt; &lt;span class=&quot;token attr-name&quot;&gt;href&lt;/span&gt;&lt;span class=&quot;token attr-value&quot;&gt;&lt;span class=&quot;token punctuation attr-equals&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;&quot;&lt;/span&gt;{{ post.url | url }}&lt;span class=&quot;token punctuation&quot;&gt;&quot;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;&gt;&lt;/span&gt;&lt;/span&gt;{{ post.data.title }}&lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token punctuation&quot;&gt;&amp;lt;/&lt;/span&gt;a&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;    &lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token punctuation&quot;&gt;&amp;lt;/&lt;/span&gt;h3&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;    &lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token punctuation&quot;&gt;&amp;lt;&lt;/span&gt;label&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;      {{ post.date | dateReadable }}&lt;br /&gt;    &lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token punctuation&quot;&gt;&amp;lt;/&lt;/span&gt;label&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;    &lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token punctuation&quot;&gt;&amp;lt;&lt;/span&gt;p&lt;/span&gt; &lt;span class=&quot;token attr-name&quot;&gt;class&lt;/span&gt;&lt;span class=&quot;token attr-value&quot;&gt;&lt;span class=&quot;token punctuation attr-equals&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;&quot;&lt;/span&gt;line-clamp py-1&lt;span class=&quot;token punctuation&quot;&gt;&quot;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;      {% excerpt post %}&lt;br /&gt;    &lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token punctuation&quot;&gt;&amp;lt;/&lt;/span&gt;p&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;  &lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token punctuation&quot;&gt;&amp;lt;/&lt;/span&gt;li&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;  {%- endfor -%}&lt;br /&gt;&lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token punctuation&quot;&gt;&amp;lt;/&lt;/span&gt;ul&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;What I like about Eleventy is that it comes with sane defaults, and that the &amp;quot;guts&amp;quot; of the blog are taken care of for you.&lt;/p&gt;
&lt;h2 id=&quot;the-stack&quot; tabindex=&quot;-1&quot;&gt;The Stack &lt;a class=&quot;header-anchor&quot; href=&quot;https://fragosti.com/posts/how-this-blog-is-made/#the-stack&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;&lt;i data-feather=&quot;link&quot; class=&quot;link&quot;&gt;&lt;/i&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;Eleventy provides the skeleton for creating a blog, but doesn&#39;t have opinions on styling, bundling, etc...&lt;/p&gt;
&lt;p&gt;For styling I used &lt;a href=&quot;https://tailwindcss.com/&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;Tailwind CSS&lt;/a&gt; with custom fonts, and a variant for &lt;a href=&quot;https://fragosti.com/posts/how-this-blog-is-made/#dark-and-light-mode&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;dark-mode&lt;/a&gt;. This kept the custom styles I had to write in the project to a minimum.&lt;/p&gt;
&lt;p&gt;For the bundler, I opted for &lt;a href=&quot;https://parceljs.org/&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;ParcelJS&lt;/a&gt;. While Eleventy takes care of processing the markdown and HTML, Parcel takes care of processing the Javascript, CSS and even &lt;a href=&quot;https://fragosti.com/posts/how-this-blog-is-made/#image-optimization-and-lazy-loading&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;minifies and optimizes my images&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Finally, for the little custom Javascript on the site, I used &lt;a href=&quot;https://stimulusjs.org/&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;Stimulus&lt;/a&gt; (created by the folks at Basecamp). I can&#39;t say that it was a concious choice – it was what came by default in the starter, and worked well enough.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://github.com/turbolinks/turbolinks&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;Turbolinks&lt;/a&gt; is in the mix as well.&lt;/p&gt;
&lt;p&gt;All this is deployed to &lt;a href=&quot;https://www.netlify.com/&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;Netlify&lt;/a&gt;! The few icons you see are all from &lt;a href=&quot;http://feathericons.com/&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;Feather Icons&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Even when going deeper with Eleventy, and trying to implement more custom functionality, I&#39;ve found I can get things done relatively quickly. Below are some examples.&lt;/p&gt;
&lt;h2 id=&quot;creating-%22components%22&quot; tabindex=&quot;-1&quot;&gt;Creating &amp;quot;Components&amp;quot; &lt;a class=&quot;header-anchor&quot; href=&quot;https://fragosti.com/posts/how-this-blog-is-made/#creating-%22components%22&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;&lt;i data-feather=&quot;link&quot; class=&quot;link&quot;&gt;&lt;/i&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;If you&#39;re used to writing React, you&#39;re familiar with creating &amp;quot;components&amp;quot;. This is not 100% supported in Eleventy, but you can get very close (and there is a &lt;a href=&quot;https://github.com/11ty/eleventy/issues/189&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;GitHub issue&lt;/a&gt; about it).
While I&#39;ve seen a few approaches, I ended up using the one I found most prominently used in the official &lt;a href=&quot;https://github.com/11ty/eleventy-base-blog/&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;eleventy-base-blog&lt;/a&gt;.
The gist is to create &lt;a href=&quot;https://rphunt.github.io/eleventy-walkthrough/partials-and-include.html&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;partial templates&lt;/a&gt;, and include them in full pages or layouts. We saw an example of a partial template earlier. This time around, you may notice that the template depends on an external variable &lt;code&gt;postsListLimit&lt;/code&gt;, which will limit the number of posts rendered when available.&lt;/p&gt;
&lt;pre class=&quot;language-html&quot;&gt;&lt;code class=&quot;language-html&quot;&gt;&lt;span class=&quot;highlight-line&quot;&gt;&lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token punctuation&quot;&gt;&amp;lt;&lt;/span&gt;ul&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;mark class=&quot;highlight-line highlight-line-active&quot;&gt;  {%- for post in collections.post | reverse | limit(postsListLimit) -%}&lt;/mark&gt;&lt;br /&gt;&lt;span class=&quot;highlight-line&quot;&gt;  &lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token punctuation&quot;&gt;&amp;lt;&lt;/span&gt;li&lt;/span&gt; &lt;span class=&quot;token attr-name&quot;&gt;class&lt;/span&gt;&lt;span class=&quot;token attr-value&quot;&gt;&lt;span class=&quot;token punctuation attr-equals&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;&quot;&lt;/span&gt;py-3&lt;span class=&quot;token punctuation&quot;&gt;&quot;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class=&quot;highlight-line&quot;&gt;    &lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token punctuation&quot;&gt;&amp;lt;&lt;/span&gt;h3&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class=&quot;highlight-line&quot;&gt;      &lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token punctuation&quot;&gt;&amp;lt;&lt;/span&gt;a&lt;/span&gt; &lt;span class=&quot;token attr-name&quot;&gt;href&lt;/span&gt;&lt;span class=&quot;token attr-value&quot;&gt;&lt;span class=&quot;token punctuation attr-equals&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;&quot;&lt;/span&gt;{{ post.url | url }}&lt;span class=&quot;token punctuation&quot;&gt;&quot;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;&gt;&lt;/span&gt;&lt;/span&gt;{{ post.data.title }}&lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token punctuation&quot;&gt;&amp;lt;/&lt;/span&gt;a&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class=&quot;highlight-line&quot;&gt;    &lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token punctuation&quot;&gt;&amp;lt;/&lt;/span&gt;h3&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class=&quot;highlight-line&quot;&gt;    &lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token punctuation&quot;&gt;&amp;lt;&lt;/span&gt;label&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class=&quot;highlight-line&quot;&gt;      {{ post.date | dateReadable }}&lt;/span&gt;&lt;br /&gt;&lt;span class=&quot;highlight-line&quot;&gt;    &lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token punctuation&quot;&gt;&amp;lt;/&lt;/span&gt;label&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class=&quot;highlight-line&quot;&gt;    &lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token punctuation&quot;&gt;&amp;lt;&lt;/span&gt;p&lt;/span&gt; &lt;span class=&quot;token attr-name&quot;&gt;class&lt;/span&gt;&lt;span class=&quot;token attr-value&quot;&gt;&lt;span class=&quot;token punctuation attr-equals&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;&quot;&lt;/span&gt;line-clamp py-1&lt;span class=&quot;token punctuation&quot;&gt;&quot;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class=&quot;highlight-line&quot;&gt;      {% excerpt post %}&lt;/span&gt;&lt;br /&gt;&lt;span class=&quot;highlight-line&quot;&gt;    &lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token punctuation&quot;&gt;&amp;lt;/&lt;/span&gt;p&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class=&quot;highlight-line&quot;&gt;  &lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token punctuation&quot;&gt;&amp;lt;/&lt;/span&gt;li&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class=&quot;highlight-line&quot;&gt;  {%- endfor -%}&lt;/span&gt;&lt;br /&gt;&lt;span class=&quot;highlight-line&quot;&gt;&lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token punctuation&quot;&gt;&amp;lt;/&lt;/span&gt;ul&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;The &lt;code&gt;limit&lt;/code&gt; &lt;a href=&quot;https://www.11ty.dev/docs/filters/&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;filter&lt;/a&gt; is available below.&lt;/p&gt;
&lt;pre class=&quot;language-js&quot;&gt;&lt;code class=&quot;language-js&quot;&gt;eleventyConfig&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;token function&quot;&gt;addFilter&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token string&quot;&gt;&#39;limit&#39;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;token keyword&quot;&gt;function&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token parameter&quot;&gt;array&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt; limit&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;&lt;br /&gt;  &lt;span class=&quot;token keyword&quot;&gt;if&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token operator&quot;&gt;!&lt;/span&gt;limit&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;&lt;br /&gt;    &lt;span class=&quot;token keyword&quot;&gt;return&lt;/span&gt; array&lt;br /&gt;  &lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;&lt;br /&gt;  &lt;span class=&quot;token keyword&quot;&gt;return&lt;/span&gt; array&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;token function&quot;&gt;slice&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token number&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt; limit&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;br /&gt;&lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Using your partial template, and defining &lt;code&gt;postsListLimit&lt;/code&gt;, can be seen below.&lt;/p&gt;
&lt;pre class=&quot;language-html&quot;&gt;&lt;code class=&quot;language-html&quot;&gt;&lt;span class=&quot;highlight-line&quot;&gt;&lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token punctuation&quot;&gt;&amp;lt;&lt;/span&gt;div&lt;/span&gt; &lt;span class=&quot;token attr-name&quot;&gt;class&lt;/span&gt;&lt;span class=&quot;token attr-value&quot;&gt;&lt;span class=&quot;token punctuation attr-equals&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;&quot;&lt;/span&gt;divide-y divide-gray-500 mb-5 mt-8&lt;span class=&quot;token punctuation&quot;&gt;&quot;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class=&quot;highlight-line&quot;&gt;  &lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token punctuation&quot;&gt;&amp;lt;&lt;/span&gt;div&lt;/span&gt; &lt;span class=&quot;token attr-name&quot;&gt;class&lt;/span&gt;&lt;span class=&quot;token attr-value&quot;&gt;&lt;span class=&quot;token punctuation attr-equals&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;&quot;&lt;/span&gt;flex flex-row justify-between py-2&lt;span class=&quot;token punctuation&quot;&gt;&quot;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class=&quot;highlight-line&quot;&gt;    &lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token punctuation&quot;&gt;&amp;lt;&lt;/span&gt;h2&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;&gt;&lt;/span&gt;&lt;/span&gt;Latest Posts&lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token punctuation&quot;&gt;&amp;lt;/&lt;/span&gt;h2&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class=&quot;highlight-line&quot;&gt;    &lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token punctuation&quot;&gt;&amp;lt;&lt;/span&gt;a&lt;/span&gt; &lt;span class=&quot;token attr-name&quot;&gt;class&lt;/span&gt;&lt;span class=&quot;token attr-value&quot;&gt;&lt;span class=&quot;token punctuation attr-equals&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;&quot;&lt;/span&gt;link self-center&lt;span class=&quot;token punctuation&quot;&gt;&quot;&lt;/span&gt;&lt;/span&gt; &lt;span class=&quot;token attr-name&quot;&gt;href&lt;/span&gt;&lt;span class=&quot;token attr-value&quot;&gt;&lt;span class=&quot;token punctuation attr-equals&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;&quot;&lt;/span&gt;/posts&lt;span class=&quot;token punctuation&quot;&gt;&quot;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;&gt;&lt;/span&gt;&lt;/span&gt;Read all posts&lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token punctuation&quot;&gt;&amp;lt;/&lt;/span&gt;a&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class=&quot;highlight-line&quot;&gt;  &lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token punctuation&quot;&gt;&amp;lt;/&lt;/span&gt;div&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class=&quot;highlight-line&quot;&gt;  &lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token punctuation&quot;&gt;&amp;lt;&lt;/span&gt;div&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token punctuation&quot;&gt;&amp;lt;/&lt;/span&gt;div&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class=&quot;highlight-line&quot;&gt;&lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token punctuation&quot;&gt;&amp;lt;/&lt;/span&gt;div&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;mark class=&quot;highlight-line highlight-line-active&quot;&gt;{% set postsListLimit = 3 %} {% include &quot;postslist.njk&quot; %}&lt;/mark&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;As long as your partials are in your &lt;code&gt;_includes&lt;/code&gt; &lt;a href=&quot;https://www.11ty.dev/docs/config/#directory-for-includes&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;directory&lt;/a&gt;, you&#39;ll be able to import them.
This &lt;strong&gt;feels&lt;/strong&gt; close enough to importing a React component and rendering it with props.&lt;/p&gt;
&lt;h2 id=&quot;dark-and-light-mode&quot; tabindex=&quot;-1&quot;&gt;Dark and Light Mode &lt;a class=&quot;header-anchor&quot; href=&quot;https://fragosti.com/posts/how-this-blog-is-made/#dark-and-light-mode&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;&lt;i data-feather=&quot;link&quot; class=&quot;link&quot;&gt;&lt;/i&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;A feature you see almost everywhere nowadays is the ability to switch between dark and light mode. While Tailwind CSS provides an example of &lt;a href=&quot;https://tailwindcss.com/docs/breakpoints/#dark-mode&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;implementing dark mode with a media query&lt;/a&gt; for browsers and operating systems that support it, I wanted to create a simple toggle (the moon or sun icon in the upper right corner of this blog).&lt;/p&gt;
&lt;p&gt;On the styling side, there is a plugin called &lt;a href=&quot;https://github.com/ChanceArthur/tailwindcss-dark-mode&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;tailwindcss-dark-mode&lt;/a&gt; that does a lot of the heavy lifting for you. These are the relevant parts of my &lt;code&gt;tailwind.config.js&lt;/code&gt;.&lt;/p&gt;
&lt;pre class=&quot;language-js&quot;&gt;&lt;code class=&quot;language-js&quot;&gt;&lt;span class=&quot;highlight-line&quot;&gt;&lt;span class=&quot;token keyword&quot;&gt;const&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt; theme&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt; variants &lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt; &lt;span class=&quot;token operator&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;token function&quot;&gt;require&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token string&quot;&gt;&#39;tailwindcss/defaultConfig&#39;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class=&quot;highlight-line&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class=&quot;highlight-line&quot;&gt;module&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;exports &lt;span class=&quot;token operator&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class=&quot;highlight-line&quot;&gt;  purge&lt;span class=&quot;token operator&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;token string&quot;&gt;&#39;./src/assets/js/**/*.js&#39;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&#39;./src/**/*.njk&#39;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&#39;./src/**/*.md&#39;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;]&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class=&quot;highlight-line&quot;&gt;  theme&lt;span class=&quot;token operator&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class=&quot;highlight-line&quot;&gt;    extend&lt;span class=&quot;token operator&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class=&quot;highlight-line&quot;&gt;      fontFamily&lt;span class=&quot;token operator&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class=&quot;highlight-line&quot;&gt;        primary&lt;span class=&quot;token operator&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;token string&quot;&gt;&quot;&#39;Inter&#39;&quot;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;token operator&quot;&gt;...&lt;/span&gt;theme&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;fontFamily&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;sans&lt;span class=&quot;token punctuation&quot;&gt;]&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class=&quot;highlight-line&quot;&gt;        secondary&lt;span class=&quot;token operator&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;token string&quot;&gt;&quot;&#39;Noto Sans&#39;&quot;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;token operator&quot;&gt;...&lt;/span&gt;theme&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;fontFamily&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;sans&lt;span class=&quot;token punctuation&quot;&gt;]&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class=&quot;highlight-line&quot;&gt;      &lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class=&quot;highlight-line&quot;&gt;    &lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class=&quot;highlight-line&quot;&gt;  &lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;mark class=&quot;highlight-line highlight-line-active&quot;&gt;  variants&lt;span class=&quot;token operator&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;&lt;/mark&gt;&lt;br /&gt;&lt;mark class=&quot;highlight-line highlight-line-active&quot;&gt;    borderColor&lt;span class=&quot;token operator&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;token string&quot;&gt;&#39;dark&#39;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&#39;dark-hover&#39;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;token operator&quot;&gt;...&lt;/span&gt;variants&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;borderColor&lt;span class=&quot;token punctuation&quot;&gt;]&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt;&lt;/mark&gt;&lt;br /&gt;&lt;mark class=&quot;highlight-line highlight-line-active&quot;&gt;    textColor&lt;span class=&quot;token operator&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;token string&quot;&gt;&#39;dark&#39;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&#39;dark-hover&#39;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;token operator&quot;&gt;...&lt;/span&gt;variants&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;textColor&lt;span class=&quot;token punctuation&quot;&gt;]&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt;&lt;/mark&gt;&lt;br /&gt;&lt;mark class=&quot;highlight-line highlight-line-active&quot;&gt;    backgroundColor&lt;span class=&quot;token operator&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;token string&quot;&gt;&#39;dark&#39;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&#39;dark-hover&#39;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;token operator&quot;&gt;...&lt;/span&gt;variants&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;backgroundColor&lt;span class=&quot;token punctuation&quot;&gt;]&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt;&lt;/mark&gt;&lt;br /&gt;&lt;mark class=&quot;highlight-line highlight-line-active&quot;&gt;  &lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt;&lt;/mark&gt;&lt;br /&gt;&lt;mark class=&quot;highlight-line highlight-line-active&quot;&gt;  plugins&lt;span class=&quot;token operator&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;token function&quot;&gt;require&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token string&quot;&gt;&#39;tailwindcss-dark-mode&#39;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;]&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt;&lt;/mark&gt;&lt;br /&gt;&lt;mark class=&quot;highlight-line highlight-line-active&quot;&gt;&lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;&lt;/mark&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;The &lt;code&gt;variants&lt;/code&gt; section tells Tailwind CSS to create &lt;code&gt;dark&lt;/code&gt; and &lt;code&gt;dark-hover&lt;/code&gt; utility classes for border, text and background colors, which is all I need.
As you might expect, the &lt;code&gt;plugins&lt;/code&gt; section imports and uses the plugin.
What this means is that you can apply CSS class names such as &lt;code&gt;dark:bg-gray-900&lt;/code&gt; or in my case, write CSS like this.&lt;/p&gt;
&lt;pre class=&quot;language-css&quot;&gt;&lt;code class=&quot;language-css&quot;&gt;&lt;span class=&quot;token selector&quot;&gt;.mode-dark&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;&lt;br /&gt;  &lt;span class=&quot;token selector&quot;&gt;body&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;&lt;br /&gt;    &lt;span class=&quot;token atrule&quot;&gt;&lt;span class=&quot;token rule&quot;&gt;@apply&lt;/span&gt; text-white&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;  &lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;&lt;br /&gt;  &lt;span class=&quot;token selector&quot;&gt;.link&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;&lt;br /&gt;    &lt;span class=&quot;token atrule&quot;&gt;&lt;span class=&quot;token rule&quot;&gt;@apply&lt;/span&gt; text-gray-600&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;  &lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;&lt;br /&gt;  &lt;span class=&quot;token selector&quot;&gt;.link:hover&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;&lt;br /&gt;    &lt;span class=&quot;token atrule&quot;&gt;&lt;span class=&quot;token rule&quot;&gt;@apply&lt;/span&gt; text-white&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;  &lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;&lt;br /&gt;  &lt;span class=&quot;token selector&quot;&gt;p&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;&lt;br /&gt;    &lt;span class=&quot;token atrule&quot;&gt;&lt;span class=&quot;token rule&quot;&gt;@apply&lt;/span&gt; text-gray-400&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;  &lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;&lt;br /&gt;  &lt;span class=&quot;token selector&quot;&gt;p a&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;&lt;br /&gt;    &lt;span class=&quot;token atrule&quot;&gt;&lt;span class=&quot;token rule&quot;&gt;@apply&lt;/span&gt; text-indigo-300&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;  &lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;&lt;br /&gt;  &lt;span class=&quot;token selector&quot;&gt;label&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;&lt;br /&gt;    &lt;span class=&quot;token atrule&quot;&gt;&lt;span class=&quot;token rule&quot;&gt;@apply&lt;/span&gt; text-gray-600&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;  &lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;&lt;br /&gt;  &lt;span class=&quot;token selector&quot;&gt;h3&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;&lt;br /&gt;    &lt;span class=&quot;token atrule&quot;&gt;&lt;span class=&quot;token rule&quot;&gt;@apply&lt;/span&gt; text-gray-100&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;  &lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;&lt;br /&gt;  &lt;span class=&quot;token selector&quot;&gt;blockquote&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;&lt;br /&gt;    &lt;span class=&quot;token atrule&quot;&gt;&lt;span class=&quot;token rule&quot;&gt;@apply&lt;/span&gt; border-indigo-300&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;  &lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;&lt;br /&gt;&lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;That &lt;code&gt;.mode-dark&lt;/code&gt; CSS class is the default class used by &lt;a href=&quot;https://github.com/ChanceArthur/tailwindcss-dark-mode&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;tailwindcss-dark-mode&lt;/a&gt;, but how does that class get added to your &lt;code&gt;&amp;lt;html&amp;gt;&lt;/code&gt; element? That is entirely up to you.
In my case, I went ahead and implemented it in Stimulus. The controller is a simple class that allows you to toggle dark mode on and off. It also persists the state to &lt;code&gt;localStorage&lt;/code&gt;, so that you can maintain the same mode across sessions.&lt;/p&gt;
&lt;pre class=&quot;language-js&quot;&gt;&lt;code class=&quot;language-js&quot;&gt;&lt;span class=&quot;token keyword&quot;&gt;import&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt; Controller &lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt; &lt;span class=&quot;token keyword&quot;&gt;from&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&#39;stimulus&#39;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span class=&quot;token keyword&quot;&gt;export&lt;/span&gt; &lt;span class=&quot;token keyword&quot;&gt;default&lt;/span&gt; &lt;span class=&quot;token keyword&quot;&gt;class&lt;/span&gt; &lt;span class=&quot;token class-name&quot;&gt;extends&lt;/span&gt; Controller &lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;&lt;br /&gt;  &lt;span class=&quot;token keyword&quot;&gt;static&lt;/span&gt; targets &lt;span class=&quot;token operator&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;token string&quot;&gt;&#39;lightToggle&#39;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&#39;darkToggle&#39;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;]&lt;/span&gt;&lt;br /&gt;  &lt;span class=&quot;token function&quot;&gt;initialize&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;&lt;br /&gt;    &lt;span class=&quot;token keyword&quot;&gt;const&lt;/span&gt; isLightMode &lt;span class=&quot;token operator&quot;&gt;=&lt;/span&gt;&lt;br /&gt;      &lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;localStorage &lt;span class=&quot;token operator&quot;&gt;&amp;amp;&amp;amp;&lt;/span&gt; localStorage&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;token function&quot;&gt;getItem&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token string&quot;&gt;&#39;isLightMode&#39;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt; &lt;span class=&quot;token operator&quot;&gt;===&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&#39;true&#39;&lt;/span&gt;&lt;br /&gt;    &lt;span class=&quot;token keyword&quot;&gt;if&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;isLightMode&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;&lt;br /&gt;      &lt;span class=&quot;token keyword&quot;&gt;this&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;token function&quot;&gt;useLightMode&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;br /&gt;    &lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;&lt;br /&gt;  &lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;&lt;br /&gt;  &lt;span class=&quot;token function&quot;&gt;useDarkMode&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;&lt;br /&gt;    document&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;documentElement&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;classList&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;token function&quot;&gt;add&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token string&quot;&gt;&#39;mode-dark&#39;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;br /&gt;    localStorage&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;token function&quot;&gt;setItem&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token string&quot;&gt;&#39;isLightMode&#39;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;token boolean&quot;&gt;false&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;br /&gt;    &lt;span class=&quot;token keyword&quot;&gt;this&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;darkToggleTarget&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;classList&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;token function&quot;&gt;add&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token string&quot;&gt;&#39;hidden&#39;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;br /&gt;    &lt;span class=&quot;token keyword&quot;&gt;this&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;lightToggleTarget&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;classList&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;token function&quot;&gt;remove&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token string&quot;&gt;&#39;hidden&#39;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;br /&gt;  &lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;&lt;br /&gt;  &lt;span class=&quot;token function&quot;&gt;useLightMode&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;&lt;br /&gt;    document&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;documentElement&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;classList&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;token function&quot;&gt;remove&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token string&quot;&gt;&#39;mode-dark&#39;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;br /&gt;    localStorage&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;token function&quot;&gt;setItem&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token string&quot;&gt;&#39;isLightMode&#39;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;token boolean&quot;&gt;true&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;br /&gt;    &lt;span class=&quot;token keyword&quot;&gt;this&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;darkToggleTarget&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;classList&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;token function&quot;&gt;remove&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token string&quot;&gt;&#39;hidden&#39;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;br /&gt;    &lt;span class=&quot;token keyword&quot;&gt;this&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;lightToggleTarget&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;classList&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;token function&quot;&gt;add&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token string&quot;&gt;&#39;hidden&#39;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;br /&gt;  &lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;&lt;br /&gt;&lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;The corresponding HTML is:&lt;/p&gt;
&lt;pre class=&quot;language-html&quot;&gt;&lt;code class=&quot;language-html&quot;&gt;&lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token punctuation&quot;&gt;&amp;lt;&lt;/span&gt;div&lt;/span&gt; &lt;span class=&quot;token attr-name&quot;&gt;data-controller&lt;/span&gt;&lt;span class=&quot;token attr-value&quot;&gt;&lt;span class=&quot;token punctuation attr-equals&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;&quot;&lt;/span&gt;dark-mode-controller&lt;span class=&quot;token punctuation&quot;&gt;&quot;&lt;/span&gt;&lt;/span&gt; &lt;span class=&quot;token attr-name&quot;&gt;class&lt;/span&gt;&lt;span class=&quot;token attr-value&quot;&gt;&lt;span class=&quot;token punctuation attr-equals&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;&quot;&lt;/span&gt;link mt-8 mb-6&lt;span class=&quot;token punctuation&quot;&gt;&quot;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;  &lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token punctuation&quot;&gt;&amp;lt;&lt;/span&gt;i&lt;/span&gt;&lt;br /&gt;    &lt;span class=&quot;token attr-name&quot;&gt;data-feather&lt;/span&gt;&lt;span class=&quot;token attr-value&quot;&gt;&lt;span class=&quot;token punctuation attr-equals&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;&quot;&lt;/span&gt;moon&lt;span class=&quot;token punctuation&quot;&gt;&quot;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;    &lt;span class=&quot;token attr-name&quot;&gt;data-dark-mode-controller-target&lt;/span&gt;&lt;span class=&quot;token attr-value&quot;&gt;&lt;span class=&quot;token punctuation attr-equals&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;&quot;&lt;/span&gt;darkToggle&lt;span class=&quot;token punctuation&quot;&gt;&quot;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;    &lt;span class=&quot;token attr-name&quot;&gt;class&lt;/span&gt;&lt;span class=&quot;token attr-value&quot;&gt;&lt;span class=&quot;token punctuation attr-equals&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;&quot;&lt;/span&gt;hidden&lt;span class=&quot;token punctuation&quot;&gt;&quot;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;    &lt;span class=&quot;token attr-name&quot;&gt;data-action&lt;/span&gt;&lt;span class=&quot;token attr-value&quot;&gt;&lt;span class=&quot;token punctuation attr-equals&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;&quot;&lt;/span&gt;click-&gt;dark-mode-controller#useDarkMode&lt;span class=&quot;token punctuation&quot;&gt;&quot;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;  &lt;span class=&quot;token punctuation&quot;&gt;&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token punctuation&quot;&gt;&amp;lt;/&lt;/span&gt;i&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;  &lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token punctuation&quot;&gt;&amp;lt;&lt;/span&gt;i&lt;/span&gt;&lt;br /&gt;    &lt;span class=&quot;token attr-name&quot;&gt;data-feather&lt;/span&gt;&lt;span class=&quot;token attr-value&quot;&gt;&lt;span class=&quot;token punctuation attr-equals&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;&quot;&lt;/span&gt;sun&lt;span class=&quot;token punctuation&quot;&gt;&quot;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;    &lt;span class=&quot;token attr-name&quot;&gt;data-target&lt;/span&gt;&lt;span class=&quot;token attr-value&quot;&gt;&lt;span class=&quot;token punctuation attr-equals&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;&quot;&lt;/span&gt;dark-mode-controller.lightToggle&lt;span class=&quot;token punctuation&quot;&gt;&quot;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;    &lt;span class=&quot;token attr-name&quot;&gt;data-action&lt;/span&gt;&lt;span class=&quot;token attr-value&quot;&gt;&lt;span class=&quot;token punctuation attr-equals&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;&quot;&lt;/span&gt;click-&gt;dark-mode-controller#useLightMode&lt;span class=&quot;token punctuation&quot;&gt;&quot;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;  &lt;span class=&quot;token punctuation&quot;&gt;&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token punctuation&quot;&gt;&amp;lt;/&lt;/span&gt;i&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token punctuation&quot;&gt;&amp;lt;/&lt;/span&gt;div&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;And don&#39;t forget to initialize Stimulus&lt;/p&gt;
&lt;pre class=&quot;language-js&quot;&gt;&lt;code class=&quot;language-js&quot;&gt;&lt;span class=&quot;token keyword&quot;&gt;import&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt; Application &lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt; &lt;span class=&quot;token keyword&quot;&gt;from&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&#39;stimulus&#39;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span class=&quot;token keyword&quot;&gt;import&lt;/span&gt; DarkModeController &lt;span class=&quot;token keyword&quot;&gt;from&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&#39;./controllers/dark_mode_toggle&#39;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span class=&quot;token keyword&quot;&gt;const&lt;/span&gt; application &lt;span class=&quot;token operator&quot;&gt;=&lt;/span&gt; Application&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;token function&quot;&gt;start&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;br /&gt;application&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;token function&quot;&gt;register&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token string&quot;&gt;&#39;dark-mode-controller&#39;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt; DarkModeController&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;h2 id=&quot;image-optimization-and-lazy-loading&quot; tabindex=&quot;-1&quot;&gt;Image Optimization and Lazy-Loading &lt;a class=&quot;header-anchor&quot; href=&quot;https://fragosti.com/posts/how-this-blog-is-made/#image-optimization-and-lazy-loading&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;&lt;i data-feather=&quot;link&quot; class=&quot;link&quot;&gt;&lt;/i&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;Turns out images are whole thing. You can spend a lot of time creating a system that optimizes and re-sizes your images and makes sure that the right image dimensions are served to the right devices. Eleventy even &lt;a href=&quot;https://github.com/11ty/eleventy-img&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;has an official plugin&lt;/a&gt; to do this.&lt;/p&gt;
&lt;p&gt;In this regard my goals were a bit different:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;To be able to just dump images in the &lt;code&gt;img/&lt;/code&gt; directory.&lt;/li&gt;
&lt;li&gt;To be able to reference images from that directory without worrying too much about what size they were.&lt;/li&gt;
&lt;li&gt;To have decent performance and UX.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Given these goals, what I&#39;m about to describe may not be the ultimate cutting edge best practice, but it works for me.
The first and easiest step is to make sure your images are optimized and compressed, even if they are the same dimensions when they come out the other end. For this, I used &lt;a href=&quot;https://github.com/DeMoorJasper/parcel-plugin-imagemin&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;parcel-plugin-imagemin&lt;/a&gt; which allows ParcelJS to apply those optimizations during the build. I found that this alone reduced the size of my images by 80% for free.&lt;/p&gt;
&lt;pre class=&quot;language-bash&quot;&gt;&lt;code class=&quot;language-bash&quot;&gt;&lt;span class=&quot;token number&quot;&gt;7&lt;/span&gt;:39:10 PM: &lt;span class=&quot;token punctuation&quot;&gt;\&lt;/span&gt;$ cross-env NODE&lt;span class=&quot;token punctuation&quot;&gt;\&lt;/span&gt;*ENV&lt;span class=&quot;token operator&quot;&gt;=&lt;/span&gt;production parcel build ./src/assets/&lt;span class=&quot;token punctuation&quot;&gt;\&lt;/span&gt;*&lt;span class=&quot;token punctuation&quot;&gt;\&lt;/span&gt;*/&lt;span class=&quot;token punctuation&quot;&gt;\&lt;/span&gt;_ --out-dir ./dist/assets --no-source-maps&lt;br /&gt;&lt;span class=&quot;token number&quot;&gt;7&lt;/span&gt;:39:11 PM:&lt;br /&gt;&lt;span class=&quot;token number&quot;&gt;7&lt;/span&gt;:39:34 PM: ✨ Built &lt;span class=&quot;token keyword&quot;&gt;in&lt;/span&gt; &lt;span class=&quot;token number&quot;&gt;23&lt;/span&gt;.57s.&lt;br /&gt;&lt;span class=&quot;token number&quot;&gt;7&lt;/span&gt;:39:34 PM: dist/assets/img/yelp-search-home.png &lt;span class=&quot;token number&quot;&gt;432.99&lt;/span&gt; KB &lt;span class=&quot;token number&quot;&gt;22&lt;/span&gt;.31s&lt;br /&gt;&lt;span class=&quot;token number&quot;&gt;7&lt;/span&gt;:39:34 PM: dist/assets/img/codenail-framed-poster.jpeg &lt;span class=&quot;token number&quot;&gt;347.73&lt;/span&gt; KB &lt;span class=&quot;token number&quot;&gt;18&lt;/span&gt;.52s&lt;br /&gt;&lt;span class=&quot;token number&quot;&gt;7&lt;/span&gt;:39:34 PM: dist/assets/img/yelp-search-ios.jpg &lt;span class=&quot;token number&quot;&gt;186.6&lt;/span&gt; KB &lt;span class=&quot;token number&quot;&gt;16&lt;/span&gt;.85s&lt;br /&gt;&lt;span class=&quot;token number&quot;&gt;7&lt;/span&gt;:39:34 PM: dist/assets/img/yelp-nearby-ios.jpg &lt;span class=&quot;token number&quot;&gt;156.13&lt;/span&gt; KB &lt;span class=&quot;token number&quot;&gt;16&lt;/span&gt;.42s&lt;br /&gt;&lt;span class=&quot;token number&quot;&gt;7&lt;/span&gt;:39:34 PM: dist/assets/js/app.js &lt;span class=&quot;token number&quot;&gt;80.55&lt;/span&gt; KB &lt;span class=&quot;token number&quot;&gt;21&lt;/span&gt;.05s&lt;br /&gt;&lt;span class=&quot;token number&quot;&gt;7&lt;/span&gt;:39:34 PM: dist/assets/img/instant-kitty.png &lt;span class=&quot;token number&quot;&gt;42.58&lt;/span&gt; KB &lt;span class=&quot;token number&quot;&gt;3&lt;/span&gt;.23s&lt;br /&gt;&lt;span class=&quot;token number&quot;&gt;7&lt;/span&gt;:39:34 PM: dist/assets/img/renderproxy-landing.png &lt;span class=&quot;token number&quot;&gt;32.99&lt;/span&gt; KB &lt;span class=&quot;token number&quot;&gt;13&lt;/span&gt;.61s&lt;br /&gt;&lt;span class=&quot;token number&quot;&gt;7&lt;/span&gt;:39:34 PM: dist/assets/img/instant-dai.png &lt;span class=&quot;token number&quot;&gt;22.86&lt;/span&gt; KB &lt;span class=&quot;token number&quot;&gt;2&lt;/span&gt;.92s&lt;br /&gt;&lt;span class=&quot;token number&quot;&gt;7&lt;/span&gt;:39:34 PM: dist/assets/img/0x-api-big.png &lt;span class=&quot;token number&quot;&gt;22.62&lt;/span&gt; KB &lt;span class=&quot;token number&quot;&gt;13&lt;/span&gt;.54s&lt;br /&gt;&lt;span class=&quot;token number&quot;&gt;7&lt;/span&gt;:39:34 PM: dist/assets/img/instant-rep.png &lt;span class=&quot;token number&quot;&gt;21.34&lt;/span&gt; KB &lt;span class=&quot;token number&quot;&gt;3&lt;/span&gt;.02s&lt;br /&gt;&lt;span class=&quot;token number&quot;&gt;7&lt;/span&gt;:39:34 PM: dist/assets/img/0x-api-banner.png &lt;span class=&quot;token number&quot;&gt;11.96&lt;/span&gt; KB &lt;span class=&quot;token number&quot;&gt;3&lt;/span&gt;.32s&lt;br /&gt;&lt;span class=&quot;token number&quot;&gt;7&lt;/span&gt;:39:34 PM: dist/assets/css/app.css &lt;span class=&quot;token number&quot;&gt;8.47&lt;/span&gt; KB &lt;span class=&quot;token number&quot;&gt;18&lt;/span&gt;.61s&lt;br /&gt;&lt;span class=&quot;token number&quot;&gt;7&lt;/span&gt;:39:34 PM: dist/assets/img/renderproxy.png &lt;span class=&quot;token number&quot;&gt;4.85&lt;/span&gt; KB &lt;span class=&quot;token number&quot;&gt;3&lt;/span&gt;.02s&lt;br /&gt;&lt;span class=&quot;token number&quot;&gt;7&lt;/span&gt;:39:34 PM: dist/assets/img/0x-api.png &lt;span class=&quot;token number&quot;&gt;4.67&lt;/span&gt; KB &lt;span class=&quot;token number&quot;&gt;1&lt;/span&gt;.42s&lt;br /&gt;&lt;span class=&quot;token number&quot;&gt;7&lt;/span&gt;:39:34 PM: dist/assets/css/prism.css &lt;span class=&quot;token number&quot;&gt;2.32&lt;/span&gt; KB &lt;span class=&quot;token number&quot;&gt;18&lt;/span&gt;.62s&lt;br /&gt;&lt;span class=&quot;token number&quot;&gt;7&lt;/span&gt;:39:34 PM: dist/assets/img/codenail.png &lt;span class=&quot;token number&quot;&gt;1.56&lt;/span&gt; KB 933ms&lt;br /&gt;&lt;span class=&quot;token number&quot;&gt;7&lt;/span&gt;:39:34 PM: dist/assets/img/yelp.png &lt;span class=&quot;token number&quot;&gt;1.03&lt;/span&gt; KB &lt;span class=&quot;token number&quot;&gt;1&lt;/span&gt;.14s&lt;br /&gt;&lt;span class=&quot;token number&quot;&gt;7&lt;/span&gt;:39:34 PM: dist/assets/img/0x.svg &lt;span class=&quot;token number&quot;&gt;887&lt;/span&gt; B 737ms&lt;br /&gt;&lt;span class=&quot;token number&quot;&gt;7&lt;/span&gt;:39:34 PM: dist/assets/img/just-a-level.png &lt;span class=&quot;token number&quot;&gt;391&lt;/span&gt; B 926ms&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;The second step I took was to use &lt;a href=&quot;https://github.com/liamfiddler/eleventy-plugin-lazyimages#readme&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;eleventy-plugin-lazyimages&lt;/a&gt;. This plugin scans your markup for &lt;code&gt;&amp;lt;img&amp;gt;&lt;/code&gt; tags, seeds them with inline low-res images, and loads the full resolution images once the image is near the viewport. The result is HTML like the following:&lt;/p&gt;
&lt;pre class=&quot;language-html&quot;&gt;&lt;code class=&quot;language-html&quot;&gt;&lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token punctuation&quot;&gt;&amp;lt;&lt;/span&gt;img&lt;/span&gt;&lt;br /&gt;  &lt;span class=&quot;token attr-name&quot;&gt;src&lt;/span&gt;&lt;span class=&quot;token attr-value&quot;&gt;&lt;span class=&quot;token punctuation attr-equals&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;&quot;&lt;/span&gt;data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAGCAYAAAD37n+BAAABAElEQVR4AW3BQUvCUADA8f/mc1MbPSnNhtliFNqhoCIIgk5Rhw4RHTv3JfoanfoEHfsgBYlQUSR4MoXAnDr3Xlvr1K3fzzg73E51NMUwTRaXfDxvmW8VYuopb50O7U6X2UKe3c0GVi6HSGPNgltlfWMHFX4xfn3E3drHETb9wRAr80HdczENA6U14vzikr2DI5QKMX9iZhyHJE54aT1w0qhzfJowGU8oFQq0724RtZU1yhUXKSV/0jTl5vqKwWRItVjhvvlOrEJWvRpCzpX4T9TrEmQsbDHA9z0++31G0wgRBAHPT02KUpK3bRKtyWYzSFlm1Osh513IS9JYEQRjfgEOTl/TD5hJ6AAAAABJRU5ErkJggg==&lt;span class=&quot;token punctuation&quot;&gt;&quot;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;  &lt;span class=&quot;token attr-name&quot;&gt;alt&lt;/span&gt;&lt;span class=&quot;token attr-value&quot;&gt;&lt;span class=&quot;token punctuation attr-equals&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;&quot;&lt;/span&gt;My Alt Title&lt;span class=&quot;token punctuation&quot;&gt;&quot;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;  &lt;span class=&quot;token attr-name&quot;&gt;loading&lt;/span&gt;&lt;span class=&quot;token attr-value&quot;&gt;&lt;span class=&quot;token punctuation attr-equals&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;&quot;&lt;/span&gt;lazy&lt;span class=&quot;token punctuation&quot;&gt;&quot;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;  &lt;span class=&quot;token attr-name&quot;&gt;data-src&lt;/span&gt;&lt;span class=&quot;token attr-value&quot;&gt;&lt;span class=&quot;token punctuation attr-equals&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;&quot;&lt;/span&gt;/assets/img/my-image.png&lt;span class=&quot;token punctuation&quot;&gt;&quot;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;  &lt;span class=&quot;token attr-name&quot;&gt;class&lt;/span&gt;&lt;span class=&quot;token attr-value&quot;&gt;&lt;span class=&quot;token punctuation attr-equals&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;&quot;&lt;/span&gt;lazyload&lt;span class=&quot;token punctuation&quot;&gt;&quot;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;  &lt;span class=&quot;token attr-name&quot;&gt;width&lt;/span&gt;&lt;span class=&quot;token attr-value&quot;&gt;&lt;span class=&quot;token punctuation attr-equals&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;&quot;&lt;/span&gt;1000&lt;span class=&quot;token punctuation&quot;&gt;&quot;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;  &lt;span class=&quot;token attr-name&quot;&gt;height&lt;/span&gt;&lt;span class=&quot;token attr-value&quot;&gt;&lt;span class=&quot;token punctuation attr-equals&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;&quot;&lt;/span&gt;1000&lt;span class=&quot;token punctuation&quot;&gt;&quot;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class=&quot;token punctuation&quot;&gt;/&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;I found that using these two plugins, along with being smart about which images I use, was Good Enough™ for me.&lt;/p&gt;
&lt;h2 id=&quot;markdown-plugins&quot; tabindex=&quot;-1&quot;&gt;Markdown Plugins &lt;a class=&quot;header-anchor&quot; href=&quot;https://fragosti.com/posts/how-this-blog-is-made/#markdown-plugins&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;&lt;i data-feather=&quot;link&quot; class=&quot;link&quot;&gt;&lt;/i&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;At some point while working with markdown files in Eleventy you may find that you want some custom behavior. Fortunately, &lt;a href=&quot;https://www.11ty.dev/docs/languages/markdown/&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;this is supported&lt;/a&gt;, as Eleventy allows you to add and configure your own &lt;code&gt;markdown-it&lt;/code&gt; instance.&lt;/p&gt;
&lt;p&gt;While there may be a lot of ways you want to configure your markdown parser, I&#39;m going to go over how I implemented perma-links for my headings, and how I automatically made external links open in a new tab.&lt;/p&gt;
&lt;p&gt;Perma-links, which you can check out by hovering over any heading, were added by using &lt;a href=&quot;https://github.com/valeriangalliat/markdown-it-anchor&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;markdown-it-anchor&lt;/a&gt; and the &amp;quot;link&amp;quot; icon from &lt;a href=&quot;http://feathericons.com/&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;feather-icons&lt;/a&gt;. Simply enable the &lt;code&gt;permalink&lt;/code&gt; option and set the &lt;code&gt;permalinkSymbol&lt;/code&gt; to the icon of your choice.&lt;/p&gt;
&lt;p&gt;To ensure external links open in a new tab, I used &lt;a href=&quot;https://github.com/crookedneighbor/markdown-it-link-attributes&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;markdown-it-link-attributes&lt;/a&gt;, which lets you apply attributes to links meeting a certain criteria. In my case, I made sure to add &lt;code&gt;target=_blank&lt;/code&gt; and &lt;code&gt;rel= noopener noreferrer&lt;/code&gt; to all links with absolute URLs, since I only use relative URLs for internal links.&lt;/p&gt;
&lt;pre class=&quot;language-js&quot;&gt;&lt;code class=&quot;language-js&quot;&gt;&lt;span class=&quot;token comment&quot;&gt;/**&lt;br /&gt; * Set markdown libraries&lt;br /&gt; *&lt;br /&gt; * @link https://www.11ty.dev/docs/languages/markdown/#optional-set-your-own-library-instance&lt;br /&gt; */&lt;/span&gt;&lt;br /&gt;eleventyConfig&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;token function&quot;&gt;setLibrary&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;br /&gt;  &lt;span class=&quot;token string&quot;&gt;&#39;md&#39;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt;&lt;br /&gt;  &lt;span class=&quot;token function&quot;&gt;markdownIt&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt; html&lt;span class=&quot;token operator&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;token boolean&quot;&gt;true&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;br /&gt;    &lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;token function&quot;&gt;use&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;markdownItAnchor&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;&lt;br /&gt;      permalink&lt;span class=&quot;token operator&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;token boolean&quot;&gt;true&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt;&lt;br /&gt;      permalinkSymbol&lt;span class=&quot;token operator&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&#39;&amp;lt;i data-feather=&quot;link&quot; class=&quot;link&quot;&gt;&amp;lt;/i&gt;&#39;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt;&lt;br /&gt;    &lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;br /&gt;    &lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;token function&quot;&gt;use&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;markdownItLinkAttr&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;&lt;br /&gt;      &lt;span class=&quot;token comment&quot;&gt;// Make external links open in a new tab.&lt;/span&gt;&lt;br /&gt;      pattern&lt;span class=&quot;token operator&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;token regex&quot;&gt;&lt;span class=&quot;token regex-delimiter&quot;&gt;/&lt;/span&gt;&lt;span class=&quot;token regex-source language-regex&quot;&gt;^https?:\/\/&lt;/span&gt;&lt;span class=&quot;token regex-delimiter&quot;&gt;/&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt;&lt;br /&gt;      attrs&lt;span class=&quot;token operator&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;&lt;br /&gt;        target&lt;span class=&quot;token operator&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&#39;_blank&#39;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt;&lt;br /&gt;        rel&lt;span class=&quot;token operator&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&#39;noopener noreferrer&#39;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt;&lt;br /&gt;      &lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt;&lt;br /&gt;    &lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;br /&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;h2 id=&quot;email-updates-using-rss&quot; tabindex=&quot;-1&quot;&gt;Email Updates Using RSS &lt;a class=&quot;header-anchor&quot; href=&quot;https://fragosti.com/posts/how-this-blog-is-made/#email-updates-using-rss&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;&lt;i data-feather=&quot;link&quot; class=&quot;link&quot;&gt;&lt;/i&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;If you look at the bottom of this page, you&#39;ll notice a subscription form. This feature is implemented by using a combination of &lt;a href=&quot;https://www.11ty.dev/docs/plugins/rss/&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;eleventy-plugin-rss&lt;/a&gt; to automatically generate an RSS &lt;a href=&quot;https://fragosti.com/feed.xml&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;feed.xml&lt;/a&gt; file and &lt;a href=&quot;https://mailchimp.com/help/share-your-blog-posts-with-mailchimp/&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;Mailchimp&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Using the plugin, you can easily add RSS to your site by adding a &lt;code&gt;feed.njk&lt;/code&gt; file to the root of your blog. Here is mine:&lt;/p&gt;
&lt;pre class=&quot;language-html&quot;&gt;&lt;code class=&quot;language-html&quot;&gt;---json&lt;br /&gt;{&lt;br /&gt;  &quot;permalink&quot;: &quot;feed.xml&quot;,&lt;br /&gt;  &quot;eleventyExcludeFromCollections&quot;: true,&lt;br /&gt;  &quot;metadata&quot;: {&lt;br /&gt;    &quot;title&quot;: &quot;fragosti&quot;,&lt;br /&gt;    &quot;description&quot;: &quot;Posts, projects and more by fragosti&quot;,&lt;br /&gt;    &quot;url&quot;: &quot;https://fragosti.com/&quot;,&lt;br /&gt;    &quot;feedUrl&quot;: &quot;https://fragosti.com/feed.xml&quot;,&lt;br /&gt;    &quot;author&quot;: {&lt;br /&gt;      &quot;name&quot;: &quot;Francesco Agosti&quot;,&lt;br /&gt;      &quot;email&quot;: &quot;francesco@fragosti.com&quot;&lt;br /&gt;    }&lt;br /&gt;  }&lt;br /&gt;}&lt;br /&gt;---&lt;br /&gt;&lt;span class=&quot;token prolog&quot;&gt;&amp;lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token punctuation&quot;&gt;&amp;lt;&lt;/span&gt;feed&lt;/span&gt; &lt;span class=&quot;token attr-name&quot;&gt;xmlns&lt;/span&gt;&lt;span class=&quot;token attr-value&quot;&gt;&lt;span class=&quot;token punctuation attr-equals&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;&quot;&lt;/span&gt;http://www.w3.org/2005/Atom&lt;span class=&quot;token punctuation&quot;&gt;&quot;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;  &lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token punctuation&quot;&gt;&amp;lt;&lt;/span&gt;title&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;&gt;&lt;/span&gt;&lt;/span&gt;{{ metadata.title }}&lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token punctuation&quot;&gt;&amp;lt;/&lt;/span&gt;title&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;  &lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token punctuation&quot;&gt;&amp;lt;&lt;/span&gt;subtitle&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;&gt;&lt;/span&gt;&lt;/span&gt;{{ metadata.description }}&lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token punctuation&quot;&gt;&amp;lt;/&lt;/span&gt;subtitle&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;  &lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token punctuation&quot;&gt;&amp;lt;&lt;/span&gt;link&lt;/span&gt; &lt;span class=&quot;token attr-name&quot;&gt;href&lt;/span&gt;&lt;span class=&quot;token attr-value&quot;&gt;&lt;span class=&quot;token punctuation attr-equals&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;&quot;&lt;/span&gt;{{ metadata.feedUrl }}&lt;span class=&quot;token punctuation&quot;&gt;&quot;&lt;/span&gt;&lt;/span&gt; &lt;span class=&quot;token attr-name&quot;&gt;rel&lt;/span&gt;&lt;span class=&quot;token attr-value&quot;&gt;&lt;span class=&quot;token punctuation attr-equals&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;&quot;&lt;/span&gt;self&lt;span class=&quot;token punctuation&quot;&gt;&quot;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;/&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;  &lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token punctuation&quot;&gt;&amp;lt;&lt;/span&gt;link&lt;/span&gt; &lt;span class=&quot;token attr-name&quot;&gt;href&lt;/span&gt;&lt;span class=&quot;token attr-value&quot;&gt;&lt;span class=&quot;token punctuation attr-equals&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;&quot;&lt;/span&gt;{{ metadata.url }}&lt;span class=&quot;token punctuation&quot;&gt;&quot;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;/&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;  &lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token punctuation&quot;&gt;&amp;lt;&lt;/span&gt;updated&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;&gt;&lt;/span&gt;&lt;/span&gt;{{ collections.post | rssLastUpdatedDate }}&lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token punctuation&quot;&gt;&amp;lt;/&lt;/span&gt;updated&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;  &lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token punctuation&quot;&gt;&amp;lt;&lt;/span&gt;id&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;&gt;&lt;/span&gt;&lt;/span&gt;{{ metadata.url }}&lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token punctuation&quot;&gt;&amp;lt;/&lt;/span&gt;id&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;  &lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token punctuation&quot;&gt;&amp;lt;&lt;/span&gt;author&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;    &lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token punctuation&quot;&gt;&amp;lt;&lt;/span&gt;name&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;&gt;&lt;/span&gt;&lt;/span&gt;{{ metadata.author.name }}&lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token punctuation&quot;&gt;&amp;lt;/&lt;/span&gt;name&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;    &lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token punctuation&quot;&gt;&amp;lt;&lt;/span&gt;email&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;&gt;&lt;/span&gt;&lt;/span&gt;{{ metadata.author.email }}&lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token punctuation&quot;&gt;&amp;lt;/&lt;/span&gt;email&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;  &lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token punctuation&quot;&gt;&amp;lt;/&lt;/span&gt;author&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;  {%- for post in collections.post %}&lt;br /&gt;  {% set absolutePostUrl %}{{ post.url | url | absoluteUrl(metadata.url) }}{% endset %}&lt;br /&gt;  &lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token punctuation&quot;&gt;&amp;lt;&lt;/span&gt;entry&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;    &lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token punctuation&quot;&gt;&amp;lt;&lt;/span&gt;title&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;&gt;&lt;/span&gt;&lt;/span&gt;{{ post.data.title }}&lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token punctuation&quot;&gt;&amp;lt;/&lt;/span&gt;title&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;    &lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token punctuation&quot;&gt;&amp;lt;&lt;/span&gt;link&lt;/span&gt; &lt;span class=&quot;token attr-name&quot;&gt;href&lt;/span&gt;&lt;span class=&quot;token attr-value&quot;&gt;&lt;span class=&quot;token punctuation attr-equals&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;&quot;&lt;/span&gt;{{ absolutePostUrl }}&lt;span class=&quot;token punctuation&quot;&gt;&quot;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;/&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;    &lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token punctuation&quot;&gt;&amp;lt;&lt;/span&gt;updated&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;&gt;&lt;/span&gt;&lt;/span&gt;{{ post.date | rssDate }}&lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token punctuation&quot;&gt;&amp;lt;/&lt;/span&gt;updated&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;    &lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token punctuation&quot;&gt;&amp;lt;&lt;/span&gt;id&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;&gt;&lt;/span&gt;&lt;/span&gt;{{ absolutePostUrl }}&lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token punctuation&quot;&gt;&amp;lt;/&lt;/span&gt;id&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;    &lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token punctuation&quot;&gt;&amp;lt;&lt;/span&gt;description&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;&gt;&lt;/span&gt;&lt;/span&gt;{{ post.data.description }}&lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token punctuation&quot;&gt;&amp;lt;/&lt;/span&gt;description&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;    &lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token punctuation&quot;&gt;&amp;lt;&lt;/span&gt;content&lt;/span&gt; &lt;span class=&quot;token attr-name&quot;&gt;type&lt;/span&gt;&lt;span class=&quot;token attr-value&quot;&gt;&lt;span class=&quot;token punctuation attr-equals&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;&quot;&lt;/span&gt;html&lt;span class=&quot;token punctuation&quot;&gt;&quot;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;&gt;&lt;/span&gt;&lt;/span&gt;{{ post.templateContent | htmlToAbsoluteUrls(absolutePostUrl) }}&lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token punctuation&quot;&gt;&amp;lt;/&lt;/span&gt;content&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;  &lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token punctuation&quot;&gt;&amp;lt;/&lt;/span&gt;entry&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;  {%- endfor %}&lt;br /&gt;&lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token punctuation&quot;&gt;&amp;lt;/&lt;/span&gt;feed&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Once you have that, Mailchimp and other marketing platforms offer services that will convert updates to your RSS feed to email updates for your subscribers. This is nice because you don&#39;t have to cross-post, or write a complex integration every time you want to release a post. The only thing you need to implement is the email itself, and for that Mailchimp provides &lt;a href=&quot;https://mailchimp.com/help/rss-merge-tags/&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;RSS Merge Tags&lt;/a&gt;, meaning you can easily include your blog title and content in your emails. As soon as you write a new blog post and deploy it, Mailchimp will pick it up and send out the email.&lt;/p&gt;
&lt;h2 id=&quot;conclusion&quot; tabindex=&quot;-1&quot;&gt;Conclusion &lt;a class=&quot;header-anchor&quot; href=&quot;https://fragosti.com/posts/how-this-blog-is-made/#conclusion&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;&lt;i data-feather=&quot;link&quot; class=&quot;link&quot;&gt;&lt;/i&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;As you can see Eleventy provides a simple and elegant solution for those wanting to build a static blog. It&#39;s easy to get started, and in my experience, it provided solutions to all problems I wanted to solve while developing, either in the form of documentation or a plugin.&lt;/p&gt;
&lt;p&gt;I&#39;m sure things will continue to evolve, but I hope this post is helpful to people implementing features that aren&#39;t exactly covered by the main Eleventy docs.&lt;/p&gt;
</content>
  </entry>
</feed>