<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
  <title>Yuri Vyatkin | Personal Website</title>
  <subtitle>Technical blog with digressions to fine arts</subtitle>
  <link href="https://niktayv.netlify.app"/>
  <link href="https://niktayv.netlify.app/feed.xml" rel="self"/>
  <updated>2020-09-20T17:44:03Z</updated>
  <id>https://niktayv.netlify.app</id>
  <author>
    <name>Yuri Vyatkin</name>
    <email>yuri.vyatkin@gmail.com</email>
  </author>
    
    <entry>
      <title>Color Settings</title>
      <link href="https://niktayv.netlify.app/2020/09/01/color-settings/"/>
      <updated>2020-09-01T17:44:03Z</updated>
      <id>https://niktayv.netlify.app/2020/09/01/color-settings/</id>
      <content type="html">&lt;p&gt;Customizing almost all the colors is easy…assuming you’re familiar with &lt;a href=&quot;https://tailwindcss.com/docs/customizing-colors&quot; title=&quot;TailwindCSS Utility-First CSS Framework&quot;&gt;how colors work in TailwindCSS&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Check out the &lt;code&gt;/src/_data/colors.js&lt;/code&gt; file for instructions and examples of how to customize the colors around the system.&lt;/p&gt;
&lt;p&gt;&lt;em&gt;It should be easy to add your own customizations and settings given the comments and the code in the layouts.&lt;/em&gt;&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;NOTE: Technically you could include any additional TailwindCSS classes with the color settings. Check out the &lt;code&gt;excerptCustom&lt;/code&gt; setting below for an example of what I included to manage the display of the excerpts on the &lt;a href=&quot;https://niktayv.netlify.app/blog/&quot;&gt;blog listing page&lt;/a&gt;.&lt;br /&gt;
But it’s not always practical due to display variations required on different views.&lt;/p&gt;
&lt;/blockquote&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; * ===== Excerpts on Post Lists&lt;br /&gt; */&lt;/span&gt;&lt;br /&gt;excerptDefault&lt;span class=&quot;token operator&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&#39;text-gray-600&#39;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt;&lt;br /&gt;excerptCustom&lt;span class=&quot;token operator&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&#39;text-sm leading-relaxed italic text-gray-600&#39;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Here’s a sample snippet from the &lt;code&gt;/src/_data/colors.js&lt;/code&gt; file showing how to completely customize the main navbar above:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;NOTE: I’d love to have more color variants…for exmaple lighter text colors for some elements. But you’ll find you get dinged in &lt;a href=&quot;https://developers.google.com/web/tools/lighthouse&quot;&gt;Lighthouse reports&lt;/a&gt; if you don’t have &lt;a href=&quot;https://web.dev/color-contrast/&quot;&gt;sufficient color contrast ratio&lt;/a&gt;.&lt;/p&gt;
&lt;/blockquote&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; * Reason for both &#39;xxxDefault&#39; and &#39;xxxCustom&#39;&lt;br /&gt; *  I could have only provided ONE set of settings. But knowing how users&lt;br /&gt; *  actually use a system, at some point they&#39;ll want to revert to the&lt;br /&gt; *  original color set...or at least reference it.&lt;br /&gt; *  Providing a &#39;Default&#39; and &#39;Custom&#39; set allows you to keep the original&lt;br /&gt; *  colors for future reference while setting &#39;Custom&#39; overrides for entire&lt;br /&gt; *  sets or individual elements.&lt;br /&gt; *&lt;br /&gt; *    If you don&#39;t care about keeping them as reference, you can just&lt;br /&gt; *      change the &quot;xxxDefault&quot; key values.&lt;br /&gt; *&lt;br /&gt; *    &quot;xxxCustom&quot; values will always override &quot;xxxDefault&quot; values.&lt;br /&gt; *&lt;br /&gt; * ~~~~~ Cusomization tip ~~~~~&lt;br /&gt; *    To quickly create a full set of custom colors,&lt;br /&gt; *    simply select and copy the set of &quot;Default&quot; elements&lt;br /&gt; *    and &#39;replace paste&#39; them in the &quot;Custom&quot; area.&lt;br /&gt; *    Then just change the &quot;color&quot; value in the middle.&lt;br /&gt; *    This will help keep the customization values looking correct&lt;br /&gt; *    and wil ensure no errors in &quot;text&quot;, &quot;bg&quot;, and &quot;border&quot; values.&lt;br /&gt; */&lt;/span&gt;&lt;br /&gt;navDefault&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;  barBg&lt;span class=&quot;token operator&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&#39;bg-white&#39;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt;&lt;br /&gt;  text&lt;span class=&quot;token operator&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&#39;text-teal-500&#39;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt;&lt;br /&gt;  textActive&lt;span class=&quot;token operator&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&#39;text-teal-600&#39;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt;&lt;br /&gt;  textHover&lt;span class=&quot;token operator&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&#39;text-teal-600&#39;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt;&lt;br /&gt;  textActiveBg&lt;span class=&quot;token operator&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&#39;bg-teal-100&#39;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt;&lt;br /&gt;  textFocus&lt;span class=&quot;token operator&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&#39;text-teal-500&#39;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt;&lt;br /&gt;  mobileBg&lt;span class=&quot;token operator&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&#39;&#39;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt;&lt;br /&gt;  mobileBgActive&lt;span class=&quot;token operator&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&#39;bg-teal-700&#39;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt;&lt;br /&gt;  mobileBgHover&lt;span class=&quot;token operator&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&#39;bg-teal-100&#39;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt;&lt;br /&gt;  mobileBgFocus&lt;span class=&quot;token operator&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&#39;bg-teal-300&#39;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt;&lt;br /&gt;  mobileText&lt;span class=&quot;token operator&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&#39;text-teal-500&#39;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt;&lt;br /&gt;  mobileTextActive&lt;span class=&quot;token operator&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&#39;text-teal-300&#39;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt;&lt;br /&gt;  mobileTextHover&lt;span class=&quot;token operator&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&#39;text-teal-600&#39;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt;&lt;br /&gt;  mobileTextFocus&lt;span class=&quot;token operator&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&#39;text-teal-700&#39;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt;&lt;br /&gt;  mobileButton&lt;span class=&quot;token operator&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&#39;text-teal-500&#39;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt;&lt;br /&gt;  mobileButtonHover&lt;span class=&quot;token operator&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&#39;text-teal-600&#39;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt;&lt;br /&gt;  mobileButtonBgHover&lt;span class=&quot;token operator&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&#39;bg-teal-100&#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 comment&quot;&gt;/**&lt;br /&gt; *  NOTE: You MUST keep all Custom variable keys, even if their values&lt;br /&gt; *  are empty and you don&#39;t intend to use them.&lt;br /&gt; *  If you delete any variable keys, 11ty won&#39;t work.&lt;br /&gt; */&lt;/span&gt;&lt;br /&gt;navCustom&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;   barBg&lt;span class=&quot;token operator&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&#39;&#39;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt;&lt;br /&gt;   text&lt;span class=&quot;token operator&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&#39;text-gray-700&#39;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt;&lt;br /&gt;   textActive&lt;span class=&quot;token operator&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&#39;text-gray-800&#39;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt;&lt;br /&gt;   textHover&lt;span class=&quot;token operator&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&#39;text-gray-800&#39;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt;&lt;br /&gt;   textActiveBg&lt;span class=&quot;token operator&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&#39;bg-gray-100&#39;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt;&lt;br /&gt;   textFocus&lt;span class=&quot;token operator&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&#39;text-gray-500&#39;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt;&lt;br /&gt;   mobileBg&lt;span class=&quot;token operator&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&#39;&#39;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt;&lt;br /&gt;   mobileBgActive&lt;span class=&quot;token operator&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&#39;bg-gray-700&#39;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt;&lt;br /&gt;   mobileBgHover&lt;span class=&quot;token operator&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&#39;bg-gray-100&#39;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt;&lt;br /&gt;   mobileBgFocus&lt;span class=&quot;token operator&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&#39;bg-gray-300&#39;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt;&lt;br /&gt;   mobileText&lt;span class=&quot;token operator&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&#39;text-gray-500&#39;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt;&lt;br /&gt;   mobileTextActive&lt;span class=&quot;token operator&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&#39;text-gray-300&#39;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt;&lt;br /&gt;   mobileTextHover&lt;span class=&quot;token operator&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&#39;text-gray-600&#39;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt;&lt;br /&gt;   mobileTextFocus&lt;span class=&quot;token operator&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&#39;text-gray-700&#39;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt;&lt;br /&gt;   mobileButton&lt;span class=&quot;token operator&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&#39;text-gray-500&#39;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt;&lt;br /&gt;   mobileButtonHover&lt;span class=&quot;token operator&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&#39;text-gray-600&#39;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt;&lt;br /&gt;   mobileButtonBgHover&lt;span class=&quot;token operator&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&#39;bg-gray-100&#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;/code&gt;&lt;/pre&gt;
&lt;p&gt;Here’s how to manage buttons farther down in the &lt;code&gt;/src/_data/colors.js&lt;/code&gt; file:&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; * ===== Buttons =====&lt;br /&gt; */&lt;/span&gt;&lt;br /&gt;buttonDefault&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;  text&lt;span class=&quot;token operator&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&#39;text-white&#39;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt;&lt;br /&gt;  textHover&lt;span class=&quot;token operator&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&#39;text-white&#39;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt;&lt;br /&gt;  bg&lt;span class=&quot;token operator&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&#39;bg-teal-700&#39;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt;&lt;br /&gt;  bgHover&lt;span class=&quot;token operator&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&#39;bg-teal-700&#39;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt;&lt;br /&gt;  border&lt;span class=&quot;token operator&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&#39;border-teal-900&#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;buttonCustom&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;  text&lt;span class=&quot;token operator&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&#39;&#39;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt;&lt;br /&gt;  textHover&lt;span class=&quot;token operator&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&#39;&#39;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt;&lt;br /&gt;  bg&lt;span class=&quot;token operator&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&#39;&#39;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt;&lt;br /&gt;  bgHover&lt;span class=&quot;token operator&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&#39;&#39;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt;&lt;br /&gt;  border&lt;span class=&quot;token operator&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&#39;&#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;/code&gt;&lt;/pre&gt;
</content>
    </entry>
    
    <entry>
      <title>Managing Social Share, Author, and Footer Icons</title>
      <link href="https://niktayv.netlify.app/2020/09/02/managing-social-share-author-and-footer-icons/"/>
      <updated>2020-09-02T17:44:03Z</updated>
      <id>https://niktayv.netlify.app/2020/09/02/managing-social-share-author-and-footer-icons/</id>
      <content type="html">&lt;p&gt;As easily as you can &lt;a href=&quot;https://niktayv.netlify.app/2020/09/01/color-settings/&quot;&gt;manage colors&lt;/a&gt;, you can also control the display, or not, the SVG icons around the site.&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;NOTE: We are a &lt;a href=&quot;https://fontawesome.com/&quot;&gt;Font Awesome Pro&lt;/a&gt; member and the SVGs in the &lt;code&gt;/src/assets/svg&lt;/code&gt; directory are Font Awesome SVGs that have been modified to work specifically with &lt;a href=&quot;https://tailwindcss.com/&quot; title=&quot;TailwindCSS Utility-First CSS Framework&quot;&gt;TailwindCSS&lt;/a&gt; and the customizations of this system. If you want to add your own SVGs you’ll probably need to modify them and please be sure to &lt;strong&gt;follow the attribution license&lt;/strong&gt;.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;h2&gt;Footer Social Icons&lt;/h2&gt;
