<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Sebastian Gale</title>
    <description>The latest articles on DEV Community by Sebastian Gale (@seblz432).</description>
    <link>https://dev.to/seblz432</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F575357%2F45535649-05fe-4264-ba23-1f7073ecf7cb.jpg</url>
      <title>DEV Community: Sebastian Gale</title>
      <link>https://dev.to/seblz432</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/seblz432"/>
    <language>en</language>
    <item>
      <title>Customizing your Hashnode Blog [Complete Guide]</title>
      <dc:creator>Sebastian Gale</dc:creator>
      <pubDate>Sun, 07 Feb 2021 19:56:45 +0000</pubDate>
      <link>https://dev.to/seblz432/customizing-your-hashnode-blog-complete-guide-8gf</link>
      <guid>https://dev.to/seblz432/customizing-your-hashnode-blog-complete-guide-8gf</guid>
      <description>&lt;h1&gt;
  
  
  Why customize your blog?
&lt;/h1&gt;

&lt;p&gt;Customizing your blog helps it stand out and be more memorable and with all of the tools Hashnode provides us with it's fun to mess around with. I've experimented with it a lot as you may have noticed so here are all of the tricks I use.&lt;/p&gt;

&lt;p&gt;Now I'll preface all of this by saying that you need to be a Hashnode ambassador to be able to do a lot of what I'm about to talk about (namely anything using custom CSS). If you don't know how to become an ambassador they explain it  &lt;a href="https://hashnode.com/ambassador"&gt;here&lt;/a&gt; - it's pretty easy.&lt;/p&gt;

&lt;p&gt;Strap in, it's a little longer of a read but it's well worth it!&lt;/p&gt;

&lt;h1&gt;
  
  
  Custom navigation links
&lt;/h1&gt;

&lt;p&gt;So as far as I can tell you can't actually just add custom links to your blog's navigation, but you can achieve the same effect using custom page rules.&lt;/p&gt;

&lt;p&gt;Start by adding a page to your blog by going to "Pages &amp;gt; Create new Page" in your blog dashboard.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--99j57FVC--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://cdn.hashnode.com/res/hashnode/image/upload/v1612684885838/u3kFPsRqC.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--99j57FVC--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://cdn.hashnode.com/res/hashnode/image/upload/v1612684885838/u3kFPsRqC.png" alt="Pages setting"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Then you just need to head over to "Advanced" and add a redirect from the page you created to the desired URL.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--MXJkvEPi--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://cdn.hashnode.com/res/hashnode/image/upload/v1612685072118/YG_3_O76f.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--MXJkvEPi--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://cdn.hashnode.com/res/hashnode/image/upload/v1612685072118/YG_3_O76f.png" alt="Capture.PNG"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h1&gt;
  
  
  Custom CSS
&lt;/h1&gt;

&lt;p&gt;Okay, so one of the most obvious and powerful ways to customize your blog is the custom CSS feature. Hashnode provides you with a list of classes you can target along with some DOs and DONTs.&lt;/p&gt;

&lt;h2&gt;
  
  
  Add your own text
&lt;/h2&gt;

&lt;p&gt;Now for those who don't know you can actually add content to HTML using pure CSS, including text! The way you do this is by using the &lt;code&gt;content: ''&lt;/code&gt; property on the &lt;code&gt;:before&lt;/code&gt; or &lt;code&gt;:after&lt;/code&gt; selector of an element.&lt;/p&gt;

