<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
    <title>Unorsk</title>
    <subtitle><![CDATA[]]></subtitle>
    <link href="https://unorsk.com/atom.xml" rel="self" />
    <link href="https://unorsk.com" />
    <id>https://unorsk.com/atom.xml</id>
    <author>
        <name>Andrii</name>
        
        <email>andrii@unorsk.com</email>
        
    </author>
    <updated>2025-01-08T00:00:00Z</updated>
    <entry>
    <title>Hello</title>
    <link href="https://unorsk.com/posts/2025-01-08-hello.html" />
    <id>https://unorsk.com/posts/2025-01-08-hello.html</id>
    <published>2025-01-08T00:00:00Z</published>
    <updated>2025-01-08T00:00:00Z</updated>
    <summary type="html"><![CDATA[<article>
    <section class="header">
        January  8, 2025
        <!-- 
        by Andrii
         -->
    </section>
    <section>
        <h1 id="hello">Hello!</h1>
<p>hello hello!</p>
    </section>
    <nav class="post-navigation">
        
        
        <div class="nav-next">
            <a href="/posts/2015-08-12-test.html">Test →</a>
        </div>
        
    </nav>
</article>]]></summary>
</entry>
<entry>
    <title>Test</title>
    <link href="https://unorsk.com/posts/2015-08-12-test.html" />
    <id>https://unorsk.com/posts/2015-08-12-test.html</id>
    <published>2015-08-12T00:00:00Z</published>
    <updated>2015-08-12T00:00:00Z</updated>
    <summary type="html"><![CDATA[<article>
    <section class="header">
        August 12, 2015
        <!-- 
        by Andrii
         -->
    </section>
    <section>
        <h1 id="test-post">Test post</h1>
<h2 id="subheader">Subheader</h2>
<h4 id="subsubheader">Subsubheader</h4>
<p>This is a <strong>post</strong> I am <strong>using to test</strong> stuff out. The content here makes no sense (or at least isn’t supposed to)</p>
<blockquote>
<p>⚠️ Work in progress here</p>
</blockquote>
<div class="sourceCode" id="cb1"><pre class="sourceCode haskell"><code class="sourceCode haskell"><span id="cb1-1"><a href="#cb1-1" aria-hidden="true" tabindex="-1"></a><span class="ot">main ::</span> <span class="dt">IO</span> ()</span>
<span id="cb1-2"><a href="#cb1-2" aria-hidden="true" tabindex="-1"></a>main <span class="ot">=</span> <span class="kw">do</span></span>
<span id="cb1-3"><a href="#cb1-3" aria-hidden="true" tabindex="-1"></a>  urls <span class="ot">&lt;-</span> readBlogroll <span class="st">&quot;blogroll.txt&quot;</span></span>
<span id="cb1-4"><a href="#cb1-4" aria-hidden="true" tabindex="-1"></a>  <span class="fu">putStrLn</span> <span class="op">$</span> <span class="st">&quot;Found &quot;</span> <span class="op">++</span> <span class="fu">show</span> (<span class="fu">length</span> urls) <span class="op">++</span> <span class="st">&quot; feeds&quot;</span></span>
<span id="cb1-5"><a href="#cb1-5" aria-hidden="true" tabindex="-1"></a></span>
<span id="cb1-6"><a href="#cb1-6" aria-hidden="true" tabindex="-1"></a>  fontBase64 <span class="ot">&lt;-</span> loadFontAsBase64 <span class="st">&quot;IBMPlexSans-Regular.woff2&quot;</span></span>
<span id="cb1-7"><a href="#cb1-7" aria-hidden="true" tabindex="-1"></a>  faviconMap <span class="ot">&lt;-</span> fetchAllFavicons urls</span>
<span id="cb1-8"><a href="#cb1-8" aria-hidden="true" tabindex="-1"></a>  <span class="kw">let</span> faviconCss <span class="ot">=</span> generateFaviconCss faviconMap</span>
<span id="cb1-9"><a href="#cb1-9" aria-hidden="true" tabindex="-1"></a></span>
<span id="cb1-10"><a href="#cb1-10" aria-hidden="true" tabindex="-1"></a>  feeds <span class="ot">&lt;-</span> <span class="fu">mapM</span> fetchFeed urls</span>
<span id="cb1-11"><a href="#cb1-11" aria-hidden="true" tabindex="-1"></a>  <span class="kw">let</span> feedEntries <span class="ot">=</span> <span class="fu">zipWith</span> (\url result <span class="ot">-&gt;</span> <span class="kw">case</span> result <span class="kw">of</span></span>
<span id="cb1-12"><a href="#cb1-12" aria-hidden="true" tabindex="-1"></a>        <span class="dt">Left</span> _err <span class="ot">-&gt;</span> []</span>
<span id="cb1-13"><a href="#cb1-13" aria-hidden="true" tabindex="-1"></a>        <span class="dt">Right</span> cont <span class="ot">-&gt;</span> parseFeed url cont</span>
<span id="cb1-14"><a href="#cb1-14" aria-hidden="true" tabindex="-1"></a>        ) urls feeds</span>
<span id="cb1-15"><a href="#cb1-15" aria-hidden="true" tabindex="-1"></a></span>
<span id="cb1-16"><a href="#cb1-16" aria-hidden="true" tabindex="-1"></a>  <span class="kw">let</span> allEntries <span class="ot">=</span> mergeFeedEntries feedEntries</span>
<span id="cb1-17"><a href="#cb1-17" aria-hidden="true" tabindex="-1"></a>  <span class="fu">putStrLn</span> <span class="op">$</span> <span class="st">&quot;Total entries: &quot;</span> <span class="op">++</span> <span class="fu">show</span> (<span class="fu">length</span> allEntries)</span>
<span id="cb1-18"><a href="#cb1-18" aria-hidden="true" tabindex="-1"></a></span>
<span id="cb1-19"><a href="#cb1-19" aria-hidden="true" tabindex="-1"></a>  <span class="kw">let</span> recent25 <span class="ot">=</span> <span class="fu">take</span> <span class="dv">25</span> allEntries</span>
<span id="cb1-20"><a href="#cb1-20" aria-hidden="true" tabindex="-1"></a>  <span class="kw">let</span> recentHtml <span class="ot">=</span> renderHtml recent25 <span class="st">&quot;Good stuff!&quot;</span> faviconCss fontBase64</span>
<span id="cb1-21"><a href="#cb1-21" aria-hidden="true" tabindex="-1"></a>  <span class="kw">let</span> allHtml <span class="ot">=</span> renderHtml allEntries <span class="st">&quot;All Posts&quot;</span> faviconCss fontBase64</span>
<span id="cb1-22"><a href="#cb1-22" aria-hidden="true" tabindex="-1"></a></span>
<span id="cb1-23"><a href="#cb1-23" aria-hidden="true" tabindex="-1"></a>  TIO.writeFile <span class="st">&quot;index.html&quot;</span> recentHtml</span>
<span id="cb1-24"><a href="#cb1-24" aria-hidden="true" tabindex="-1"></a>  TIO.writeFile <span class="st">&quot;all.html&quot;</span> allHtml</span>
<span id="cb1-25"><a href="#cb1-25" aria-hidden="true" tabindex="-1"></a>  <span class="fu">putStrLn</span> <span class="st">&quot;Generated index.html (25 recent) and all.html&quot;</span></span></code></pre></div>
    </section>
    <nav class="post-navigation">
        
        <div class="nav-previous">
            <a href="/posts/2025-01-08-hello.html">← Hello</a>
        </div>
        
        
    </nav>
</article>]]></summary>
</entry>

</feed>