&lt;p&gt;For example, the icons in the Footer are controlled in the &lt;code&gt;/src/_data/social.json&lt;/code&gt; to allow Editors to manage without them having to work in the &lt;code&gt;/src/_data/structure.js&lt;/code&gt; file where they might create some damage.&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;NOTE: The JSON array in &lt;code&gt;/src/_data/social.json&lt;/code&gt; doesn’t look quite like this flattened JSON, but it’ll be obvious how to manage it.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;pre class=&quot;language-js&quot;&gt;&lt;code class=&quot;language-js&quot;&gt;&lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;&lt;br /&gt;	&lt;span class=&quot;token string&quot;&gt;&quot;dribbble&quot;&lt;/span&gt;&lt;span class=&quot;token operator&quot;&gt;:&lt;/span&gt;   &lt;span class=&quot;token string&quot;&gt;&quot;https://www.dribbble.com/&quot;&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;&quot;github&quot;&lt;/span&gt;&lt;span class=&quot;token operator&quot;&gt;:&lt;/span&gt;     &lt;span class=&quot;token string&quot;&gt;&quot;https://www.github.com/&quot;&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;&quot;instagram&quot;&lt;/span&gt;&lt;span class=&quot;token operator&quot;&gt;:&lt;/span&gt;  &lt;span class=&quot;token string&quot;&gt;&quot;https://www.instagram.com/&quot;&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;&quot;linkedin&quot;&lt;/span&gt;&lt;span class=&quot;token operator&quot;&gt;:&lt;/span&gt;   &lt;span class=&quot;token string&quot;&gt;&quot;http://www.linkedin.com/&quot;&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;&quot;piedpiper&quot;&lt;/span&gt;&lt;span class=&quot;token operator&quot;&gt;:&lt;/span&gt;  &lt;span class=&quot;token string&quot;&gt;&quot;http://www.piedpiper.com/&quot;&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;&quot;pinterest&quot;&lt;/span&gt;&lt;span class=&quot;token operator&quot;&gt;:&lt;/span&gt;  &lt;span class=&quot;token string&quot;&gt;&quot;https://www.pinterest.com/&quot;&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;&quot;rss&quot;&lt;/span&gt;&lt;span class=&quot;token operator&quot;&gt;:&lt;/span&gt;        &lt;span class=&quot;token string&quot;&gt;&quot;/feed.xml&quot;&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;&quot;twitter&quot;&lt;/span&gt;&lt;span class=&quot;token operator&quot;&gt;:&lt;/span&gt;    &lt;span class=&quot;token string&quot;&gt;&quot;https://www.twitter.com/&quot;&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;&quot;youtube&quot;&lt;/span&gt;&lt;span class=&quot;token operator&quot;&gt;:&lt;/span&gt;    &lt;span class=&quot;token string&quot;&gt;&quot;https://www.youtube.com/&quot;&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;To disable a specific platform, just set it’s value to either “” or &lt;code&gt;false&lt;/code&gt;. &lt;em&gt;(both work)&lt;/em&gt;&lt;/p&gt;
&lt;pre class=&quot;language-js&quot;&gt;&lt;code class=&quot;language-js&quot;&gt;&lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;&lt;br /&gt;	&lt;span class=&quot;token string&quot;&gt;&quot;dribbble&quot;&lt;/span&gt;&lt;span class=&quot;token operator&quot;&gt;:&lt;/span&gt;   &lt;span class=&quot;token string&quot;&gt;&quot;&quot;&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;&quot;github&quot;&lt;/span&gt;&lt;span class=&quot;token operator&quot;&gt;:&lt;/span&gt;     &lt;span class=&quot;token string&quot;&gt;&quot;https://www.github.com/&quot;&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;&quot;instagram&quot;&lt;/span&gt;&lt;span class=&quot;token operator&quot;&gt;:&lt;/span&gt;  &lt;span class=&quot;token string&quot;&gt;&quot;https://www.instagram.com/&quot;&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;&quot;linkedin&quot;&lt;/span&gt;&lt;span class=&quot;token operator&quot;&gt;:&lt;/span&gt;   &lt;span class=&quot;token string&quot;&gt;&quot;http://www.linkedin.com/&quot;&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;&quot;piedpiper&quot;&lt;/span&gt;&lt;span class=&quot;token operator&quot;&gt;:&lt;/span&gt;  &lt;span class=&quot;token string&quot;&gt;&quot;http://www.piedpiper.com/&quot;&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;&quot;pinterest&quot;&lt;/span&gt;&lt;span class=&quot;token operator&quot;&gt;:&lt;/span&gt;  &lt;span class=&quot;token string&quot;&gt;&quot;https://www.pinterest.com/&quot;&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;&quot;rss&quot;&lt;/span&gt;&lt;span class=&quot;token operator&quot;&gt;:&lt;/span&gt;        &lt;span class=&quot;token string&quot;&gt;&quot;/feed.xml/&quot;&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;&quot;twitter&quot;&lt;/span&gt;&lt;span class=&quot;token operator&quot;&gt;:&lt;/span&gt;    &lt;span class=&quot;token string&quot;&gt;&quot;https://www.twitter.com/&quot;&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;&quot;youtube&quot;&lt;/span&gt;&lt;span class=&quot;token operator&quot;&gt;:&lt;/span&gt;    &lt;span class=&quot;token boolean&quot;&gt;false&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&gt;Author Social Icons&lt;/h2&gt;
&lt;p&gt;The same is true for the social links in the &lt;code&gt;/src/_data/authors.json&lt;/code&gt; where you manage social links for each author.&lt;/p&gt;
&lt;h2&gt;Adding SVG Icons to Content in Your .md Posts&lt;/h2&gt;
&lt;p&gt;The post &lt;a href=&quot;https://niktayv.netlify.app/2020/09/09/svg-shortcode/&quot;&gt;SVG - Shortcode&lt;/a&gt; goes into detai on how to manage all the SVG Sprites in the system and how to add them to your Post and Pages markdown content via a Shortcode.&lt;/p&gt;
&lt;h2&gt;Post Social Share Icons&lt;/h2&gt;
&lt;p&gt;Posts details, such as this page, have “Social Share” icons built in so readers can easily share to their favorite platform. These SVGs, alond with the native share code for each platform are managed in the &lt;code&gt;/src/_includes/components/socialshare.njk&lt;/code&gt; file.&lt;/p&gt;
&lt;p&gt;And in the &lt;code&gt;/src/_data/structure.js&lt;/code&gt; file you can globally disable Footer and Post Share icons:&lt;/p&gt;
&lt;pre class=&quot;language-js&quot;&gt;&lt;code class=&quot;language-js&quot;&gt;	g_showFooterSocialIcons&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;	g_showSocialShareIcons&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;/code&gt;&lt;/pre&gt;
&lt;p&gt;Also in the &lt;code&gt;/src/_data/structure.js&lt;/code&gt; file you can globally disable the Author link in Post List and Detail views:&lt;/p&gt;
&lt;pre class=&quot;language-js&quot;&gt;&lt;code class=&quot;language-js&quot;&gt;	g_showAuthors&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;/code&gt;&lt;/pre&gt;
&lt;blockquote&gt;
&lt;p&gt;NOTE: We don’t support Facebook and &lt;a href=&quot;https://deletefacebook.com/&quot;&gt;deleted our Profiles and Pages&lt;/a&gt; back in 2017. If you want FB support you should be able to easily add it given all the examples across the &lt;code&gt;/src/_data/*&lt;/code&gt; files and templates.&lt;/p&gt;
&lt;/blockquote&gt;
</content>
    </entry>
    
    <entry>
      <title>Wrap &amp; Columns - Shortcodes</title>
      <link href="https://niktayv.netlify.app/2020/09/03/wrap-and-columns-shortcodes/"/>
      <updated>2020-09-03T17:44:03Z</updated>
      <id>https://niktayv.netlify.app/2020/09/03/wrap-and-columns-shortcodes/</id>
      <content type="html">&lt;p&gt;The columns below use the &lt;code&gt;wrap&lt;/code&gt;, &lt;code&gt;columns&lt;/code&gt;, and &lt;code&gt;cols&lt;/code&gt; shortcodes as shown in the following code.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Additional instructions are included in the &lt;code&gt;/utils/paired-shortcodes.js&lt;/code&gt; file.&lt;/strong&gt;&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;NOTE:&lt;/strong&gt; in Markdown you must provide an empty line above a heading, as in the &lt;code&gt;## Columns&lt;/code&gt; below or else it won’t be processed by Markdown.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;&lt;strong&gt;The &lt;code&gt;wrap&lt;/code&gt; wrapper is optional&lt;/strong&gt; and only used if you want to include any content within the “block.”&lt;br /&gt;
For example, if you wanted to wrap the columns in a background color &lt;em&gt;(like below)&lt;/em&gt; and include the header or other content in that block.&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;ALSO NOTE:&lt;/strong&gt; All the border, rounded, and background color stuff is optional and for example only. Margins and Padding are minimal on the &lt;code&gt;cols&lt;/code&gt; shortcode &lt;em&gt;(p-4, m-2)&lt;/em&gt;) in order to preserve responsive spacing.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;pre class=&quot;language-js&quot;&gt;&lt;code class=&quot;language-js&quot;&gt;&lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;token operator&quot;&gt;%&lt;/span&gt; wrap &lt;span class=&quot;token string&quot;&gt;&quot;px-2 mt-8 rounded-lg pb-2 border border-gray-300 bg-gray-200&quot;&lt;/span&gt; &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;&lt;br /&gt;  ### Columns Example&lt;br /&gt;&lt;br /&gt;  &lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;token operator&quot;&gt;%&lt;/span&gt; columns &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;&lt;br /&gt;    &lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;token operator&quot;&gt;%&lt;/span&gt; cols &lt;span class=&quot;token string&quot;&gt;&quot;bg-gray-100 rounded-lg&quot;&lt;/span&gt; &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;      Left column&lt;br /&gt;    &lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;token operator&quot;&gt;%&lt;/span&gt; endcols &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;&lt;br /&gt;    &lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;token operator&quot;&gt;%&lt;/span&gt; cols &lt;span class=&quot;token string&quot;&gt;&quot;bg-gray-100 rounded-lg&quot;&lt;/span&gt; &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;      Right column&lt;br /&gt;    &lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;token operator&quot;&gt;%&lt;/span&gt; endcols &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;&lt;br /&gt;  &lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;token operator&quot;&gt;%&lt;/span&gt; endcolumns &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;&lt;br /&gt;&lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;token operator&quot;&gt;%&lt;/span&gt; endwrap &lt;span class=&quot;token operator&quot;&gt;%&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;div class=&quot;wrapper p-4 px-2 mt-8 rounded-lg pb-2 border border-gray-300 bg-gray-200&quot;&gt;
&lt;h3&gt;Columns Example&lt;/h3&gt;
&lt;div class=&quot;flex flex-col md:flex-row &quot;&gt;
&lt;div class=&quot;flex-1 p-4 m-2 bg-gray-100 rounded-lg&quot;&gt;
Left column
&lt;/div&gt;
&lt;div class=&quot;flex-1 p-4 m-2 bg-gray-100 rounded-lg&quot;&gt;
Right column
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
</content>
    </entry>
    
    <entry>
      <title>Description List - Shortcodes</title>
      <link href="https://niktayv.netlify.app/2020/09/04/description-list-shortcodes/"/>
      <updated>2020-09-04T17:44:03Z</updated>
      <id>https://niktayv.netlify.app/2020/09/04/description-list-shortcodes/</id>
      <content type="html">&lt;p&gt;This post uses the paired shortcode &lt;code&gt;wrap&lt;/code&gt; and &lt;strong&gt;Description List&lt;/strong&gt; paired shortcodes &lt;code&gt;dl&lt;/code&gt; &lt;em&gt;(description list)&lt;/em&gt;, &lt;code&gt;dt&lt;/code&gt; &lt;em&gt;(description term)&lt;/em&gt;, and &lt;code&gt;dd&lt;/code&gt; &lt;em&gt;(description description)&lt;/em&gt;.&lt;/p&gt;
