Styling Code

December 2022

Styling Code

After adding a post that had some code I decided I wanted to make it look nicer. I found Prism by doing a little RND (rob and duplicate) from another article I was reading. Add some js here, link to css there and my code examples look as good as they function!

<!-- a comment here -->
<h1>Hear Ye, Hear Ye</h1>
<p>And of course some content to fill in the rest.</p>
/* a comment there */
.amanda { color: #ff6400; font-family: 'Source Sans Pro', sans-serif; }
.lutz { font-family: 'Poiret One', cursive; font-weight: bold; }

Nice.

And so many additional themes are available!

Related

Seeing how ideas and projects connect to one another is an essential skill because it solidifies one's comprehension of that technology.

Twig in Craft Fields

Twig in Craft Fields

Part of the template I purchased for my site redesign includes incrementing counters. But I don't want to update those stats with every new project. Think there's a way to add twig to a Craft field?