&lt;p&gt;For example, here's how I added the big "My Blog" title on the home page:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--g9QrtuVI--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://cdn.hashnode.com/res/hashnode/image/upload/v1612682969949/Mv6nl5SMt.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--g9QrtuVI--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://cdn.hashnode.com/res/hashnode/image/upload/v1612682969949/Mv6nl5SMt.png" alt="My blog's main header"&gt;&lt;/a&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;.blog-author-area:before {
    content: 'My Blog.';

    margin-bottom: 100px;

    font-size: 80px;
    color: transparent;

    background: linear-gradient(91.71deg, #ff7c7c, #63e3ff 99.36%);
    background-clip: text;
    -webkit-background-clip: text;
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Insert images and SVGs
&lt;/h2&gt;

&lt;p&gt;Again using the CSS content property you can also insert your own images anywhere on your blog!&lt;/p&gt;

&lt;p&gt;Similar idea as before, you use the &lt;code&gt;content: ''&lt;/code&gt; property on the &lt;code&gt;:before&lt;/code&gt; or &lt;code&gt;:after&lt;/code&gt; selector of an element, only this time you do &lt;code&gt;content: url(/path/to/image)&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;Even for you people already familiar with the content property, you might not know that you can actually directly embed an SVG into the property using a one-liner.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;background-image: url("data:image/svg+xml,%3csvg width='100%25' height='100%25' xmlns='http://www.w3.org/2000/svg'%3e%3crect width='100%25' height='100%25' fill='none' rx='100' ry='100' stroke='black' stroke-width='7' stroke-dasharray='15%2c 15%2c 1' stroke-dashoffset='0' stroke-linecap='square'/%3e%3c/svg%3e");
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;It's not pretty but it gets the job done, and it's how I added the subtle little dashed line around my blog's logo on the home page.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--hti80el5--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://cdn.hashnode.com/res/hashnode/image/upload/v1612683578489/t8BUnvX_c.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--hti80el5--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://cdn.hashnode.com/res/hashnode/image/upload/v1612683578489/t8BUnvX_c.png" alt="My blog's logo with a dashed border around it"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  CSS animations!
&lt;/h2&gt;

&lt;p&gt;One of the great things about CSS is that you can easily add animations to pretty much any element. Including any text or images you added yourself using the previously mentioned context property!&lt;/p&gt;

&lt;p&gt;I won't dive into everything you can do with CSS animations - there's a lot, but here's how I got the little border around my blog's logo on the home page to spin:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;.blog-author-area:after {
    [...]

    /* The animation */
    animation-name: spin;
    animation-duration: 40000ms;
    animation-iteration-count: infinite;
    animation-timing-function: linear;
}

@keyframes spin {
    from {transform:rotate(0deg);}
    to {transform:rotate(360deg);}
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Modify styling and layouts
&lt;/h2&gt;

&lt;p&gt;The obvious one, you can override and add styling to all of the existing elements on your blog. This includes colours, shadows, font sizes, and pretty much everything else under the sun.&lt;/p&gt;

&lt;p&gt;You can also modify the layout of your blog and the easiest way to do that is using flexbox. If you're not already familiar with flexbox I highly recommend  &lt;a href="https://css-tricks.com/snippets/css/a-guide-to-flexbox/"&gt;this guide and cheat sheet&lt;/a&gt; from CSS Tricks.&lt;/p&gt;

&lt;p&gt;Using Flexbox you can make your own responsive layouts out of the existing HTML structure and even reverse the order of any layouts using one of these two:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;.container {
  flex-direction: row-reverse | column-reverse;
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h1&gt;
  
  
  Use your own domain
&lt;/h1&gt;

&lt;p&gt;And finally, one of the best features Hashnode includes for free. Configuring your domain name to point to your blog is as simple as going to the "Domain" settings in your blog dashboard and following the instructions there&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--AtebePDt--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://cdn.hashnode.com/res/hashnode/image/upload/v1612685319974/2tpMu1Uo0.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--AtebePDt--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://cdn.hashnode.com/res/hashnode/image/upload/v1612685319974/2tpMu1Uo0.png" alt="Domain setting"&gt;&lt;/a&gt;&lt;/p&gt;




&lt;p&gt;If you enjoyed this article feel free to subscribe to my bog's newsletter. You can also learn more about me or get in touch &lt;a href="https://sebastiangale.ca/info"&gt;here.&lt;/a&gt; &lt;/p&gt;

&lt;p&gt;If you have any questions about customizing your blog comment below and I'll get back to you!&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>css</category>
      <category>html</category>
      <category>hashnode</category>
    </item>
  </channel>
</rss>