&lt;p&gt;The &lt;code&gt;wrap&lt;/code&gt; paired shortcode used in the exmaple is optional and is used to wrap the entire list in a rounded border with a gray-200 background.&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;💡 See the &lt;code&gt;/src/utils/paired-shortcodes.js&lt;/code&gt; file for full description and usage examples.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;div class=&quot;wrapper p-4 px-2 mt-8 mb-12 rounded-lg pb-2 border border-gray-300 bg-gray-200&quot;&gt;
&lt;h2&gt;Frequently asked questions&lt;/h2&gt;
&lt;dl class=&quot;&quot;&gt;
&lt;div class=&quot;border-t border-gray-300 mt-4 pt-4 md:grid md:grid-cols-12 md:gap-8&quot;&gt;&lt;dt class=&quot;font-semibold md:col-span-5 &quot;&gt;
How can I create Definition Lists in Markdown?
&lt;/dt&gt;
&lt;dd class=&quot;pb-4 md:col-span-7 md:mt-0  text-gray-600&quot;&gt;
Use my cool shortcodes described above and in the code example below.
&lt;/dd&gt;&lt;/div&gt;
&lt;div class=&quot;border-t border-gray-300 mt-4 pt-4 md:grid md:grid-cols-12 md:gap-8&quot;&gt;&lt;dt class=&quot;font-semibold md:col-span-5 &quot;&gt;
How many List items can I have?
&lt;/dt&gt;
&lt;dd class=&quot;pb-4 md:col-span-7 md:mt-0  text-gray-600&quot;&gt;
As many as you want. Just keep adding more `dt` and `dd` blocks like this one.
&lt;/dd&gt;&lt;/div&gt;
&lt;div class=&quot;border-t border-gray-300 mt-4 pt-4 md:grid md:grid-cols-12 md:gap-8&quot;&gt;&lt;dt class=&quot;font-semibold md:col-span-5 &quot;&gt;
Is it possible to have background colors, borders, etc.?
&lt;/dt&gt;
&lt;dd class=&quot;pb-4 md:col-span-7 md:mt-0  text-gray-600&quot;&gt;
Yep. Just use the `wrap` shortcode, like in this example, and style it however you want.
&lt;/dd&gt;&lt;/div&gt;
&lt;/dl&gt;
&lt;/div&gt;
&lt;pre class=&quot;language-js&quot;&gt;&lt;code class=&quot;language-js&quot;&gt;&lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;token operator&quot;&gt;%&lt;/span&gt; wrap &lt;span class=&quot;token string&quot;&gt;&quot;px-2 mt-8 mb-12 rounded-lg pb-2 border border-gray-300 bg-gray-200&quot;&lt;/span&gt; &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;&lt;br /&gt;  ## Frequently asked questions&lt;br /&gt;&lt;br /&gt;  &lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;token operator&quot;&gt;%&lt;/span&gt; dl &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;&lt;br /&gt;    &lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;token operator&quot;&gt;%&lt;/span&gt; dt &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;      How can &lt;span class=&quot;token constant&quot;&gt;I&lt;/span&gt; create Definition Lists &lt;span class=&quot;token keyword&quot;&gt;in&lt;/span&gt; Markdown&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;&lt;span class=&quot;token operator&quot;&gt;%&lt;/span&gt; enddt &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;    &lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;token operator&quot;&gt;%&lt;/span&gt; dd &lt;span class=&quot;token string&quot;&gt;&quot;text-gray-600&quot;&lt;/span&gt; &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;      Use my cool shortcodes described above and &lt;span class=&quot;token keyword&quot;&gt;in&lt;/span&gt; the code example below&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 operator&quot;&gt;%&lt;/span&gt; enddd &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;&lt;br /&gt;    &lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;token operator&quot;&gt;%&lt;/span&gt; dt &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;      How many List items can &lt;span class=&quot;token constant&quot;&gt;I&lt;/span&gt; have&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;&lt;span class=&quot;token operator&quot;&gt;%&lt;/span&gt; enddt &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;    &lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;token operator&quot;&gt;%&lt;/span&gt; dd &lt;span class=&quot;token string&quot;&gt;&quot;text-gray-600&quot;&lt;/span&gt; &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;      As many &lt;span class=&quot;token keyword&quot;&gt;as&lt;/span&gt; you want&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt; Just keep adding more &lt;span class=&quot;token template-string&quot;&gt;&lt;span class=&quot;token template-punctuation string&quot;&gt;`&lt;/span&gt;&lt;span class=&quot;token string&quot;&gt;dt&lt;/span&gt;&lt;span class=&quot;token template-punctuation string&quot;&gt;`&lt;/span&gt;&lt;/span&gt; and &lt;span class=&quot;token template-string&quot;&gt;&lt;span class=&quot;token template-punctuation string&quot;&gt;`&lt;/span&gt;&lt;span class=&quot;token string&quot;&gt;dd&lt;/span&gt;&lt;span class=&quot;token template-punctuation string&quot;&gt;`&lt;/span&gt;&lt;/span&gt; blocks like &lt;span class=&quot;token keyword&quot;&gt;this&lt;/span&gt; one&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 operator&quot;&gt;%&lt;/span&gt; enddd &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;&lt;br /&gt;    &lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;token operator&quot;&gt;%&lt;/span&gt; dt &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;      Is it possible to have background colors&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt; borders&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt; etc&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;&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;&lt;span class=&quot;token operator&quot;&gt;%&lt;/span&gt; enddt &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;    &lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;token operator&quot;&gt;%&lt;/span&gt; dd &lt;span class=&quot;token string&quot;&gt;&quot;text-gray-600&quot;&lt;/span&gt; &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;      Yep&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt; Just use the &lt;span class=&quot;token template-string&quot;&gt;&lt;span class=&quot;token template-punctuation string&quot;&gt;`&lt;/span&gt;&lt;span class=&quot;token string&quot;&gt;wrap&lt;/span&gt;&lt;span class=&quot;token template-punctuation string&quot;&gt;`&lt;/span&gt;&lt;/span&gt; shortcode&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt; like &lt;span class=&quot;token keyword&quot;&gt;in&lt;/span&gt; &lt;span class=&quot;token keyword&quot;&gt;this&lt;/span&gt; example&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt; and style it however you want&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 operator&quot;&gt;%&lt;/span&gt; enddd &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;&lt;br /&gt;  &lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;token operator&quot;&gt;%&lt;/span&gt; enddl &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;&lt;br /&gt;&lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;token operator&quot;&gt;%&lt;/span&gt; endwrap &lt;span class=&quot;token operator&quot;&gt;%&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
</content>
    </entry>
    
    <entry>
      <title>Blockquotes - Shortcodes</title>
      <link href="https://niktayv.netlify.app/2020/09/05/blockquotes-shortcodes/"/>
      <updated>2020-09-05T17:44:03Z</updated>
      <id>https://niktayv.netlify.app/2020/09/05/blockquotes-shortcodes/</id>
      <content type="html">&lt;h2&gt;Basic Markdown Blockquote&lt;/h2&gt;
&lt;p&gt;Below is a basic blockquote in Markdown.&lt;/p&gt;
&lt;pre class=&quot;language-md&quot;&gt;&lt;code class=&quot;language-md&quot;&gt;&lt;span class=&quot;token blockquote punctuation&quot;&gt;&gt;&lt;/span&gt; this is a blockquote. this is a blockquote.&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Which generates this:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;this is a blockquote. this is a blockquote.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;The minimal styling is managed in &lt;code&gt;/src/assets/css/tailwind.css&lt;/code&gt; which sets left padding and margins of 1rem &lt;em&gt;(16px)&lt;/em&gt; and a left border of 4px colored gray-500:&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;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; pl-4 m-4 border-l-4 border-gray-500&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;/code&gt;&lt;/pre&gt;
&lt;h2&gt;Blockquote Paired Shortcode&lt;/h2&gt;
&lt;p&gt;With a simple &lt;code&gt;bq&lt;/code&gt; shortcode, you can override the default CSS and style it however you like. For example:&lt;/p&gt;
&lt;pre class=&quot;language-js&quot;&gt;&lt;code class=&quot;language-js&quot;&gt;&lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;token operator&quot;&gt;%&lt;/span&gt; bq &lt;span class=&quot;token string&quot;&gt;&quot;p-4 border-red-500 italic text-blue-500 border-t-4 bg-gray-200&quot;&lt;/span&gt; &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;&lt;span class=&quot;token keyword&quot;&gt;this&lt;/span&gt; is another blockquote via the &lt;span class=&quot;token template-string&quot;&gt;&lt;span class=&quot;token template-punctuation string&quot;&gt;`&lt;/span&gt;&lt;span class=&quot;token string&quot;&gt;bq&lt;/span&gt;&lt;span class=&quot;token template-punctuation string&quot;&gt;`&lt;/span&gt;&lt;/span&gt; paired shortcode located &lt;span class=&quot;token keyword&quot;&gt;in&lt;/span&gt; &lt;span class=&quot;token template-string&quot;&gt;&lt;span class=&quot;token template-punctuation string&quot;&gt;`&lt;/span&gt;&lt;span class=&quot;token string&quot;&gt;/utils/paired-shorcodes.js&lt;/span&gt;&lt;span class=&quot;token template-punctuation string&quot;&gt;`&lt;/span&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 operator&quot;&gt;%&lt;/span&gt; endbq &lt;span class=&quot;token operator&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;Generates the customized blockquote below:&lt;/p&gt;
&lt;blockquote class=&quot;p-4 border-red-500 italic text-blue-500 border-t-4 bg-gray-200&quot;&gt;
this is another blockquote via the `bq` paired shortcode located in `/utils/paired-shorcodes.js`.
&lt;/blockquote&gt;
&lt;h2&gt;Adding Emoji to Blockquotes &lt;em&gt;(or anywhere you want)&lt;/em&gt;&lt;/h2&gt;
&lt;p&gt;Because this system uses &lt;a href=&quot;https://www.npmjs.com/package/markdown-it-emoji&quot;&gt;markdown-it-emoji&lt;/a&gt; we can insert Emojis anywhere by using their &lt;code&gt;:code:&lt;/code&gt; as in the exmaple below:&lt;/p&gt;
&lt;pre class=&quot;language-md&quot;&gt;&lt;code class=&quot;language-md&quot;&gt;&lt;span class=&quot;token blockquote punctuation&quot;&gt;&gt;&lt;/span&gt; :bulb: &lt;span class=&quot;token bold&quot;&gt;&lt;span class=&quot;token punctuation&quot;&gt;**&lt;/span&gt;&lt;span class=&quot;token content&quot;&gt;NOTE:&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;**&lt;/span&gt;&lt;/span&gt; A blockquote with a nice Emoji to draw attention.&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Generates the following blockquote:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;💡 &lt;strong&gt;NOTE:&lt;/strong&gt; A blockquote with a nice Emoji to draw attention.&lt;/p&gt;
&lt;/blockquote&gt;
</content>
    </entry>
    
    <entry>
      <title>Featured Post Images</title>
      <link href="https://niktayv.netlify.app/2020/09/06/featured-post-images/"/>
      <updated>2020-09-06T17:44:03Z</updated>
      <id>https://niktayv.netlify.app/2020/09/06/featured-post-images/</id>
      <content type="html">&lt;p&gt;Just like in Wordpress, it’s easy to add a &lt;strong&gt;Featured Image&lt;/strong&gt; to display at the top of the page.&lt;/p&gt;
