Skip to content

Commit

Permalink
deploy: b813d38
Browse files Browse the repository at this point in the history
  • Loading branch information
IanWold committed Oct 27, 2023
1 parent 104ceba commit 7b2561c
Show file tree
Hide file tree
Showing 2 changed files with 195 additions and 0 deletions.
188 changes: 188 additions & 0 deletions Posts/giscus_is_awesome.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,188 @@





<html>
<head>
<link rel="stylesheet" href="../reset.css" />
<link rel="stylesheet" href="../highlight/styles/monokai-sublime.min.css" />
<link rel="stylesheet" href="../site.css" />

<script src="https://unpkg.com/feather-icons"></script>

<title>
Ian Wold | Giscus Is Awesome
</title>
</head>
<body>
<button id="dark-mode-toggle"><i data-feather="sun"></i></button>

<nav class="content">
<div class="headshot">
<img src="../images/hero1.svg" />
</div>
<div class="title">
<a href="../index.html">Ian Wold</a>
</div>
<ul>
<li><a href="../about.html">About</a></li>
<li><a href="https://buttondown.email/ianwold" target="_blank">Newsletter</a></li>
</ul>
</nav>






<header class="content">
<h1>Giscus Is Awesome</h1>
<small>
<span class="date">
<i data-feather="calendar"></i> 14 September 2023
</span>
<span class="time">
<i data-feather="clock"></i> 1 Minute
</span>
</small>
<p>I can add comments to my statically generated blog? Using GitHub Discussions?? For Free??? And it works????</p>
</header>

<div class="content hero">
<img src="https://images.unsplash.com/photo-1591799589332-7a340007f79f?w=1000&h=525&fit=crop&crop=entropy" />
</div>

<div class="content">

<div class="post">
<p><a href="https://giscus.app/">giscus.app</a> is really awesome!</p>
<p>Last week I posted for the first time in six years and I figured I wanted to see about adding comments to this site. A Google search got me to Giscus really quick, and I was able to wire it up in just ten minutes. The thing that's still blowing my mind is that <em>it works</em>.</p>
<p>Behind the scenes, it syncs up with the GitHub Discussions tab on the repo that hosts this website, and it matches a discussion to a page based on the the page's title.</p>
<p>When somebody adds the first comment to a page, it creates a corresponding discussion thread for the page. When a page loads, it checks to see if there is a corresponding discussion and it loads the conversations from that discussion thread.</p>
<p>I can do comment moderation and whatnot on GitHub discussions, and if somebody stumbles upon my website on GitHub they can see the conversation right there. If the tool stops working, the conversations still exist in GitHub, living right alongside the source for this site.</p>
<p>And - I can't emphasis this enough - <em>it just works</em>. I see so few tools that <em>just work</em> and this one does.</p>
<p>Check it out!</p>

</div>
<div class="comments">
<script src="https://giscus.app/client.js"
data-repo="IanWold/ianwold.github.io"
data-repo-id="MDEwOlJlcG9zaXRvcnkxNTk1NDkyNzI="
data-category="Posts"
data-category-id="DIC_kwDOCYKHWM4CZH2Y"
data-mapping="title"
data-strict="0"
data-reactions-enabled="0"
data-emit-metadata="0"
data-input-position="top"
data-theme="light"
data-lang="en"
data-loading="lazy"
crossorigin="anonymous"
async>
</script>
</div>
</div>

<div class="section-gray">
<div class="content post-end">
<img src="../images/hero1.svg" />
<div class="bio">
<h1>Hi, I'm Ian</h1>
<p>
I'm a software engineer, architect, and team leader in Minneapolis. My career has largely focused on .NET and web technologies, spread across several industries. Currently I'm working for Crate &amp; Barrel on their ecommerce solutions. You can find me on this blog, contributing to open source repositories, and at conferences around the Midwest.
</p>
<hr/>
<p>
Thank you for reading this post, I hope you found it valuable. If you'd like to keep up to date with my extremely consistent blog, please do subscribe to my <a href="#">RSS feed</a>.
</p>
<hr/>
<p>
Some other posts you might be interested in:
</p>
<div class="archive">
<ul>

<li>
<a href="../Posts/deploying_aspdotnet_7_projects_with_railway.html">
Deploying ASP.NET 7 Projects with Railway<small>Railway is a startup cloud infrastructure provider that has gained traction for being easy to use and cheap for hobbyists. Let's get a .NET 7 Blazor WASM app up and running with it!</small>
</a>
</li>

<li>
<a href="../Posts/sprache.html">
An Introduction to Sprache<small>Sprache is a parser-combinator library for C# that uses Linq to construct parsers. In this post I describe the fundamentals of understanding grammars and parsing them with Sprache, with several real-world examples.</small>
</a>
</li>

<li>
<a href="../Posts/outrage_engine.html">
The Outrage Engine<small>Perhaps an ASCII game in the Windows Console is ridiculous. Something akin to Dwarf Fortress comes to mind, so it's not entirely off the mark. But a game engine devoted to ASCII games in the console? Perhaps that's outrageous. I don't know if it's been done (or is being done) currently, but that's what I'm doing right now, and I've called it the Outrage Engine.</small>
</a>
</li>

</ul>
</div>
</div>
</div>
</div>


<footer>
<div class="content content-footer">
<span>
Copyright &copy; Ian Wold. Site generated by <a href="https://www.github.com/IanWold/Metalsharp">Metalsharp</a> and hosted by <a href="https://www.github.com/IanWold/ianwold.github.io">GitHub Pages</a>.
</span>
<div class="icon-links">
<a href="https://github.com/ianwold"><i data-feather="github"></i></a>
<!--<a href="#"><i data-feather="rss"></i></a>-->
</div>
</div>
</footer>

<script src="../highlight/highlight.min.js"></script>
<script>
feather.replace();
hljs.highlightAll();

window.addEventListener('DOMContentLoaded', () => {
const observer = new IntersectionObserver(entries => {
entries.forEach(entry => {
const id = entry.target.getAttribute('id');
let classList = document.querySelector(`.pane li a[href="#${id}"]`).parentElement.classList;

if (entry.intersectionRatio > 0) {
classList.add('active');
} else {
classList.remove('active');
}
});
});

document.querySelectorAll('section[id]').forEach((section) => {
observer.observe(section);
});
});

const darkModeToggle = document.getElementById("dark-mode-toggle");
const body = document.body;

function toggleDarkMode() {
body.classList.toggle("dark");

if (localStorage.getItem("dark") === "enabled") {
localStorage.setItem("dark", "disabled");
} else {
localStorage.setItem("dark", "enabled");
}
}

darkModeToggle.addEventListener("click", toggleDarkMode);

if (localStorage.getItem("dark") === "enabled") {
body.classList.toggle("dark");
}
</script>
</body>
</html>
7 changes: 7 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,13 @@ <h1>2023</h1>
</a>
</li>

<li>
<em>09.14</em>
<a href="Posts/giscus_is_awesome.html">
Giscus Is Awesome<small>I can add comments to my statically generated blog? Using GitHub Discussions?? For Free??? And it works????</small>
</a>
</li>

<li>
<em>09.05</em>
<a href="Posts/deploying_aspdotnet_7_projects_with_railway.html">
Expand Down

0 comments on commit 7b2561c

Please sign in to comment.