toasters.rocks/toasters-rocks-4/index.html

6 lines
12 KiB
HTML
Raw Normal View History

<!doctype html><html lang=en><head><meta charset=utf-8><meta name=viewport content="width=device-width,initial-scale=1"><link rel="shortcut icon" href=/img/icon.png type=image/png><meta name=generator content="Hugo 0.79.0"><meta property="og:title" content="Toasters Rocks 4.0"><meta property="og:description" content="Brand new blog, again."><meta property="og:type" content="article"><meta property="og:url" content="http://toasters.rocks/toasters-rocks-4/"><meta property="og:image" content="http://toasters.rocks/images/2020/11/bg.png"><meta property="article:published_time" content="2020-11-28T11:16:57-05:00"><meta property="article:modified_time" content="2020-11-28T21:15:50-05:00"><meta name=twitter:card content="summary_large_image"><meta name=twitter:image content="http://toasters.rocks/images/2020/11/bg.png"><meta name=twitter:title content="Toasters Rocks 4.0"><meta name=twitter:description content="Brand new blog, again."><title>Toasters Rocks 4.0 - toasters rocks</title><link rel=stylesheet href=/css/styles.css><link rel=stylesheet href=/css/syntax.css><script src=https://kit.fontawesome.com/8ced65a629.js crossorigin=anonymous></script></head><body><header><img src=/img/icon.png><h1>toasters rocks</h1></header><main><aside><nav><a href=/><i class="fas fa-home"></i>Home</a><br><a href=http://juju2143.ca/><i class="fas fa-user"></i>About</a><br><a href=/fr/><i class="fas fa-globe"></i>Français</a><br><a href=https://yukiis.moe/><i class="far fa-comment"></i>Comics</a><br><a href=https://codewalr.us/><i class="far fa-folder-open"></i>Forums</a><br></nav><br><nav><a title=Twitter href=https://twitter.com/juju2143><i style=color:#4da7de class="fab fa-twitter"></i><span style=color:#4da7de>Twitter</span></a><br><a title=Discord href=https://discord.gg/cuZcfcF><i style=color:#7289da class="fab fa-discord"></i><span style=color:#7289da>Discord</span></a><br><a title=GitHub href=https://github.com/juju2143><i style=color:#221e1b class="fab fa-github"></i><span style=color:#221e1b>GitHub</span></a><br><a title=Patreon href=https://patreon.com/juju2143><i style=color:#f96854 class="fab fa-patreon"></i><span style=color:#f96854>Patreon</span></a><br><a title=YouTube href=https://youtube.com/user/julosoft><i style=color:#e02a20 class="fab fa-youtube"></i><span style=color:#e02a20>YouTube</span></a><br><a title="YouTube 2" href=https://youtube.com/c/juju2143><i style=color:#e02a20 class="fab fa-youtube"></i><span style=color:#e02a20>YouTube 2</span></a><br><a title=Twitch href=https://twitch.tv/juju2143><i style=color:#6441a5 class="fab fa-twitch"></i><span style=color:#6441a5>Twitch</span></a><br><a title=Instagram href=https://instagram.com/j.p.savard><i style=color:#d6249f class="fab fa-instagram"></i><span style=color:#d6249f>Instagram</span></a><br><a title=DeviantArt href=https://deviantart.com/juju2143><i style=color:#c5d200 class="fab fa-deviantart"></i><span style=color:#c5d200>DeviantArt</span></a><br><a title=SoundCloud href=https://soundcloud.com/juju2143><i style=color:#fe3801 class="fab fa-soundcloud"></i><span style=color:#fe3801>SoundCloud</span></a><br></nav></aside><article style=background-image:url(/images/2020/11/bg.png)><div class=metadata style="height:calc((var(--height) - 2em) * 0.5625 - 3.5em)"><h2 name=top>Toasters Rocks 4.0</h2><p>Brand new blog, again.</p><i class="far fa-calendar-alt"></i><time datetime=2020-11-28>November 28, 2020</time><br><i class="fas fa-tags"></i>#<a class="btn btn-sm btn-outline-dark tag-btn" href=http://toasters.rocks/tags/meta>Meta</a><br><i class="fas fa-hourglass"></i>~6 minutes</div><p>Well, it seems to be a tradition around this time of the year, every 368 days or so. A brand new blog. But this time, the story is quite interesting.</p><h3 id=genesis>Genesis</h3><p>The first iteration of this blog was basically my Tumblr blog. By November 2018, I became largely disinterested by Tumblr due to various reasons, and I found this blog engine called <a href=https://writefreely.org>WriteFreely</a>, written in Go, could do federation so the blog posts would show up in people&r
</span><span class=lnt>2
</span></code></pre></td><td class=lntd><pre class=chroma><code class=language-sh data-lang=sh>npm install -g ghost-to-md
2020-11-29 03:46:55 +00:00
ghost-to-md yourwebsitebackup.json
</code></pre></td></tr></table></div></div><p>Now you&rsquo;ll want to dump the resulting Markdown files in the content folder, the images from the old Ghost install to the static folder, fix front matter variables to the correct name, fix image URLs (both of which can be done with search and replace), and there you go, a nice website.</p><h3 id=aftermath>Aftermath</h3><p>Now I need to fix the posts one by one, since the converter didn&rsquo;t do a very good job at converting stuff, in particular header images, embeds and tables, plus that script wasn&rsquo;t written specifically for Hugo, and there&rsquo;s a few bugs to squash here and there, but eh, since I don&rsquo;t have a ton of posts it&rsquo;s kinda doable. It&rsquo;s still gonna be wonky a bit at first but I hope you like it.</p><h3 id=update-2020-10-29>Update (2020-10-29)</h3><p>Okay, now the workflow is completely automated. I uploaded the source to GitHub (you can <a href=https://github.com/juju2143/toasters.rocks>look it up</a> <a href=https://github.com/juju2143/hugo-theme-toastersrocks>if you want</a>, you can even use it for all I care but I pretty much made it for myself, so YMMV), then used GitHub Actions so it builds it and pushes the compiled, minified result to GitHub Pages automatically. It&rsquo;s pretty cool, really. So, since GitHub lets you edit files and commit directly from the website, I can actually use it as a CMS, which is perfect for my needs. And since it&rsquo;s just a bunch of HTML files and it&rsquo;s on a bunch of CDNs all around the world, this thing can&rsquo;t be faster. Almost.</p><p>So, I hope you like it, I hope it works for you, and if you find any issues, feel free to complain about it in the comment section or <a href=https://github.com/juju2143/hugo-theme-toastersrocks/issues>on GitHub</a>.</p></article><ul class=pagination><li class=page-item><a class=previous href=http://toasters.rocks/november-updates/>« November updates</a></li></ul><article><div id=disqus_thread></div><script type=application/javascript>var disqus_config=function(){};(function(){if(["localhost","127.0.0.1"].indexOf(window.location.hostname)!=-1){document.getElementById('disqus_thread').innerHTML='Disqus comments not available by default when the website is previewed locally.';return;}
var d=document,s=d.createElement('script');s.async=true;s.src='//'+"juju2143"+'.disqus.com/embed.js';s.setAttribute('data-timestamp',+new Date());(d.head||d.body).appendChild(s);})();</script><noscript>Please enable JavaScript to view the <a href=https://disqus.com/?ref_noscript>comments powered by Disqus.</a></noscript><a href=https://disqus.com class=dsq-brlink>comments powered by <span class=logo-disqus>Disqus</span></a></article></main><footer>Copyright © 2020 J.P. Savard</footer></body></html>