<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Web on mrnice.dev</title>
    <link>https://www.mrnice.dev/tags/web/</link>
    <description>Recent content in Web on mrnice.dev</description>
    <generator>Hugo</generator>
    <language>en-us</language>
    <lastBuildDate>Sun, 17 Sep 2023 22:58:53 +0300</lastBuildDate>
    <atom:link href="https://www.mrnice.dev/tags/web/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>How to add a status page to your Hugo blog</title>
      <link>https://www.mrnice.dev/posts/statuspage-on-hugo/</link>
      <pubDate>Sun, 17 Sep 2023 22:58:53 +0300</pubDate>
      <guid>https://www.mrnice.dev/posts/statuspage-on-hugo/</guid>
      <description>&lt;p&gt;Shortest guide possible, let&amp;rsquo;s go ⚡️&lt;/p&gt;&#xA;&lt;h2 id=&#34;setting-up-a-status-page&#34;&gt;Setting up a status page&lt;/h2&gt;&#xA;&lt;p&gt;I recommend &lt;a href=&#34;https://onlineornot.com/&#34;&gt;onlineornot.com&lt;/a&gt;.&lt;/p&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Take your blog&amp;rsquo;s URL. For me, that&amp;rsquo;s&#xA;&lt;a href=&#34;https://mrnice.dev&#34;&gt;&lt;code&gt;https://mrnice.dev&lt;/code&gt;&lt;/a&gt;.&lt;/li&gt;&#xA;&lt;li&gt;Create a new &lt;a href=&#34;https://onlineornot.com/app/checks&#34;&gt;check&lt;/a&gt; on that URL. Pick&#xA;&amp;ldquo;Monitor a website&amp;rdquo;.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;p&gt;&lt;img src=&#34;https://www.mrnice.dev/images/statuspage/onlineornot1.png&#34; alt=&#34;&amp;ldquo;New check&amp;rdquo;&#34; title=&#34;New check&#34;&gt;&lt;/p&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Create a &lt;a href=&#34;https://onlineornot.com/app/status-pages&#34;&gt;status page&lt;/a&gt;, and choose&#xA;your subdomain. I went with &lt;code&gt;mrnicedev&lt;/code&gt; ~&amp;gt; you&amp;rsquo;ll end up with a URL like&#xA;&lt;a href=&#34;https://mrnicedev.onlineornot.com&#34;&gt;&lt;code&gt;https://mrnicedev.onlineornot.com&lt;/code&gt;&lt;/a&gt;.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;p&gt;You should get something that looks like this:&lt;/p&gt;&#xA;&lt;p&gt;&lt;img src=&#34;https://www.mrnice.dev/images/statuspage/statuspage.png&#34; alt=&#34;onlineornot&#34; title=&#34;onlineornot&#34;&gt;&lt;/p&gt;&#xA;&lt;h2 id=&#34;adding-the-status-page-link-to-your-blog&#34;&gt;Adding the status page link to your blog&lt;/h2&gt;&#xA;&lt;p&gt;We&amp;rsquo;ll do it from the &lt;code&gt;config.toml&lt;/code&gt; file (so it&amp;rsquo;s easy to change) and using a&#xA;&lt;code&gt;with&lt;/code&gt; template statement (so if it&amp;rsquo;s not set, it won&amp;rsquo;t show up).&lt;/p&gt;</description>
    </item>
    <item>
      <title>Diagramming in Webflow with Mermaid.js 🧜‍♀️</title>
      <link>https://www.mrnice.dev/posts/mermaid-on-webflow/</link>
      <pubDate>Fri, 01 Sep 2023 23:22:46 +0300</pubDate>
      <guid>https://www.mrnice.dev/posts/mermaid-on-webflow/</guid>
      <description>&lt;p&gt;How to set up a &lt;a href=&#34;https://mermaid-js.github.io/mermaid/#/&#34;&gt;Mermaid.js&lt;/a&gt; diagram on&#xA;your &lt;a href=&#34;https://webflow.com/&#34;&gt;Webflow&lt;/a&gt; site, the shortest guide possible:&lt;/p&gt;&#xA;&lt;h2 id=&#34;install-mermaid-for-a-specific-post&#34;&gt;Install Mermaid for a specific post&lt;/h2&gt;&#xA;&lt;p&gt;Add an HTML Embed Code by clicking on this button:&lt;/p&gt;&#xA;&lt;p&gt;&lt;img src=&#34;https://www.mrnice.dev/images/mermaid/html-embed-button.png&#34; alt=&#34;html embed button&#34; title=&#34;html embed button&#34;&gt;&lt;/p&gt;&#xA;&lt;p&gt;Copy this HTML Embed Code snippet to the top of the post.&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-html&#34; data-lang=&#34;html&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;p&#34;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&#34;nt&#34;&gt;script&lt;/span&gt; &lt;span class=&#34;na&#34;&gt;type&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;=&lt;/span&gt;&lt;span class=&#34;s&#34;&gt;&amp;#34;module&amp;#34;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;&amp;gt;&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;  &lt;span class=&#34;c1&#34;&gt;// Include mermaid.js&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;  &lt;span class=&#34;kr&#34;&gt;import&lt;/span&gt; &lt;span class=&#34;nx&#34;&gt;mermaid&lt;/span&gt; &lt;span class=&#34;nx&#34;&gt;from&lt;/span&gt; &lt;span class=&#34;s1&#34;&gt;&amp;#39;https://cdn.jsdelivr.net/npm/mermaid@10/dist/mermaid.esm.min.mjs&amp;#39;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;;&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;  &lt;span class=&#34;c1&#34;&gt;// Initialize the Mermaid chart&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;  &lt;span class=&#34;nx&#34;&gt;mermaid&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;.&lt;/span&gt;&lt;span class=&#34;nx&#34;&gt;initialize&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;({&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;    &lt;span class=&#34;nx&#34;&gt;startOnLoad&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;:&lt;/span&gt; &lt;span class=&#34;kc&#34;&gt;true&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;,&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;    &lt;span class=&#34;c1&#34;&gt;// Apply the dark theme - replace with what you want.&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;    &lt;span class=&#34;c1&#34;&gt;// options can be found here: http://mermaid.js.org/config/theming.html#available-themes&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;    &lt;span class=&#34;nx&#34;&gt;theme&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;:&lt;/span&gt; &lt;span class=&#34;s1&#34;&gt;&amp;#39;dark&amp;#39;&lt;/span&gt; &#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;  &lt;span class=&#34;p&#34;&gt;});&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;p&#34;&gt;&amp;lt;/&lt;/span&gt;&lt;span class=&#34;nt&#34;&gt;script&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;&amp;gt;&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;This looks bad in the preview:&lt;/p&gt;</description>
    </item>
    <item>
      <title>Optimize your Hugo Blog With Unlighthouse</title>
      <link>https://www.mrnice.dev/posts/optimize-hugo-with-unlighthouse/</link>
      <pubDate>Tue, 16 May 2023 09:36:21 +0300</pubDate>
      <guid>https://www.mrnice.dev/posts/optimize-hugo-with-unlighthouse/</guid>
      <description>&lt;p&gt;Recently Google let me see the new Analytics dashboard (they moved from&amp;hellip;&#xA;Something something analytics to something something Analytics 4). And one&#xA;of they things I saw was that my blog&amp;rsquo;s performance was bad!&lt;/p&gt;&#xA;&lt;p&gt;&lt;img src=&#34;https://i.giphy.com/media/HNEmXQz7A0lDq/giphy.gif&#34; alt=&#34;&amp;ldquo;I have failed you&amp;rdquo;&#34; title=&#34;I have failed you&#34;&gt;&lt;/p&gt;&#xA;&lt;p&gt;In general the blog&amp;rsquo;s infrastructure didn&amp;rsquo;t get much love since I opened it&#xA;a few years ago, so a cleanup for performance and content is probably in&#xA;order.&lt;/p&gt;&#xA;&lt;h2 id=&#34;get-initial-lighthouse-results&#34;&gt;Get initial Lighthouse results&lt;/h2&gt;&#xA;&lt;p&gt;What&amp;rsquo;s Lighthouse? It&amp;rsquo;s a tool that Google provides to measure the performance&#xA;of your site. It&amp;rsquo;s available as a Chrome extension, but also as a CLI tool&#xA;that you can run on your site. So I thought that the first order of business was&#xA;to run &lt;a href=&#34;https://github.com/GoogleChrome/lighthouse&#34;&gt;Lighthouse&lt;/a&gt; on my site and&#xA;see what I&amp;rsquo;m getting both for Mobile and Desktop.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Devlog #5 | Developing a webpage as an excuse to learn Rust, Yew and WebAssembly</title>
      <link>https://www.mrnice.dev/posts/dev-log-5/</link>
      <pubDate>Fri, 09 Oct 2020 16:09:49 +0300</pubDate>
      <guid>https://www.mrnice.dev/posts/dev-log-5/</guid>
      <description>&lt;hr&gt;&#xA;&lt;p&gt;&lt;em&gt;If you haven&amp;rsquo;t read the rest of the devlogs, &lt;a href=&#34;https://www.mrnice.dev/tags/devlog/&#34;&gt;you can find them here&lt;/a&gt;. You might be missing some context if you don&amp;rsquo;t.&lt;/em&gt;&lt;/p&gt;&#xA;&lt;p&gt;&lt;em&gt;Also, this is an old blogpost about something that wasn&amp;rsquo;t actually released as part of the project yet. Maybe one day I&amp;rsquo;ll finish it but the documentation value is important.&lt;/em&gt;&lt;/p&gt;&#xA;&lt;hr&gt;&#xA;&lt;p&gt;After another successful workshop,&lt;/p&gt;&#xA;&lt;blockquote class=&#34;twitter-tweet&#34;&gt;&lt;p lang=&#34;en&#34; dir=&#34;ltr&#34;&gt;Another Git workshop in the books, as the game server monitoring graphs can attest ✅ So fun when things work out well and people enjoy and learn.&lt;br&gt;&lt;br&gt;(But damn, I miss in-person workshops 😣) &lt;a href=&#34;https://t.co/mKYaEfwjqp&#34;&gt;pic.twitter.com/mKYaEfwjqp&lt;/a&gt;&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
