<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/">
    <channel>
        <title>Klendi Gocci</title>
        <link>/</link>
        <description>My Personal blog</description>
        <lastBuildDate>Wed, 29 Apr 2020 14:55:03 GMT</lastBuildDate>
        <docs>http://blogs.law.harvard.edu/tech/rss</docs>
        <generator>https://github.com/jpmonette/feed</generator>
        <item>
            <title><![CDATA[My First Post]]></title>
            <link>/posts/2019-01-05/welcome</link>
            <guid>/posts/2019-01-05/welcome</guid>
            <content:encoded><![CDATA[<div><div class="document_logo__1dwPt"><img src="/static/media/navi-logo.0f2f9d7f.svg" class="document_logo-navi__2PdVG" alt="logo"/><img src="/static/media/react-logo.5d5d9eef.svg" class="document_logo-react__2aJ9V" alt="logo"/></div><h2 id="how-to">How to…</h2><p><strong>To update this post,</strong> edit <code>src/pages/posts/2019-01-05-welcome/document.mdx</code> and save to reload.</p><p><strong>To update the site’s title,</strong> edit the metadata in <code>src/siteMetadata.js</code>.</p><p><strong>To your bio and photo,</strong> edit the Bio component in <code>src/components/Bio.js</code>.</p><p><strong>To change the site’s colors,</strong> edit the <code>:root</code> block in <code>src/index.module.css</code>.</p><p><strong>To create a new post,</strong> add a new directory to <code>src/pages/posts</code> that is prefixed with the new post’s publication date, then create a <code>post.js</code> file inside it:</p><pre><code class="language-jsx" data-language="jsx" data-highlighted-line-numbers=""><span class="token keyword">export</span> <span class="token keyword">default</span> <span class="token punctuation">{</span>
  title<span class="token operator">:</span> <span class="token template-string"><span class="token template-punctuation string">`</span><span class="token string">Learn How To Build This Blog From Scratch</span><span class="token template-punctuation string">`</span></span><span class="token punctuation">,</span>
  tags<span class="token operator">:</span> <span class="token punctuation">[</span><span class="token string">'react'</span><span class="token punctuation">,</span> <span class="token string">'navi'</span><span class="token punctuation">]</span><span class="token punctuation">,</span>
  spoiler<span class="token operator">:</span> <span class="token string">"An online course with loads of live demos and exercises."</span><span class="token punctuation">,</span>
  <span class="token function-variable function">getContent</span><span class="token operator">:</span> <span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token operator">=></span> <span class="token keyword">import</span><span class="token punctuation">(</span><span class="token string">'./document.mdx'</span><span class="token punctuation">)</span><span class="token punctuation">,</span>
<span class="token punctuation">}</span>
</code></pre><p><strong>To set the maximum number of posts on an index page,</strong>, set the <code>indexPageSize</code> property of the object exported by <code>src/siteMetadata.js</code>.</p><p><strong>To modify the generated HTML,</strong> update the <code>src/renderPageToString.js</code> file.</p><p><strong>To add non-blog pages,</strong> just use <a href="https://frontarm.com/navi/reference/declarations/#createpage"><code>Navi.createPage()</code></a>, <a href="https://frontarm.com/navi/reference/declarations/#createswitch"><code>Navi.createSwitch()</code></a> and <a href="https://frontarm.com/navi/reference/declarations/#createredirect"><code>Navi.createRedirect()</code></a>. For an example, check the about page at <code>src/pages/about/index.js</code>. If you create a page, remember to add it to the root switch at <code>src/pages/index.js</code>.</p><p><strong>To brush up on React’s fundamentals,</strong> check out the <a href="https://frontarm.com/courses/learn-raw-react/">React (without the buzzwords)</a> and <a href="https://frontarm.com/courses/async-javascript/">Asynchronous JavaScript</a> courses.</p><h2 id="the-lowdown">The lowdown</h2><p>This template is designed with a JAMstack architecture. This means that the blog is statically rendered for the fastest possible load time, but once loaded, it turns into a single page app — ensuring navigation is silky smooth.</p><p>It follows a convention-over-configuation philosophy. It should work out of the box with minimal effort for most people’s needs, but can also be configured where required.</p><p>Finally, an effort has been made to prefer explicit code over concise code, and simplicity over complexity. Magic is avoided wherever possible, even if this means more code is required for the desired result.</p><h2 id="the-tools">The tools</h2><ul><li><a href="https://reactjs.org">React</a> renders the UI</li><li><a href="https://mdxjs.com">MDX</a> converts markdown into React components</li><li><a href="https://frontarm.com/navi/">Navi</a> handles routing and creates static HTML files for each route</li><li><a href="https://reactjs.org/docs/create-a-new-react-app.html">create-react-app</a> builds the app’s assets and provides the dev server</li></ul></div>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to install node with nvm and other stuff]]></title>
            <link>/posts/2020-04-29/second</link>
            <guid>/posts/2020-04-29/second</guid>
            <content:encoded><![CDATA[<div><div class="document_logo__PIvQz"><img src="/static/media/navi-logo.0f2f9d7f.svg" class="document_logo-navi__Cjn_E" alt="logo"/><img src="/static/media/react-logo.5d5d9eef.svg" class="document_logo-react__3VftT" alt="logo"/></div><h2 id="how-to">How to…</h2><p><strong>To update this post,</strong> edit <code>src/pages/posts/2019-01-05-welcome/document.mdx</code> and save to reload.</p><p><strong>To update the site’s title,</strong> edit the metadata in <code>src/siteMetadata.js</code>.</p><p><strong>To your bio and photo,</strong> edit the Bio component in <code>src/components/Bio.js</code>.</p><p><strong>To change the site’s colors,</strong> edit the <code>:root</code> block in <code>src/index.module.css</code>.</p><p><strong>To create a new post,</strong> add a new directory to <code>src/pages/posts</code> that is prefixed with the new post’s publication date, then create a <code>post.js</code> file inside it:</p><pre><code class="language-jsx" data-language="jsx" data-highlighted-line-numbers=""><span class="token keyword">export</span> <span class="token keyword">default</span> <span class="token punctuation">{</span>
  title<span class="token operator">:</span> <span class="token template-string"><span class="token template-punctuation string">`</span><span class="token string">Learn How To Build This Blog From Scratch</span><span class="token template-punctuation string">`</span></span><span class="token punctuation">,</span>
  tags<span class="token operator">:</span> <span class="token punctuation">[</span><span class="token string">'react'</span><span class="token punctuation">,</span> <span class="token string">'navi'</span><span class="token punctuation">]</span><span class="token punctuation">,</span>
  spoiler<span class="token operator">:</span> <span class="token string">"An online course with loads of live demos and exercises."</span><span class="token punctuation">,</span>
  <span class="token function-variable function">getContent</span><span class="token operator">:</span> <span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token operator">=></span> <span class="token keyword">import</span><span class="token punctuation">(</span><span class="token string">'./document.mdx'</span><span class="token punctuation">)</span><span class="token punctuation">,</span>
<span class="token punctuation">}</span>
</code></pre><p><strong>To set the maximum number of posts on an index page,</strong>, set the <code>indexPageSize</code> property of the object exported by <code>src/siteMetadata.js</code>.</p><p><strong>To modify the generated HTML,</strong> update the <code>src/renderPageToString.js</code> file.</p><p><strong>To add non-blog pages,</strong> just use <a href="https://frontarm.com/navi/reference/declarations/#createpage"><code>Navi.createPage()</code></a>, <a href="https://frontarm.com/navi/reference/declarations/#createswitch"><code>Navi.createSwitch()</code></a> and <a href="https://frontarm.com/navi/reference/declarations/#createredirect"><code>Navi.createRedirect()</code></a>. For an example, check the about page at <code>src/pages/about/index.js</code>. If you create a page, remember to add it to the root switch at <code>src/pages/index.js</code>.</p><p><strong>To brush up on React’s fundamentals,</strong> check out the <a href="https://frontarm.com/courses/learn-raw-react/">React (without the buzzwords)</a> and <a href="https://frontarm.com/courses/async-javascript/">Asynchronous JavaScript</a> courses.</p><h2 id="the-lowdown">The lowdown</h2><p>This template is designed with a JAMstack architecture. This means that the blog is statically rendered for the fastest possible load time, but once loaded, it turns into a single page app — ensuring navigation is silky smooth.</p><p>It follows a convention-over-configuation philosophy. It should work out of the box with minimal effort for most people’s needs, but can also be configured where required.</p><p>Finally, an effort has been made to prefer explicit code over concise code, and simplicity over complexity. Magic is avoided wherever possible, even if this means more code is required for the desired result.</p><h2 id="the-tools">The tools</h2><ul><li><a href="https://reactjs.org">React</a> renders the UI</li><li><a href="https://mdxjs.com">MDX</a> converts markdown into React components</li><li><a href="https://frontarm.com/navi/">Navi</a> handles routing and creates static HTML files for each route</li><li><a href="https://reactjs.org/docs/create-a-new-react-app.html">create-react-app</a> builds the app’s assets and provides the dev server</li></ul></div>]]></content:encoded>
        </item>
    </channel>
</rss>