&lt;p&gt;Unlike in Wordpress, you can also easily manage the height of the Featured Image at any of the &lt;a href=&quot;https://tailwindcss.com/docs/breakpoints&quot;&gt;TailwindCSS breakpoints&lt;/a&gt;.&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;💡 TIP: You could also use the &lt;strong&gt;“hero”&lt;/strong&gt; Frontmatter settings, examples in the &lt;code&gt;index.md&lt;/code&gt; file for all the options and features for a &lt;em&gt;video&lt;/em&gt;, &lt;em&gt;graphic&lt;/em&gt;, &lt;em&gt;carousel&lt;/em&gt;, or &lt;em&gt;split&lt;/em&gt; hero section.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;h2&gt;How to manage Featured Post Images in this system&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Local Image&lt;/strong&gt;
&lt;ul&gt;
&lt;li&gt;Create an image in your favorite image editor.&lt;/li&gt;
&lt;li&gt;Generally it’s best if the image is landscape and not portrait orientation.&lt;/li&gt;
&lt;li&gt;Place it wherever you like in the &lt;code&gt;/src/assets/images/&lt;/code&gt; directory or sub-directories.&lt;/li&gt;
&lt;li&gt;Enter the path to the image relative to &lt;code&gt;/src/assets/images/&lt;/code&gt;
&lt;ul&gt;
&lt;li&gt;For example, if the image file is “featured-image.jpg” and you placed it in &lt;code&gt;/src/assets/images/2020/09/&lt;/code&gt; then you’d enter &lt;code&gt;2020/09/featured-image.jpg&lt;/code&gt; in the &lt;code&gt;images:feature:&lt;/code&gt; frontmatter.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;External Image&lt;/strong&gt;
&lt;ul&gt;
&lt;li&gt;If you’d like to use an externally hosted image &lt;em&gt;(&lt;a href=&quot;https://unsplash.com/&quot;&gt;like from Unsplash&lt;/a&gt;)&lt;/em&gt;&lt;/li&gt;
&lt;li&gt;Enter the full URL in the &lt;code&gt;images:feature:&lt;/code&gt; frontmatter.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;Set Featured Image Height&lt;/h2&gt;
&lt;p&gt;Default image height is currently set to &lt;code&gt;h-48 md-1/3&lt;/code&gt; which is &lt;a href=&quot;https://tailwindcss.com/docs/height#app&quot;&gt;basic TailwindCSS&lt;/a&gt; except for that custom theme height at medium and above of &lt;code&gt;md-1/3&lt;/code&gt; which is set in &lt;code&gt;/tailwind.config.js&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;You can override this with any TailwindCSS height settings, plus the custom settings in &lt;code&gt;/tailwind.config.js&lt;/code&gt; for any of TailwindCSS’s default breakpoints.&lt;/p&gt;
&lt;h2&gt;Set Featured Image Position&lt;/h2&gt;
&lt;p&gt;Lastly, you can set the image’s position within the container by using &lt;a href=&quot;https://tailwindcss.com/docs/object-position&quot;&gt;TailwindCCS’s Object Position&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Default is set to &lt;code&gt;object-center&lt;/code&gt; but if your image’s focus area is off center, you can try &lt;code&gt;object-left&lt;/code&gt; or &lt;code&gt;object-right&lt;/code&gt; to see if that placement is better&lt;/p&gt;
&lt;p&gt;For example, this page’s frontmatter currently looks like this:&lt;/p&gt;
&lt;pre class=&quot;language-yaml&quot;&gt;&lt;code class=&quot;language-yaml&quot;&gt;&lt;span class=&quot;token comment&quot;&gt;# /src/posts/2020-09-06-featured-images.md&lt;/span&gt;&lt;br /&gt;&lt;span class=&quot;token key atrule&quot;&gt;title&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt; Featured Post Images&lt;br /&gt;&lt;span class=&quot;token key atrule&quot;&gt;date&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;token datetime number&quot;&gt;2020-09-06T17:44:03.000Z&lt;/span&gt;&lt;br /&gt;&lt;span class=&quot;token key atrule&quot;&gt;excerpt&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt; Easily add featured images (heros) just like in Wordpress.&lt;br /&gt;&lt;span class=&quot;token key atrule&quot;&gt;author&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt; shane&lt;span class=&quot;token punctuation&quot;&gt;-&lt;/span&gt;robinson&lt;br /&gt;&lt;span class=&quot;token key atrule&quot;&gt;seo&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt;&lt;br /&gt;  &lt;span class=&quot;token key atrule&quot;&gt;title&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt;&lt;br /&gt;  &lt;span class=&quot;token key atrule&quot;&gt;description&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt;&lt;br /&gt;  &lt;span class=&quot;token key atrule&quot;&gt;image&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt; 2020/09/featured&lt;span class=&quot;token punctuation&quot;&gt;-&lt;/span&gt;image.jpg&lt;br /&gt;&lt;span class=&quot;token key atrule&quot;&gt;images&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;token comment&quot;&gt;# relative to /src/assets/images/&lt;/span&gt;&lt;br /&gt;  &lt;span class=&quot;token key atrule&quot;&gt;feature&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt; 2020/09/featured&lt;span class=&quot;token punctuation&quot;&gt;-&lt;/span&gt;image.jpg &lt;span class=&quot;token comment&quot;&gt;# https://source.unsplash.com/random/800x600&lt;/span&gt;&lt;br /&gt;  &lt;span class=&quot;token key atrule&quot;&gt;thumb&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt; 2020/09/featured&lt;span class=&quot;token punctuation&quot;&gt;-&lt;/span&gt;image.jpg&lt;br /&gt;  &lt;span class=&quot;token key atrule&quot;&gt;align&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt; object&lt;span class=&quot;token punctuation&quot;&gt;-&lt;/span&gt;left &lt;span class=&quot;token comment&quot;&gt;# object-center (default) - other options at https://tailwindcss.com/docs/object-position&lt;/span&gt;&lt;br /&gt;  &lt;span class=&quot;token key atrule&quot;&gt;height&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt; h&lt;span class=&quot;token punctuation&quot;&gt;-&lt;/span&gt;64 md&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt;h&lt;span class=&quot;token punctuation&quot;&gt;-&lt;/span&gt;1/3 &lt;span class=&quot;token comment&quot;&gt;# optional. Default = h-48 md:h-1/3&lt;/span&gt;&lt;br /&gt;&lt;span class=&quot;token key atrule&quot;&gt;tags&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; featured&lt;span class=&quot;token punctuation&quot;&gt;-&lt;/span&gt;image&lt;br /&gt;  &lt;span class=&quot;token punctuation&quot;&gt;-&lt;/span&gt; hero&lt;br /&gt;  &lt;span class=&quot;token punctuation&quot;&gt;-&lt;/span&gt; frontmatter&lt;br /&gt;  &lt;span class=&quot;token punctuation&quot;&gt;-&lt;/span&gt; tailwindcss&lt;/code&gt;&lt;/pre&gt;
</content>
    </entry>
    
    <entry>
      <title>Full Frontmatter Example</title>
      <link href="https://niktayv.netlify.app/2020/09/07/full-frontmatter-example/"/>
      <updated>2020-09-07T17:44:03Z</updated>
      <id>https://niktayv.netlify.app/2020/09/07/full-frontmatter-example/</id>
      <content type="html">&lt;p&gt;Currently, the frontmatter in the &lt;code&gt;index.md&lt;/code&gt; file houses all the values and controls currently available…even if they aren’t used on the home page.&lt;/p&gt;
&lt;p&gt;Any of the frontmatter elements used on the home page can be used on ANY Page or Post in this system.&lt;/p&gt;
&lt;p&gt;As of this posting, the &lt;code&gt;index.md&lt;/code&gt; frontmatter looks like this:&lt;/p&gt;
&lt;pre class=&quot;language-yaml&quot;&gt;&lt;code class=&quot;language-yaml&quot;&gt;&lt;span class=&quot;token comment&quot;&gt;# This is a full listing of available Frontmatter options, available for any content (.md) file.&lt;/span&gt;&lt;br /&gt;&lt;span class=&quot;token key atrule&quot;&gt;title&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt; Let&#39;s talk about static sites&lt;span class=&quot;token tag&quot;&gt;!&lt;/span&gt;&lt;br /&gt;&lt;span class=&quot;token key atrule&quot;&gt;layout&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt; page&lt;br /&gt;&lt;span class=&quot;token key atrule&quot;&gt;excerpt&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;token comment&quot;&gt;# used for page excerpts and META (will be overwritten if SEO used below)&lt;/span&gt;&lt;br /&gt;&lt;span class=&quot;token key atrule&quot;&gt;author&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt; shane&lt;span class=&quot;token punctuation&quot;&gt;-&lt;/span&gt;robinson &lt;span class=&quot;token comment&quot;&gt;# only displayed on Post lists and detail views. Defaults to _data/meta.authorURL&lt;/span&gt;&lt;br /&gt;&lt;span class=&quot;token key atrule&quot;&gt;eleventyNavigation&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;token comment&quot;&gt;# Required if want to display in Main Nav Bar&lt;/span&gt;&lt;br /&gt;  &lt;span class=&quot;token key atrule&quot;&gt;key&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt; main &lt;span class=&quot;token comment&quot;&gt;# &quot;main&quot; is required&lt;/span&gt;&lt;br /&gt;  &lt;span class=&quot;token key atrule&quot;&gt;title&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt; Welcome &lt;span class=&quot;token comment&quot;&gt;# as it will appear in the nav&lt;/span&gt;&lt;br /&gt;  &lt;span class=&quot;token key atrule&quot;&gt;order&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;token number&quot;&gt;1&lt;/span&gt; &lt;span class=&quot;token comment&quot;&gt;# order to display in the nav (index = 1)&lt;/span&gt;&lt;br /&gt;&lt;span class=&quot;token key atrule&quot;&gt;seo&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;token comment&quot;&gt;# SEO values are used for OG and will overwrite &#39;title&#39; and &#39;excerpt&#39; above&lt;/span&gt;&lt;br /&gt;  &lt;span class=&quot;token key atrule&quot;&gt;title&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt;&lt;br /&gt;  &lt;span class=&quot;token key atrule&quot;&gt;description&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt;&lt;br /&gt;  &lt;span class=&quot;token key atrule&quot;&gt;image&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;token comment&quot;&gt;# used for OG:image and Twitter:image. Overrides default set in _data/meta.siteImage&lt;/span&gt;&lt;br /&gt;&lt;span class=&quot;token key atrule&quot;&gt;hero&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt; graphic &lt;span class=&quot;token comment&quot;&gt;# options: carousel, graphic, video, split (text &amp;amp; image)&lt;/span&gt;&lt;br /&gt;&lt;span class=&quot;token key atrule&quot;&gt;heroSettings&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt;&lt;br /&gt;  &lt;span class=&quot;token key atrule&quot;&gt;height&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt;&lt;br /&gt;    &lt;span class=&quot;token key atrule&quot;&gt;mobile&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;token comment&quot;&gt;# options = h-1/1 (default = full screen), h-1/2, h-1/3, h-3/4, h-9/10, h-48 (12rem, 192px), h-56 (14rem, 224px), h-64 (16rem, 256px)&lt;/span&gt;&lt;br /&gt;    &lt;span class=&quot;token key atrule&quot;&gt;desktop&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;token comment&quot;&gt;# leave blank to inherit &quot;mobile&quot; height (default = full screen)&lt;/span&gt;&lt;br /&gt;  &lt;span class=&quot;token key atrule&quot;&gt;bg&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt;&lt;br /&gt;    &lt;span class=&quot;token key atrule&quot;&gt;color&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;token comment&quot;&gt;# default bg-black&lt;/span&gt;&lt;br /&gt;    &lt;span class=&quot;token key atrule&quot;&gt;image&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt; home/copter.jpg &lt;span class=&quot;token comment&quot;&gt;# relative to /assets/images/&lt;/span&gt;&lt;br /&gt;    &lt;span class=&quot;token key atrule&quot;&gt;imagePosition&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;token comment&quot;&gt;# options = bg-center (default), bg-left, bg-right&lt;/span&gt;&lt;br /&gt;    &lt;span class=&quot;token key atrule&quot;&gt;video&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt; pixabay&lt;span class=&quot;token punctuation&quot;&gt;-&lt;/span&gt;john&lt;span class=&quot;token punctuation&quot;&gt;-&lt;/span&gt;macdougall.mp4 &lt;span class=&quot;token comment&quot;&gt;# local relative /assets/video/, or full https://... if remote?&lt;/span&gt;&lt;br /&gt;    &lt;span class=&quot;token key atrule&quot;&gt;opacityMobile&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt; opacity&lt;span class=&quot;token punctuation&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;token number&quot;&gt;50&lt;/span&gt; &lt;span class=&quot;token comment&quot;&gt;# options opacity-n, 5, 10, 15, 20, 25, 50, 75, 100 (default)&lt;/span&gt;&lt;br /&gt;    &lt;span class=&quot;token key atrule&quot;&gt;opacityDesktop&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt; opacity&lt;span class=&quot;token punctuation&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;token number&quot;&gt;75&lt;/span&gt; &lt;span class=&quot;token comment&quot;&gt;# Leave blank to inherit opacityMobile, use same options as opacityMobile&lt;/span&gt;&lt;br /&gt;  &lt;span class=&quot;token key atrule&quot;&gt;headingText&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt; Exploring the limits of the possible&lt;br /&gt;  &lt;span class=&quot;token key atrule&quot;&gt;headingTextColor&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;token comment&quot;&gt;# default = text-white (can use any TailwindCSS text-[color]-[xxx])&lt;/span&gt;&lt;br /&gt;  &lt;span class=&quot;token key atrule&quot;&gt;headingTextCase&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;token comment&quot;&gt;# default = as typed - options: uppercase, lowercase, capitalize&lt;/span&gt;&lt;br /&gt;  &lt;span class=&quot;token key atrule&quot;&gt;subheadingText&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt; My observations and musing in the areas of curiosity&lt;br /&gt;  &lt;span class=&quot;token key atrule&quot;&gt;subheadingTextColor&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;token comment&quot;&gt;# Leave empty to inherit headingTextColor or default (text-white) or use any text-[color]-[xxx]&lt;/span&gt;&lt;br /&gt;  &lt;span class=&quot;token key atrule&quot;&gt;buttonText&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt; Contact Me &lt;span class=&quot;token comment&quot;&gt;# no button generated if left blank&lt;/span&gt;&lt;br /&gt;  &lt;span class=&quot;token key atrule&quot;&gt;buttonURL&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt; /contact/ &lt;span class=&quot;token comment&quot;&gt;# full url required. Example: https://thisdomain.com/somepage/&lt;/span&gt;&lt;br /&gt;  &lt;span class=&quot;token key atrule&quot;&gt;buttonTextColor&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;token comment&quot;&gt;# leave blank to inherit from /src/_data/colors.buttonCustom or buttonDefault&lt;/span&gt;&lt;br /&gt;  &lt;span class=&quot;token key atrule&quot;&gt;buttonBgColor&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;token comment&quot;&gt;# leave blank to inherit from /src/_data/colors.buttonCustom.bg or buttonDefault.bg&lt;/span&gt;&lt;br /&gt;  &lt;span class=&quot;token key atrule&quot;&gt;buttonBgHover&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;token comment&quot;&gt;# leave blank to inherit from /src/_data/colors.buttonCustom.bgHover or buttonDefault.bgHover&lt;/span&gt;&lt;br /&gt;  &lt;span class=&quot;token key atrule&quot;&gt;buttonBorder&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;token comment&quot;&gt;# leave blank to inherit from /src/_data/colors.buttonCustom.border or buttonDefault.border&lt;/span&gt;&lt;br /&gt;  &lt;span class=&quot;token key atrule&quot;&gt;carousel&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt;&lt;br /&gt;    &lt;span class=&quot;token key atrule&quot;&gt;images&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; home/6.jpg&lt;br /&gt;      &lt;span class=&quot;token punctuation&quot;&gt;-&lt;/span&gt; home/7.jpg&lt;br /&gt;      &lt;span class=&quot;token punctuation&quot;&gt;-&lt;/span&gt; home/8.jpg&lt;br /&gt;      &lt;span class=&quot;token punctuation&quot;&gt;-&lt;/span&gt; home/9.jpg&lt;/code&gt;&lt;/pre&gt;
</content>
    </entry>
    
    <entry>
      <title>YouTube Video Embed</title>
      <link href="https://niktayv.netlify.app/2020/09/08/youtube-video-embed/"/>
      <updated>2020-09-08T17:44:03Z</updated>
      <id>https://niktayv.netlify.app/2020/09/08/youtube-video-embed/</id>
      <content type="html">&lt;p&gt;This system ships with a custom YouTube Embed shortcode that makes it easy to embed as many videos in your markdown posts/pages as you like.&lt;/p&gt;
&lt;h2&gt;Features&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;Only requires the YouTube ID &lt;em&gt;(with default fall back)&lt;/em&gt;.&lt;/li&gt;
&lt;li&gt;Allows you to set “Title” which is required for Accessibility &lt;em&gt;(with default fall back to “YouTube Video”)&lt;/em&gt;.&lt;/li&gt;
&lt;li&gt;Allows you to set custom ratio to display older videos correctly &lt;em&gt;(with default fall back to 16:9)&lt;/em&gt;.&lt;/li&gt;
&lt;li&gt;Allows you to set the clip start time in “mm:ss” format &lt;em&gt;(optional)&lt;/em&gt;.&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;Usage&lt;/h2&gt;
&lt;p&gt;Find the YouTube video you want to embed and grab the video ID. In the following example the video ID is &lt;code&gt;oHg5SJYRHA0&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://www.youtube.com/watch?v=oHg5SJYRHA0&quot;&gt;https://www.youtube.com/watch?v=oHg5SJYRHA0&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;We put the video ID in the first attribute.&lt;/p&gt;
&lt;p&gt;Title in the second.&lt;/p&gt;
&lt;p&gt;Also, in this particular example, the video is older and is not in the 16:9 format ratio. So we’ll take advantage of setting a custom ratio in the last attribute. I arrived at “8:6” by checking the size of the video’s embed, which is 1217 x 913, which divides to 1.33…as does 8/6.&lt;/p&gt;
&lt;p&gt;And we can leave the fourth attribure, &lt;code&gt;start time&lt;/code&gt; completely off because we want the video to start at the beginning. If we wanted it to start at 1:30 we would simple put “1:30” in the third attribute.&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;NOTE: If you want the video to display at regular 16:9 ratio and start at the beginning, you don’t even need to provide the empty third and fouth attributes. And if you just wanted the accessible Title to be the default “YouTube Video”, you wouldn’t even need the second attribute.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;pre class=&quot;language-liquid&quot;&gt;&lt;code class=&quot;language-liquid&quot;&gt;&lt;span class=&quot;token liquid language-liquid&quot;&gt;&lt;span class=&quot;token delimiter punctuation&quot;&gt;{%&lt;/span&gt; youtube &lt;span class=&quot;token string&quot;&gt;&quot;oHg5SJYRHA0&quot;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&quot;Fun Title Here&quot;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&quot;8:6&quot;&lt;/span&gt; &lt;span class=&quot;token delimiter punctuation&quot;&gt;%}&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;div id=&quot;oHg5SJYRHA0&quot; style=&quot;position:relative; width:100%; padding-bottom:75%&quot;&gt;&lt;iframe style=&quot;position:absolute; top:0; right:0; bottom:0; left:0; width:100%; height:100%&quot; width=&quot;100%&quot; height=&quot;100%&quot; title=&quot;Fun Title Here&quot; src=&quot;https://www.youtube.com/embed/oHg5SJYRHA0&quot; frameborder=&quot;0&quot; allow=&quot;accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture&quot; allowfullscreen=&quot;&quot; loading=&quot;lazy&quot;&gt;&lt;/iframe&gt;&lt;/div&gt;
</content>
    </entry>
    
    <entry>
      <title>SVG - Shortcode</title>
      <link href="https://niktayv.netlify.app/2020/09/09/svg-shortcode/"/>
      <updated>2020-09-09T17:44:03Z</updated>
      <id>https://niktayv.netlify.app/2020/09/09/svg-shortcode/</id>
      <content type="html">&lt;p&gt;This template uses the &lt;a href=&quot;https://github.com/patrickxchong/eleventy-plugin-svg-sprite&quot;&gt;eleventy-plugin-svg-sprite&lt;/a&gt; package which compiles an SVG Sprite and installs a shortcode to display SVG in any file (Markdown, Nunjucks etc).&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;🔥 Massive Thank You to &lt;a href=&quot;https://github.com/eastslopestudio/eleventy-starter&quot;&gt;Ryan Scherler and his Eventy Starter&lt;/a&gt; where I first learned about the svg-sprite package. Thanks also to Patrick Chong for creating &lt;a href=&quot;https://www.npmjs.com/package/eleventy-plugin-svg-sprite&quot;&gt;eleventy-plugin-svg-sprite&lt;/a&gt;.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;h2&gt;SVG Sprites : Managing Display, Colors, &amp;amp; Links&lt;/h2&gt;
&lt;blockquote&gt;
&lt;p&gt;NOTE: The post, &lt;a href=&quot;https://niktayv.netlify.app/2020/09/02/managing-social-share-author-and-footer-icons/&quot;&gt;Managing Social Share, Author, and Footer Icons&lt;/a&gt; goes into a bit of detail on how to manage those elements.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;SVG Sprites live in the &lt;code&gt;/src/assets/svg/&lt;/code&gt; directory and are currently used in this system on:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;The icons in the Footer
&lt;ul&gt;
&lt;li&gt;Manage their colors in &lt;code&gt;/src/_data/colors.js&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;Manage which icons display and their links in &lt;code&gt;/src/_data/social.json&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;Disable them competely in &lt;code&gt;/src/_data/structure.js&lt;/code&gt; by setting &lt;code&gt;g_showFooterSocialIcons: false&lt;/code&gt;.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;The logo &lt;em&gt;(both desktop and mobile)&lt;/em&gt; in the Nav Bar
&lt;ul&gt;
&lt;li&gt;Manage their colors in &lt;code&gt;/src/_data/colors.js&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;Create your own and name them &lt;code&gt;logo.svg&lt;/code&gt; and &lt;code&gt;logo_mobile.svg&lt;/code&gt; and replace the current files in &lt;code&gt;/src/assets/svg/&lt;/code&gt; directory&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;The Social Share icons on Post Details
&lt;ul&gt;
&lt;li&gt;Manage their colors in &lt;code&gt;/src/_data/colors.js&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;Manage their functionality in &lt;code&gt;/src/_includes/components/socialshare.njk&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;Disable them completely in &lt;code&gt;/src/_data/structure.js&lt;/code&gt; by setting &lt;code&gt;g_showSocialShareIcons: false&lt;/code&gt; or disable individual plaforms by setting their values to &lt;code&gt;false&lt;/code&gt;.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;The Author’s social websites on the Author Details
&lt;ul&gt;
&lt;li&gt;Manage their colors in &lt;code&gt;/src/_data/colors.js&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;Manage which icons display and their links in &lt;code&gt;/src/_data/authors.json&lt;/code&gt; for each Author&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;Adding Your Own SVGs to the System&lt;/h2&gt;
&lt;p&gt;If you want to add your own SVGs for use with the SVG Sprite system and SVG Shortcode, you’ll have to first add them to the &lt;code&gt;/src/assets/svg/&lt;/code&gt; directory and make sure they are named using the same syntax as the SVGs already present.&lt;/p&gt;
&lt;p&gt;You should also open those SVGs in your text/coding editor and see how they have been modified for accessibility and to return the best Lighthouse optimization scores.&lt;/p&gt;
&lt;h2&gt;Using SVG Sprites in .md Content&lt;/h2&gt;
&lt;p&gt;If you’re happily typing along on that next great blog post and you realize what it really needs is a SVG, you’re in luck!&lt;/p&gt;
&lt;svg class=&quot;fill-current mt-1 mr-2 h-10 w-10 text-blue-500 float-left&quot; aria-describedby=&quot;symbol-github-desc&quot; aria-labelledby=&quot;symbol-github-desc&quot; role=&quot;group&quot;&gt;
                &lt;desc id=&quot;symbol-github-desc-content&quot;&gt;github icon&lt;/desc&gt;
                &lt;use xlink:href=&quot;#svg-github&quot;&gt;&lt;/use&gt;
            &lt;/svg&gt;
&lt;p&gt;Just use the SVG Shortcode installed by &lt;a href=&quot;https://github.com/patrickxchong/eleventy-plugin-svg-sprite&quot;&gt;eleventy-plugin-svg-sprite&lt;/a&gt; to insert a SVG anywhere and control its size, color, padding, position, float, etc. For example, the following code returns the GitHub SVG floating to the left:&lt;/p&gt;
&lt;pre class=&quot;language-md&quot;&gt;&lt;code class=&quot;language-md&quot;&gt;{% svg &quot;github&quot;, &quot;mt-1 mr-2 h-10 w-10 text-blue-500 float-left&quot; %}&lt;/code&gt;&lt;/pre&gt;
</content>
    </entry>
    
    <entry>
      <title>Site META, OG, and Twitter Cards</title>
      <link href="https://niktayv.netlify.app/2020/09/10/site-meta-og-and-twitter-cards/"/>
      <updated>2020-09-10T17:44:03Z</updated>
      <id>https://niktayv.netlify.app/2020/09/10/site-meta-og-and-twitter-cards/</id>
      <content type="html">&lt;p&gt;This system ships with the ability to manage full site META, open graph, and Twitter card data and images.&lt;/p&gt;
&lt;h2&gt;Managing Top Level Data&lt;/h2&gt;
&lt;p&gt;Using the &lt;code&gt;/src/_data/meta.js&lt;/code&gt; file, you can set top level site data, fallback data, and misc data such as Author and Addres information.&lt;/p&gt;
&lt;p&gt;One of the first things you’ll want to do upon installing and gonfiguring this 11ty starter will be to change the values in this file to your default site data.&lt;/p&gt;
&lt;pre class=&quot;language-js&quot;&gt;&lt;code class=&quot;language-js&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;br /&gt;	siteURL&lt;span class=&quot;token operator&quot;&gt;:&lt;/span&gt; process&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;env&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;token constant&quot;&gt;URL&lt;/span&gt; &lt;span class=&quot;token operator&quot;&gt;||&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&#39;http://localhost:8080&#39;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt;&lt;br /&gt;	siteName&lt;span class=&quot;token operator&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&quot;Shane Robinson&#39;s 11ty | TailwindCSS | Alpine.js Template&quot;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt;&lt;br /&gt;	siteDescription&lt;span class=&quot;token operator&quot;&gt;:&lt;/span&gt;&lt;br /&gt;		&lt;span class=&quot;token string&quot;&gt;&#39;A highly configurable 11ty template to quickly spin up a fully functional website with TailwindCSS and Alpine.js baked in.&#39;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt;&lt;br /&gt;	siteImage&lt;span class=&quot;token operator&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&#39;/assets/images/site/default.png&#39;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt;&lt;br /&gt;	lang&lt;span class=&quot;token operator&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&#39;en&#39;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt;&lt;br /&gt;	locale&lt;span class=&quot;token operator&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&#39;en_us&#39;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt;&lt;br /&gt;	authorName&lt;span class=&quot;token operator&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&#39;Shane Robinson&#39;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt;&lt;br /&gt;	authorURL&lt;span class=&quot;token operator&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&#39;shane-robinson&#39;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt;&lt;br /&gt;	authorEmail&lt;span class=&quot;token operator&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&#39;shane@shanerobinson.com&#39;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt;&lt;br /&gt;	twitterSite&lt;span class=&quot;token operator&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&#39;@shanerobinson&#39;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt;&lt;br /&gt;	twitterCreator&lt;span class=&quot;token operator&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&#39;@shanerobinson&#39;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt;&lt;br /&gt;	address&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;		street&lt;span class=&quot;token operator&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&#39;123 Main Street&#39;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt;&lt;br /&gt;		city&lt;span class=&quot;token operator&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&#39;Anytown&#39;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt;&lt;br /&gt;		state&lt;span class=&quot;token operator&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&#39;KZ&#39;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt;&lt;br /&gt;		zip&lt;span class=&quot;token operator&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&#39;54321&#39;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt;&lt;br /&gt;		phoneDisplay&lt;span class=&quot;token operator&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&#39;+1 (123) 456-7890&#39;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt;&lt;br /&gt;		phoneCall&lt;span class=&quot;token operator&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&#39;+11234567890&#39;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt;&lt;br /&gt;		email&lt;span class=&quot;token operator&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&#39;hello@domain.com&#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;/code&gt;&lt;/pre&gt;
&lt;h2&gt;Managing META and SEO at the Page and Post Level&lt;/h2&gt;
&lt;p&gt;Using Frontmatter in the Posts and Pages .md files, you can override the default values setup in the &lt;code&gt;/src/_data/meta.js&lt;/code&gt; file above.&lt;/p&gt;
&lt;p&gt;Take for example this very page’s Frontmatter:&lt;/p&gt;
&lt;pre class=&quot;language-yaml&quot;&gt;&lt;code class=&quot;language-yaml&quot;&gt;&lt;span class=&quot;token punctuation&quot;&gt;---&lt;/span&gt;&lt;br /&gt;&lt;span class=&quot;token key atrule&quot;&gt;title&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt; Site META&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt; OG&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt; and Twitter Cards&lt;br /&gt;&lt;span class=&quot;token key atrule&quot;&gt;date&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;token datetime number&quot;&gt;2020-09-10T17:44:03.000Z&lt;/span&gt;&lt;br /&gt;&lt;span class=&quot;token key atrule&quot;&gt;excerpt&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt; Manage Site META data&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt; open graph&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt; and Twitter Card content at the Post and Page level&lt;br /&gt;&lt;span class=&quot;token key atrule&quot;&gt;author&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt; shane&lt;span class=&quot;token punctuation&quot;&gt;-&lt;/span&gt;robinson&lt;br /&gt;&lt;span class=&quot;token key atrule&quot;&gt;seo&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt;&lt;br /&gt;  &lt;span class=&quot;token key atrule&quot;&gt;title&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt;&lt;br /&gt;  &lt;span class=&quot;token key atrule&quot;&gt;description&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt;&lt;br /&gt;  &lt;span class=&quot;token key atrule&quot;&gt;image&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt; 2020/09/twitter&lt;span class=&quot;token punctuation&quot;&gt;-&lt;/span&gt;card&lt;span class=&quot;token punctuation&quot;&gt;-&lt;/span&gt;image.png&lt;br /&gt;&lt;span class=&quot;token key atrule&quot;&gt;images&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;token comment&quot;&gt;# relative to /src/assets/images/&lt;/span&gt;&lt;br /&gt;  &lt;span class=&quot;token key atrule&quot;&gt;feature&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt;&lt;br /&gt;  &lt;span class=&quot;token key atrule&quot;&gt;thumb&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt; 2020/09/twitter&lt;span class=&quot;token punctuation&quot;&gt;-&lt;/span&gt;card&lt;span class=&quot;token punctuation&quot;&gt;-&lt;/span&gt;image.png&lt;br /&gt;  &lt;span class=&quot;token key atrule&quot;&gt;align&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;token comment&quot;&gt;# object-center (default) - other options at https://tailwindcss.com/docs/object-position&lt;/span&gt;&lt;br /&gt;  &lt;span class=&quot;token key atrule&quot;&gt;height&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;token comment&quot;&gt;# optional. Default = h-48 md:h-1/3&lt;/span&gt;&lt;br /&gt;&lt;span class=&quot;token key atrule&quot;&gt;tags&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; meta&lt;br /&gt;  &lt;span class=&quot;token punctuation&quot;&gt;-&lt;/span&gt; open&lt;span class=&quot;token punctuation&quot;&gt;-&lt;/span&gt;graph&lt;br /&gt;  &lt;span class=&quot;token punctuation&quot;&gt;-&lt;/span&gt; twitter&lt;br /&gt;  &lt;span class=&quot;token punctuation&quot;&gt;-&lt;/span&gt; structure&lt;br /&gt;  &lt;span class=&quot;token punctuation&quot;&gt;-&lt;/span&gt; customization&lt;br /&gt;  &lt;span class=&quot;token punctuation&quot;&gt;-&lt;/span&gt; frontmatter&lt;br /&gt;&lt;span class=&quot;token punctuation&quot;&gt;---&lt;/span&gt;&lt;br /&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;The &lt;code&gt;seo: image: 2020/09/twitter-card-image.png&lt;/code&gt; will be used as the Twitter card and Open Graph image if you view the HTML source of this page.&lt;/p&gt;
&lt;p&gt;You can also see that same image is used for the &lt;code&gt;images: thumb:&lt;/code&gt;. I thought about having a single image but thought some editors may want to have separate control over individual images used for OG and Twitter and the thumbnail displayed on the Posts Listing and Tags Listing pages.&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;NOTE: There’s an entire post about &lt;a href=&quot;https://niktayv.netlify.app/2020/09/06/featured-post-images/&quot;&gt;managing Feature Post Images&lt;/a&gt; which you can see if left blank in this Post.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;h2&gt;Fallback Data&lt;/h2&gt;
&lt;p&gt;Take a look at the &lt;code&gt;/src/_includes/head.njk&lt;/code&gt; file and you’ll see how the HTML HEAD content is generated based on what data is available.&lt;/p&gt;
&lt;p&gt;For example, in a Post’s Frontmatter, if the Editor does NOT provide &lt;code&gt;seo: title:&lt;/code&gt; content, then the &lt;code&gt;og:description&lt;/code&gt; looks for the frontmatter &lt;code&gt;excerpt&lt;/code&gt; value and if that doesn’t exist then it finally falls back to the &lt;code&gt;meta.siteDescription&lt;/code&gt; in the &lt;code&gt;/src/_data/meta.js&lt;/code&gt; file.&lt;/p&gt;
&lt;p&gt;Here’s the OG and Twitter card snippets from the &lt;code&gt;/src/_includes/partials/head.njk&lt;/code&gt; file:&lt;/p&gt;
&lt;pre class=&quot;language-html&quot;&gt;&lt;code class=&quot;language-html&quot;&gt;{#- Open Graph #}&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;meta&lt;/span&gt; &lt;span class=&quot;token attr-name&quot;&gt;property&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;og:site_name&lt;span class=&quot;token punctuation&quot;&gt;&quot;&lt;/span&gt;&lt;/span&gt; &lt;span class=&quot;token attr-name&quot;&gt;content&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;{{ meta.title }}&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;meta&lt;/span&gt;&lt;br /&gt;	&lt;span class=&quot;token attr-name&quot;&gt;property&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;og: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;content&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;{{ seo.title or title }} | {{ meta.siteName }}&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;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;meta&lt;/span&gt;&lt;br /&gt;	&lt;span class=&quot;token attr-name&quot;&gt;property&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;og:description&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;content&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;{{ seo.description or excerpt or meta.siteDescription }}&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;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;meta&lt;/span&gt; &lt;span class=&quot;token attr-name&quot;&gt;property&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;og:url&lt;span class=&quot;token punctuation&quot;&gt;&quot;&lt;/span&gt;&lt;/span&gt; &lt;span class=&quot;token attr-name&quot;&gt;content&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;{{ absolutePageUrl }}&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;meta&lt;/span&gt; &lt;span class=&quot;token attr-name&quot;&gt;property&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;og:locale&lt;span class=&quot;token punctuation&quot;&gt;&quot;&lt;/span&gt;&lt;/span&gt; &lt;span class=&quot;token attr-name&quot;&gt;content&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;{{ meta.locale }}&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;meta&lt;/span&gt;&lt;br /&gt;	&lt;span class=&quot;token attr-name&quot;&gt;property&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;og:image&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;content&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;{{ ogImage | url | absoluteUrl(build.url) }}&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;br /&gt;{#- Twitter Card #}&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;meta&lt;/span&gt; &lt;span class=&quot;token attr-name&quot;&gt;name&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;twitter:card&lt;span class=&quot;token punctuation&quot;&gt;&quot;&lt;/span&gt;&lt;/span&gt; &lt;span class=&quot;token attr-name&quot;&gt;content&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;summary_large_image&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;meta&lt;/span&gt; &lt;span class=&quot;token attr-name&quot;&gt;name&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;twitter:site&lt;span class=&quot;token punctuation&quot;&gt;&quot;&lt;/span&gt;&lt;/span&gt; &lt;span class=&quot;token attr-name&quot;&gt;content&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;{{ meta.twitterSite }}&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;meta&lt;/span&gt; &lt;span class=&quot;token attr-name&quot;&gt;name&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;twitter:creator&lt;span class=&quot;token punctuation&quot;&gt;&quot;&lt;/span&gt;&lt;/span&gt; &lt;span class=&quot;token attr-name&quot;&gt;content&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;{{ meta.twitterCreator }}&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;meta&lt;/span&gt;&lt;br /&gt;	&lt;span class=&quot;token attr-name&quot;&gt;name&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;twitter: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;content&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;{{ seo.title or title }} | {{ meta.siteName }}&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;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;meta&lt;/span&gt;&lt;br /&gt;	&lt;span class=&quot;token attr-name&quot;&gt;name&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;twitter:description&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;content&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;{{ seo.description or excerpt or meta.siteDescription }}&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;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;meta&lt;/span&gt;&lt;br /&gt;	&lt;span class=&quot;token attr-name&quot;&gt;name&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;twitter:image&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;content&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;{{ ogImage | url | absoluteUrl(build.url) }}&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;blockquote&gt;
&lt;p&gt;NOTE: There’s probably no reason to have a separate &lt;code&gt;/src/_includes/partials/head.njk&lt;/code&gt; file. Its contents could just as easily live in the &lt;code&gt;/src/_includes/layouts/base.njk&lt;/code&gt; file. But it is easier and cleaner to work in separate files… Same with the &lt;code&gt;footer.njk&lt;/code&gt; file. It could just be inserted into the &lt;code&gt;base.njk&lt;/code&gt; file. I may combine them in the future?&lt;/p&gt;
&lt;/blockquote&gt;
</content>
    </entry>
    
    <entry>
      <title>Manage Hero Graphics, Carousels, Splits, and Video</title>
      <link href="https://niktayv.netlify.app/2020/09/11/manage-hero-graphics-carousels-splits-and-video/"/>
      <updated>2020-09-11T17:44:03Z</updated>
      <id>https://niktayv.netlify.app/2020/09/11/manage-hero-graphics-carousels-splits-and-video/</id>
      <content type="html">&lt;p&gt;This system ships with default support for full width Hero content of almost any height. This page is a live example of a &lt;code&gt;graphic&lt;/code&gt; hero set to &lt;code&gt;h-1/2&lt;/code&gt; height.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Full screen images/graphics&lt;/li&gt;
&lt;li&gt;Full screen carousels/sliders&lt;/li&gt;
&lt;li&gt;Full screen background videos&lt;/li&gt;
&lt;li&gt;And full screen splits &lt;em&gt;(text one side, image the other)&lt;/em&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;An Editor can easily manage all this via Frontmatter. There are two parts to managing Hero frontmatter:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;hero:&lt;/li&gt;
&lt;li&gt;heroSettings:&lt;/li&gt;
&lt;/ol&gt;
&lt;blockquote&gt;
&lt;p&gt;💡 &lt;strong&gt;NOTE:&lt;/strong&gt; You don’t need ANY of the &lt;code&gt;hero:&lt;/code&gt; or &lt;code&gt;heroSettings:&lt;/code&gt; frontmatter elements if you’re not using a Hero. Check any of the other .md Post files and you’ll see no Hero frontmatter there.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;h2&gt;1. Frontmatter -&amp;gt; hero:&lt;/h2&gt;
&lt;p&gt;In the &lt;code&gt;hero:&lt;/code&gt; frontmatter key you choose from &lt;strong&gt;carousel, graphic, split, video&lt;/strong&gt;.&lt;/p&gt;
&lt;p&gt;Based on these setting, the appropriate &lt;code&gt;/src/_includes/components/*&lt;/code&gt; will be engaged. If &lt;code&gt;hero;&lt;/code&gt; if left blank, no components will be loaded.&lt;/p&gt;
&lt;p&gt;Also, if a &lt;code&gt;hero: carousel&lt;/code&gt; is selected, the &lt;code&gt;/src/_includes/layouts/base.njk&lt;/code&gt; file will load the &lt;a href=&quot;https://flickity.metafizzy.co/&quot;&gt;required CSS and JS for the Flickity carousel&lt;/a&gt;.&lt;/p&gt;
&lt;div class=&quot;wrapper p-4 text-gray-700 text-sm bg-red-100 p-2 border border-red-300 rounded-lg my-4&quot;&gt;
&lt;p&gt;🔥 &lt;strong&gt;IMPORTANT:&lt;/strong&gt; Always test your Hero across desktop and mobile devices to make sure the hero height is sufficient to carry any text and button content. I’m using this page’s setting as an example of a &lt;code&gt;h-1/2&lt;/code&gt; height &lt;code&gt;graphic&lt;/code&gt; hero that looks great on desktop but has too much text/button for &lt;code&gt;h-1/2&lt;/code&gt; height on mobile. So in this case you may want to adjust the height to be &lt;strong&gt;h-1/1&lt;/strong&gt; on mobile and &lt;code&gt;h-1/2&lt;/code&gt; on &lt;strong&gt;sm:&lt;/strong&gt; or &lt;strong&gt;md:&lt;/strong&gt; screens.&lt;/p&gt;
&lt;/div&gt;
&lt;h2&gt;2. Frontmatter -&amp;gt; heroSettings:&lt;/h2&gt;
&lt;p&gt;Here’s where it gets complicated for Editors. There are a series of required frontmatter &lt;code&gt;heroSettings&lt;/code&gt;. Some are shared across the different heros. Some are specific to one hero type or another.&lt;/p&gt;
&lt;p&gt;I’ve commented the &lt;code&gt;heroSettings&lt;/code&gt; keys in this and the &lt;code&gt;/src/index.md&lt;/code&gt; files and hopefully those comments are enough to get you on your way. Here’s the current relevant frontmatter for this page:&lt;/p&gt;
&lt;pre class=&quot;language-yaml&quot;&gt;&lt;code class=&quot;language-yaml&quot;&gt;&lt;span class=&quot;token key atrule&quot;&gt;hero&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt; graphic &lt;span class=&quot;token comment&quot;&gt;# options: carousel, graphic, video, split (text &amp;amp; image)&lt;/span&gt;&lt;br /&gt;&lt;span class=&quot;token key atrule&quot;&gt;heroSettings&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt;&lt;br /&gt;  &lt;span class=&quot;token key atrule&quot;&gt;height&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt;&lt;br /&gt;    &lt;span class=&quot;token key atrule&quot;&gt;mobile&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt; h&lt;span class=&quot;token punctuation&quot;&gt;-&lt;/span&gt;1/2 &lt;span class=&quot;token comment&quot;&gt;# options = h-1/1 (default = full screen), h-1/2, h-1/3, h-3/4, h-9/10, h-48 (12rem, 192px), h-56 (14rem, 224px), h-64 (16rem, 256px)&lt;/span&gt;&lt;br /&gt;    &lt;span class=&quot;token key atrule&quot;&gt;desktop&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;token comment&quot;&gt;# leave blank to inherit &quot;mobile&quot; height (default = full screen)&lt;/span&gt;&lt;br /&gt;  &lt;span class=&quot;token key atrule&quot;&gt;headingText&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt; Is your data lost in the forest&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt; or the trees&lt;span class=&quot;token punctuation&quot;&gt;?&lt;/span&gt;&lt;br /&gt;  &lt;span class=&quot;token key atrule&quot;&gt;headingTextColor&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;token comment&quot;&gt;# text-gray-800 # default = text-white (can use any TailwindCSS text-[color]-[xxx])&lt;/span&gt;&lt;br /&gt;  &lt;span class=&quot;token key atrule&quot;&gt;subheadingText&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt; This is some pithy text that explains why you should hire us without reading any further. Or is it farther&lt;span class=&quot;token punctuation&quot;&gt;?&lt;/span&gt;&lt;br /&gt;  &lt;span class=&quot;token key atrule&quot;&gt;subheadingTextColor&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;token comment&quot;&gt;# Leave empty to inherit headingTextColor or default (text-white) or use any text-[color]-[xxx]&lt;/span&gt;&lt;br /&gt;  &lt;span class=&quot;token key atrule&quot;&gt;buttonText&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt; Contact Us&lt;span class=&quot;token punctuation&quot;&gt;...&lt;/span&gt; &lt;span class=&quot;token comment&quot;&gt;# no button generated if left blank&lt;/span&gt;&lt;br /&gt;  &lt;span class=&quot;token key atrule&quot;&gt;buttonURL&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt; /contact/ &lt;span class=&quot;token comment&quot;&gt;# full url required. Example: https://thisdomain.com/somepage/&lt;/span&gt;&lt;br /&gt;  &lt;span class=&quot;token key atrule&quot;&gt;buttonTextColor&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;token comment&quot;&gt;# leave blank to inherit from /src/_data/colors.buttonCustom or buttonDefault&lt;/span&gt;&lt;br /&gt;  &lt;span class=&quot;token key atrule&quot;&gt;buttonBgColor&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;token comment&quot;&gt;# leave blank to inherit from /src/_data/colors.buttonCustom.bg or buttonDefault.bg&lt;/span&gt;&lt;br /&gt;  &lt;span class=&quot;token key atrule&quot;&gt;bg&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt;&lt;br /&gt;    &lt;span class=&quot;token key atrule&quot;&gt;image&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt; home/copter.jpg &lt;span class=&quot;token comment&quot;&gt;# image URL&lt;/span&gt;&lt;br /&gt;    &lt;span class=&quot;token key atrule&quot;&gt;imagePosition&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt; left &lt;span class=&quot;token comment&quot;&gt;# options = left, center, right&lt;/span&gt;&lt;br /&gt;    &lt;span class=&quot;token key atrule&quot;&gt;opacityMobile&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt; opacity&lt;span class=&quot;token punctuation&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;token number&quot;&gt;50&lt;/span&gt; &lt;span class=&quot;token comment&quot;&gt;# options opacity-n, 5, 10, 15, 20, 25, 50, 75, 100 (default)&lt;/span&gt;&lt;br /&gt;    &lt;span class=&quot;token key atrule&quot;&gt;opacityDesktop&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt; opacity&lt;span class=&quot;token punctuation&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;token number&quot;&gt;75&lt;/span&gt; &lt;span class=&quot;token comment&quot;&gt;# Leave blank to inherit opacityMobile, use same options as opacityMobile&lt;/span&gt;&lt;br /&gt;  &lt;span class=&quot;token key atrule&quot;&gt;carousel&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt;&lt;br /&gt;    &lt;span class=&quot;token key atrule&quot;&gt;images&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; /assets/images/home/6.jpg&lt;br /&gt;      &lt;span class=&quot;token punctuation&quot;&gt;-&lt;/span&gt; /assets/images/home/7.jpg&lt;br /&gt;      &lt;span class=&quot;token punctuation&quot;&gt;-&lt;/span&gt; /assets/images/home/8.jpg&lt;br /&gt;      &lt;span class=&quot;token punctuation&quot;&gt;-&lt;/span&gt; /assets/images/home/9.jpg&lt;br /&gt;  &lt;span class=&quot;token key atrule&quot;&gt;video&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt;&lt;br /&gt;    &lt;span class=&quot;token key atrule&quot;&gt;url&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt; /assets/video/forestfire.mp4 &lt;span class=&quot;token comment&quot;&gt;# local relative to site root, or full https://... if remote?&lt;/span&gt;&lt;br /&gt;    &lt;span class=&quot;token key atrule&quot;&gt;opacityMobile&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt; opacity&lt;span class=&quot;token punctuation&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;token number&quot;&gt;50&lt;/span&gt; &lt;span class=&quot;token comment&quot;&gt;# options 25, 50, 75, 100 (default)&lt;/span&gt;&lt;br /&gt;    &lt;span class=&quot;token key atrule&quot;&gt;opacityDesktop&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;token comment&quot;&gt;# options md:opacity-25, md:opacity-50, md:opacity-75, md:opacity-100 (default)&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;div class=&quot;wrapper p-4 text-gray-700 text-sm bg-red-100 p-2 border border-red-300 rounded-lg my-4&quot;&gt;
&lt;p&gt;🔥 &lt;strong&gt;IMPORTANT:&lt;/strong&gt; When writing or modifying YAML Frontmatter it’s &lt;strong&gt;VERY IMPORTANT&lt;/strong&gt; to make sure you have the indents correct. I have &lt;a href=&quot;https://code.visualstudio.com/&quot;&gt;VSCode&lt;/a&gt; configured to use 2 spaces for tab. 4 spaces can mess up markdown parsing so it’s very important &lt;em&gt;(if you’re just getting started with programming and markdown)&lt;/em&gt; to configure your code editor correctly and watch those spaces/tabs in your YAML Frontmatter.&lt;/p&gt;
&lt;/div&gt;
</content>
    </entry>
    
    <entry>
      <title>Configuring TailwindCSS</title>
      <link href="https://niktayv.netlify.app/2020/09/12/configuring-tailwindcss/"/>
      <updated>2020-09-12T17:44:03Z</updated>
      <id>https://niktayv.netlify.app/2020/09/12/configuring-tailwindcss/</id>
      <content type="html">&lt;p&gt;The &lt;a href=&quot;https://tailwindcss.com/&quot;&gt;TailwindCSS&lt;/a&gt; settings for this system are very basic. But there are a few settings to note.&lt;/p&gt;
&lt;h2&gt;tailwind.css&lt;/h2&gt;
&lt;p&gt;Because TailwindCSS uses &lt;a href=&quot;https://necolas.github.io/normalize.css/&quot;&gt;Normalize.css&lt;/a&gt; to set sensible defaults for all browsers, we lose basic formatting on many top level elements like Headers, &amp;lt;a&amp;gt; and &amp;lt;p&amp;gt; tags, etc. So you’ll want to set your own overrides in the &lt;code&gt;/src/assets/css/tailwind.css&lt;/code&gt; file. Here are the current settings for this system as of the writing of this post.&lt;/p&gt;
&lt;div class=&quot;wrapper p-4 p-2 my-4 rounded-lg bg-red-100 text-gray-700 border border-red-300&quot;&gt;
&lt;p&gt;🔥 &lt;strong&gt;NOTE:&lt;/strong&gt; We do set a couple text colors in this file. So if you’re looking for them in the &lt;code&gt;/src/_data/colors.js&lt;/code&gt; file, I left a comment there at the top to look here in the &lt;code&gt;/src/assets/css/tailwind.css&lt;/code&gt; file.&lt;/p&gt;
&lt;/div&gt;
&lt;pre class=&quot;language-css&quot;&gt;&lt;code class=&quot;language-css&quot;&gt;&lt;span class=&quot;token comment&quot;&gt;/* /src/assets/css/tailwind.css  */&lt;/span&gt;&lt;br /&gt;&lt;span class=&quot;token atrule&quot;&gt;&lt;span class=&quot;token rule&quot;&gt;@tailwind&lt;/span&gt; base&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span class=&quot;token selector&quot;&gt;h1,&lt;br /&gt;h2,&lt;br /&gt;h3,&lt;br /&gt;h4,&lt;br /&gt;h5,&lt;br /&gt;h6&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; font-semibold text-gray-700&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;h1&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-4xl&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;h2&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; pt-12 text-3xl&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-2xl&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;h4&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-xl&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;h5&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-lg&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;br /&gt;li a,&lt;br /&gt;blockquote a,&lt;br /&gt;dd 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; font-medium text-indigo-700&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; mt-4&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;.wrapper &gt; p:first-of-type&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; p-0 m-0&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;br /&gt;&lt;span class=&quot;token selector&quot;&gt;ol&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; pt-4 ml-8 list-decimal&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;ul&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; pt-4 ml-8 list-disc&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; pl-4 m-4 border-l-4 border-gray-500&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;code&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; p-1 text-sm bg-gray-200 border border-gray-300 rounded-lg&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;pre code&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; bg-transparent border-0 rounded-none&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;br /&gt;&lt;span class=&quot;token atrule&quot;&gt;&lt;span class=&quot;token rule&quot;&gt;@tailwind&lt;/span&gt; components&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span class=&quot;token atrule&quot;&gt;&lt;span class=&quot;token rule&quot;&gt;@tailwind&lt;/span&gt; utilities&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;h2&gt;tailwind.config.js&lt;/h2&gt;
&lt;p&gt;This system also uses TailwindCSS’ built-in support for &lt;a href=&quot;https://www.npmjs.com/package/purgecss&quot;&gt;PurgeCSS&lt;/a&gt;. And because the system uses &lt;code&gt;_data&lt;/code&gt; files to control some CSS classes, we have to include them in the &lt;code&gt;/tailwind.config.js&lt;/code&gt; settings file so those CSS classes are NOT purged.&lt;/p&gt;
&lt;p&gt;And while we’re in the &lt;code&gt;/tailwind.config.js&lt;/code&gt; file, let’s take a peek at those custom theme &lt;strong&gt;height&lt;/strong&gt; values that were setup to allow Editors to control the Hero and Featured Images heights:&lt;/p&gt;
&lt;p&gt;&lt;em&gt;(always check the &lt;a href=&quot;https://tailwindcss.com/docs/release-notes&quot;&gt;TailwindCSS Release Notes&lt;/a&gt; page for info on the other settings.)&lt;/em&gt;&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;// /tailwind.config.js&lt;/span&gt;&lt;br /&gt;&lt;span class=&quot;token keyword&quot;&gt;const&lt;/span&gt; defaultTheme &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/defaultTheme&#39;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;br /&gt;&lt;br /&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;br /&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;br /&gt;		&lt;span class=&quot;token string&quot;&gt;&#39;./src/**/*.html&#39;&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;./src/**/*.njk&#39;&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;./src/**/*.md&#39;&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;./src/_data/colors.js&#39;&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;./src/_data/structure.js&#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;	experimental&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;		applyComplexClasses&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;	&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;	future&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;		removeDeprecatedGapUtilities&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;	&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;	theme&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;		extend&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;			&lt;span class=&quot;token comment&quot;&gt;// created my own heights so can specify for Heros&lt;/span&gt;&lt;br /&gt;			&lt;span class=&quot;token function-variable function&quot;&gt;height&lt;/span&gt;&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 parameter&quot;&gt;theme&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt; &lt;span class=&quot;token operator&quot;&gt;=&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 string&quot;&gt;&#39;1/2&#39;&lt;/span&gt;&lt;span class=&quot;token operator&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&#39;50vh&#39;&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;3/4&#39;&lt;/span&gt;&lt;span class=&quot;token operator&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&#39;75vh&#39;&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;9/10&#39;&lt;/span&gt;&lt;span class=&quot;token operator&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&#39;90vh&#39;&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;1/1&#39;&lt;/span&gt;&lt;span class=&quot;token operator&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&#39;100vh&#39;&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;1/3&#39;&lt;/span&gt;&lt;span class=&quot;token operator&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&#39;calc(100vh / 3)&#39;&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;1/4&#39;&lt;/span&gt;&lt;span class=&quot;token operator&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&#39;calc(100vh / 4)&#39;&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;1/5&#39;&lt;/span&gt;&lt;span class=&quot;token operator&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&#39;calc(100vh / 5)&#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;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;	variants&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 punctuation&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt;&lt;br /&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/custom-forms&#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;br /&gt;&lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
</content>
    </entry>
    
    <entry>
      <title>v1.1.0 Brings Draft Posts</title>
      <link href="https://niktayv.netlify.app/2020/09/20/v110-brings-draft-posts/"/>
      <updated>2020-09-20T17:44:03Z</updated>
      <id>https://niktayv.netlify.app/2020/09/20/v110-brings-draft-posts/</id>
      <content type="html">&lt;p&gt;After quietly launching v1.0.0 yesterday &lt;em&gt;(Saturday, Sep. 19, 2020)&lt;/em&gt; I was reorganizing my TODO list on this project and saw the &lt;strong&gt;“Someday: Drafts”&lt;/strong&gt; item.&lt;/p&gt;
&lt;p&gt;Only intending to do a bit of searching for those who may have already tackled “drafts” in 11ty, I quickly realized I could leverage &lt;a href=&quot;https://www.11ty.dev/docs/collections/&quot;&gt;11ty’s Collections&lt;/a&gt; and &lt;a href=&quot;https://www.11ty.dev/docs/data-js/#example-exposing-environment-variables&quot;&gt;environment variables&lt;/a&gt; in a simple conditional using &lt;a href=&quot;https://www.11ty.dev/docs/collections/#advanced-custom-filtering-and-sorting&quot;&gt;custom filtering in the .eleventy.js config file&lt;/a&gt;.&lt;/p&gt;
 &lt;div class=&quot;wrapper p-4 my-4 border border-red-300 bg-red-100 rounded-lg&quot;&gt;
&lt;p&gt;&lt;strong&gt;NOTE:&lt;/strong&gt; I’m still interested in refactoring this conditional into a more elegant, less repetitive solution. I’ve found the &lt;a href=&quot;https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Optional_chaining&quot;&gt;optional chaining (?.) operator&lt;/a&gt; and it seems exactly what I want to do… But I haven’t yet figured out how to implement it within the &lt;code&gt;return&lt;/code&gt; part of the &lt;code&gt;.addCollection&lt;/code&gt; function.&lt;/p&gt;
&lt;p&gt;If you’re reading this and you know how, please &lt;a href=&quot;https://twitter.com/shanerobinson&quot;&gt;ping me on Twitter&lt;/a&gt;.&lt;/p&gt;
&lt;/div&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;/** .eleventy.js &lt;br /&gt; * &lt;br /&gt; * Collections&lt;br /&gt; * ============================&lt;br /&gt; *&lt;br /&gt; * POST Collection set so we can check status of &quot;draft:&quot; frontmatter.&lt;br /&gt; * If set &quot;true&quot; then post will NOT be processed in PRODUCTION env.&lt;br /&gt; * If &quot;false&quot; or NULL it will be published in PRODUCTION.&lt;br /&gt; * Every Post will ALWAYS be published in DEVELOPMENT so you can preview locally.&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;addCollection&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token string&quot;&gt;&#39;post&#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 parameter&quot;&gt;collection&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt; &lt;span class=&quot;token operator&quot;&gt;=&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;process&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;env&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;token constant&quot;&gt;ELEVENTY_ENV&lt;/span&gt; &lt;span class=&quot;token operator&quot;&gt;!==&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&#39;production&#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;return&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;collection&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;token function&quot;&gt;getFilteredByGlob&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token string&quot;&gt;&#39;./src/posts/*.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;br /&gt;  &lt;span class=&quot;token keyword&quot;&gt;else&lt;/span&gt;&lt;br /&gt;    &lt;span class=&quot;token keyword&quot;&gt;return&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;collection&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;token function&quot;&gt;getFilteredByGlob&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token string&quot;&gt;&#39;./src/posts/*.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;br /&gt;      &lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;token function&quot;&gt;filter&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 parameter&quot;&gt;post&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt; &lt;span class=&quot;token operator&quot;&gt;=&gt;&lt;/span&gt; &lt;span class=&quot;token operator&quot;&gt;!&lt;/span&gt;post&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;data&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;draft&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;Then just add a &lt;code&gt;draft: true/false&lt;/code&gt; key/value to the Post Frontmatter:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;If &lt;code&gt;draft: true&lt;/code&gt; the Post &lt;strong&gt;will not&lt;/strong&gt; be processed by 11ty in a &lt;code&gt;production&lt;/code&gt; environment.&lt;/li&gt;
&lt;li&gt;The Post will ALWAYS be processed by 11ty if:
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;draft: false&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;draft: &lt;/code&gt;&lt;/li&gt;
&lt;li&gt;Or if &lt;code&gt;draft:&lt;/code&gt; frontmatter is completely omitted…as in already published Posts.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Once again… Something I thought was going to be difficult and/or frustrating to figure out was a breeze in 11ty!&lt;/p&gt;
</content>
    </entry>
</feed>