mirror of
https://gitlab.com/thelazyoxymoron/siddhartha-golu-website.git
synced 2025-07-27 04:47:59 +02:00
469 lines
29 KiB
HTML
469 lines
29 KiB
HTML
<!DOCTYPE html>
|
||
<html lang="en" dir="auto">
|
||
|
||
<head><meta charset="utf-8">
|
||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
||
<meta name="robots" content="index, follow">
|
||
<title>Stoner by John Williams | Siddhartha Golu</title>
|
||
<meta name="keywords" content="fiction">
|
||
<meta name="description" content="Check it out on Goodreads
|
||
Reading fiction has always been a double-edged sword for me. Some of the most intimate moments I’ve spent alone is while reading fictional stories, while at the same time, feeling a pang of disappointment for myself because I wasn’t doing anything “productive.” Is this mere entertainment? Am I just escaping my real-life responsibilities and reading stories of make-believe? While I still haven’t found sincere answers to these questions, I’ve grown more confident of what I enjoy and what I don’t, which has consequently helped me find peace with this conflict.">
|
||
<meta name="author" content="Siddhartha Golu">
|
||
<link rel="canonical" href="https://www.siddharthagolu.com/posts/reading/stoner/">
|
||
<link crossorigin="anonymous" href="/assets/css/stylesheet.9c9ab0cad25dbfc7a38210ced750b387191bab5eb79ca699d9a694b12f5f9c34.css" integrity="sha256-nJqwytJdv8ejghDO11Czhxkbq163nKaZ2aaUsS9fnDQ=" rel="preload stylesheet" as="style">
|
||
<link rel="icon" href="https://www.siddharthagolu.com/favicon.ico">
|
||
<link rel="icon" type="image/png" sizes="16x16" href="https://www.siddharthagolu.com/favicon-16x16.png">
|
||
<link rel="icon" type="image/png" sizes="32x32" href="https://www.siddharthagolu.com/favicon-32x32.png">
|
||
<link rel="apple-touch-icon" href="https://www.siddharthagolu.com/apple-touch-icon.png">
|
||
<link rel="mask-icon" href="https://www.siddharthagolu.com/safari-pinned-tab.svg">
|
||
<meta name="theme-color" content="#2e2e33">
|
||
<meta name="msapplication-TileColor" content="#2e2e33">
|
||
<noscript>
|
||
<style>
|
||
#theme-toggle,
|
||
.top-link {
|
||
display: none;
|
||
}
|
||
|
||
</style>
|
||
<style>
|
||
@media (prefers-color-scheme: dark) {
|
||
:root {
|
||
--theme: rgb(29, 30, 32);
|
||
--entry: rgb(46, 46, 51);
|
||
--primary: rgb(218, 218, 219);
|
||
--secondary: rgb(155, 156, 157);
|
||
--tertiary: rgb(65, 66, 68);
|
||
--content: rgb(196, 196, 197);
|
||
--code-block-bg: rgb(46, 46, 51);
|
||
--code-bg: rgb(55, 56, 62);
|
||
--border: rgb(51, 51, 51);
|
||
}
|
||
|
||
.list {
|
||
background: var(--theme);
|
||
}
|
||
|
||
.list:not(.dark)::-webkit-scrollbar-track {
|
||
background: 0 0;
|
||
}
|
||
|
||
.list:not(.dark)::-webkit-scrollbar-thumb {
|
||
border-color: var(--theme);
|
||
}
|
||
}
|
||
|
||
</style>
|
||
</noscript><script async defer data-website-id="34ce8dc6-488b-49ee-9a2f-8e70a7009f17" src="https://batman.siddharthagolu.com/batman.js"></script><a rel="me" href="https://fosstodon.org/@thelazyoxymoron" id="mastodon-link"></a>
|
||
<style>
|
||
.mastodon-link {
|
||
display: none;
|
||
}
|
||
</style>
|
||
<meta property="og:title" content="Stoner by John Williams" />
|
||
<meta property="og:description" content="Check it out on Goodreads
|
||
Reading fiction has always been a double-edged sword for me. Some of the most intimate moments I’ve spent alone is while reading fictional stories, while at the same time, feeling a pang of disappointment for myself because I wasn’t doing anything “productive.” Is this mere entertainment? Am I just escaping my real-life responsibilities and reading stories of make-believe? While I still haven’t found sincere answers to these questions, I’ve grown more confident of what I enjoy and what I don’t, which has consequently helped me find peace with this conflict." />
|
||
<meta property="og:type" content="article" />
|
||
<meta property="og:url" content="https://www.siddharthagolu.com/posts/reading/stoner/" />
|
||
<meta property="og:image" content="https://www.siddharthagolu.com/images/stoner.jpg" /><meta property="article:section" content="posts" />
|
||
<meta property="article:published_time" content="2020-06-28T19:45:36+05:30" />
|
||
<meta property="article:modified_time" content="2022-05-01T23:09:23+05:30" /><meta property="og:site_name" content="Siddhartha Golu" />
|
||
|
||
<meta name="twitter:card" content="summary_large_image" />
|
||
<meta name="twitter:image" content="https://www.siddharthagolu.com/images/stoner.jpg" />
|
||
<meta name="twitter:title" content="Stoner by John Williams"/>
|
||
<meta name="twitter:description" content="Check it out on Goodreads
|
||
Reading fiction has always been a double-edged sword for me. Some of the most intimate moments I’ve spent alone is while reading fictional stories, while at the same time, feeling a pang of disappointment for myself because I wasn’t doing anything “productive.” Is this mere entertainment? Am I just escaping my real-life responsibilities and reading stories of make-believe? While I still haven’t found sincere answers to these questions, I’ve grown more confident of what I enjoy and what I don’t, which has consequently helped me find peace with this conflict."/>
|
||
|
||
|
||
<script type="application/ld+json">
|
||
{
|
||
"@context": "https://schema.org",
|
||
"@type": "BreadcrumbList",
|
||
"itemListElement": [
|
||
{
|
||
"@type": "ListItem",
|
||
"position": 1 ,
|
||
"name": "Posts",
|
||
"item": "https://www.siddharthagolu.com/posts/"
|
||
},
|
||
{
|
||
"@type": "ListItem",
|
||
"position": 2 ,
|
||
"name": "Stoner by John Williams",
|
||
"item": "https://www.siddharthagolu.com/posts/reading/stoner/"
|
||
}
|
||
]
|
||
}
|
||
</script>
|
||
<script type="application/ld+json">
|
||
{
|
||
"@context": "https://schema.org",
|
||
"@type": "BlogPosting",
|
||
"headline": "Stoner by John Williams",
|
||
"name": "Stoner by John Williams",
|
||
"description": "Check it out on Goodreads\nReading fiction has always been a double-edged sword for me. Some of the most intimate moments I\u0026rsquo;ve spent alone is while reading fictional stories, while at the same time, feeling a pang of disappointment for myself because I wasn\u0026rsquo;t doing anything \u0026ldquo;productive.\u0026rdquo; Is this mere entertainment? Am I just escaping my real-life responsibilities and reading stories of make-believe? While I still haven\u0026rsquo;t found sincere answers to these questions, I\u0026rsquo;ve grown more confident of what I enjoy and what I don\u0026rsquo;t, which has consequently helped me find peace with this conflict.",
|
||
"keywords": [
|
||
"fiction"
|
||
],
|
||
"articleBody": "Check it out on Goodreads\nReading fiction has always been a double-edged sword for me. Some of the most intimate moments I’ve spent alone is while reading fictional stories, while at the same time, feeling a pang of disappointment for myself because I wasn’t doing anything “productive.” Is this mere entertainment? Am I just escaping my real-life responsibilities and reading stories of make-believe? While I still haven’t found sincere answers to these questions, I’ve grown more confident of what I enjoy and what I don’t, which has consequently helped me find peace with this conflict. Over the years, I’ve realized that reading good literature is therapeutic for me - not to be used as an afterthought but essential to keep me functional.\nStoner was another great session in my therapy.\nA story that on the surface feels depressing and sad, but curiously enough has immense hopeful undertones. This is the ordinary story of a man whose only goals in life are to attain two of the most notoriously difficult things known to mankind - knowledge, and love. He fails in both, but if you look underneath the surface, he succeeds in attaining both as well - just enough to make him feel satisfied but not enough to make the world think the same. The story is simple. A man hailing from rural American farmland attends university, falls in love with literature, and decides to dedicate himself to fulfill his passion. He starts teaching at the university, gets married by following his desire, but without falling in love, has a passionate love affair and, in the end, dies without having accomplished much.\nBut the way Mr. Williams writes this simple story is mesmerizing, to say the least. There’s an existential dread in all the interactions, always pulsing with energy, and the prose flows with a perfection, almost to a fault. When I looked back at the book having finished my 4-hour marathon run through it, I noticed that for the first 100 pages or so, the book had a lot of markings - sentences I had loved, descriptions I had enjoyed - however as it moved further, I got tired of doing so, simply because it only got better and better. If I had continued, the whole book would have been messed up by my pencil.\nThroughout the book, I could sense Camus’s influence on his writing; the existential dread always present. All the characters felt as if they could easily exist in my universe. The slow torment that the protagonist went through, at times, felt too personal, as if someone had mercilessly ripped out a few chapters from my life and laid it bare for the world to see. One of these moving passages is written at approximately two-third of the book, which I can’t help but quote below:\nIn his extreme youth, Stoner had thought of love as an absolute state of being to which, if one were lucky, one might find access; in his maturity, he had decided it was the heaven of a false religion, toward which he ought to gaze with an amused disbelief, a gently familiar contempt, and an embarrassed nostalgia. Now in his middle age he began to know that it was neither a state of grace nor an illusion; he saw it as a human act of becoming, a condition that was invented and modified moment by moment and day by day, by the will and the intelligence and the heart.\nTo illustrate an example of the existential feelings at play in the novel, here’s another passage where Stoner wonders about the futility of knowledge at a tumultuous point in his life:\nHe had come to that moment in his age when there occurred to him, with increasing intensity, a question of such overwhelming simplicity that he had no means to face it. He found himself wondering if his life were worth the living; if it had ever been. It was a question, he suspected, that came to all men at one time or another; he wondered if it came to them with such impersonal force as it came to him. The question brought with it a sadness, but it was a general sadness which (he thought) had little to do with himself or with his particular fate; he was not even sure that the question sprang from the most immediate and obvious causes, from what his own life had become. It came, he believed, from the accretion of his years, from the density of accident and circumstance, and from what he had come to understand of them. He took a grim and ironic pleasure from the possibility that what little learning he had managed to acquire had led him to this knowledge; that in the long run all things, even the learning that let him know this, were futile and empty, and at last diminished into a nothingness they did not alter.\nI should stop lest I give myself a free rein and quote the entire book itself. And so I shall stop here. Pick this book up from dusty old shelves of second-hand bookshops and pass it onto others with a note saying, “Thank you for accepting this gift. Thank you for existing.” Maybe someday somewhere, this gift would end up saving someone.\nP.S: If one picture could summarise this whole book for me, it would be the famous oil painting by Edward Hopper, named Nighthawks.\n",
|
||
"wordCount" : "905",
|
||
"inLanguage": "en",
|
||
"image":"https://www.siddharthagolu.com/images/stoner.jpg","datePublished": "2020-06-28T19:45:36+05:30",
|
||
"dateModified": "2022-05-01T23:09:23+05:30",
|
||
"author":[{
|
||
"@type": "Person",
|
||
"name": "Siddhartha Golu"
|
||
}],
|
||
"mainEntityOfPage": {
|
||
"@type": "WebPage",
|
||
"@id": "https://www.siddharthagolu.com/posts/reading/stoner/"
|
||
},
|
||
"publisher": {
|
||
"@type": "Organization",
|
||
"name": "Siddhartha Golu",
|
||
"logo": {
|
||
"@type": "ImageObject",
|
||
"url": "https://www.siddharthagolu.com/favicon.ico"
|
||
}
|
||
}
|
||
}
|
||
</script>
|
||
</head>
|
||
|
||
<body class="" id="top">
|
||
<script>
|
||
if (localStorage.getItem("pref-theme") === "dark") {
|
||
document.body.classList.add('dark');
|
||
} else if (localStorage.getItem("pref-theme") === "light") {
|
||
document.body.classList.remove('dark')
|
||
} else if (window.matchMedia('(prefers-color-scheme: dark)').matches) {
|
||
document.body.classList.add('dark');
|
||
}
|
||
|
||
</script>
|
||
|
||
<header class="header">
|
||
<nav class="nav">
|
||
<div class="logo">
|
||
<a href="https://www.siddharthagolu.com/" accesskey="h" title="Siddhartha Golu (Alt + H)">
|
||
<img src="https://www.siddharthagolu.com/apple-touch-icon.png" alt="" aria-label="logo"
|
||
height="30">Siddhartha Golu</a>
|
||
<div class="logo-switches">
|
||
<button id="theme-toggle" accesskey="t" title="(Alt + T)">
|
||
<svg id="moon" xmlns="http://www.w3.org/2000/svg" width="24" height="18" viewBox="0 0 24 24"
|
||
fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round"
|
||
stroke-linejoin="round">
|
||
<path d="M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z"></path>
|
||
</svg>
|
||
<svg id="sun" xmlns="http://www.w3.org/2000/svg" width="24" height="18" viewBox="0 0 24 24"
|
||
fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round"
|
||
stroke-linejoin="round">
|
||
<circle cx="12" cy="12" r="5"></circle>
|
||
<line x1="12" y1="1" x2="12" y2="3"></line>
|
||
<line x1="12" y1="21" x2="12" y2="23"></line>
|
||
<line x1="4.22" y1="4.22" x2="5.64" y2="5.64"></line>
|
||
<line x1="18.36" y1="18.36" x2="19.78" y2="19.78"></line>
|
||
<line x1="1" y1="12" x2="3" y2="12"></line>
|
||
<line x1="21" y1="12" x2="23" y2="12"></line>
|
||
<line x1="4.22" y1="19.78" x2="5.64" y2="18.36"></line>
|
||
<line x1="18.36" y1="5.64" x2="19.78" y2="4.22"></line>
|
||
</svg>
|
||
</button>
|
||
</div>
|
||
</div>
|
||
<ul id="menu">
|
||
<li>
|
||
<a href="https://www.siddharthagolu.com/about" title="About">
|
||
<span>About</span>
|
||
</a>
|
||
</li>
|
||
<li>
|
||
<a href="https://www.siddharthagolu.com/archive" title="Archive">
|
||
<span>Archive</span>
|
||
</a>
|
||
</li>
|
||
<li>
|
||
<a href="https://www.siddharthagolu.com/categories" title="Categories">
|
||
<span>Categories</span>
|
||
</a>
|
||
</li>
|
||
<li>
|
||
<a href="https://www.siddharthagolu.com/tags/" title="Tags">
|
||
<span>Tags</span>
|
||
</a>
|
||
</li>
|
||
<li>
|
||
<a href="https://www.siddharthagolu.com/search/" title="Search (Alt + /)" accesskey=/>
|
||
<span>Search</span>
|
||
</a>
|
||
</li>
|
||
</ul>
|
||
</nav>
|
||
</header>
|
||
<main class="main">
|
||
|
||
<article class="post-single">
|
||
<header class="post-header">
|
||
<div class="breadcrumbs"><a href="https://www.siddharthagolu.com/">Home</a> » <a href="https://www.siddharthagolu.com/posts/">Posts</a></div>
|
||
<h1 class="post-title entry-hint-parent">
|
||
Stoner by John Williams
|
||
</h1>
|
||
<div class="post-meta"><span title='2020-06-28 19:45:36 +0530 IST'>🗓 June 28, 2020</span> · 5 min · 🔖 <a href="/tags/fiction"> fiction</a>
|
||
|
||
</div>
|
||
</header>
|
||
<div class="post-content"><p><a href="https://www.goodreads.com/review/show/1389128822">Check it out on Goodreads</a></p>
|
||
<hr>
|
||
<p>Reading fiction has always been a double-edged sword for me. Some of the most intimate moments I’ve spent alone is while reading fictional stories, while at the same time, feeling a pang of disappointment for myself because I wasn’t doing anything “productive.” Is this mere entertainment? Am I just escaping my real-life responsibilities and reading stories of make-believe? While I still haven’t found sincere answers to these questions, I’ve grown more confident of what I enjoy and what I don’t, which has consequently helped me find peace with this conflict. Over the years, I’ve realized that reading good literature is therapeutic for me - not to be used as an afterthought but essential to keep me functional.</p>
|
||
<p>Stoner was another great session in my therapy.</p>
|
||
<p>A story that on the surface feels depressing and sad, but curiously enough has immense hopeful undertones. This is the ordinary story of a man whose only goals in life are to attain two of the most notoriously difficult things known to mankind - knowledge, and love. He fails in both, but if you look underneath the surface, he succeeds in attaining both as well - just enough to make him feel satisfied but not enough to make the world think the same. The story is simple. A man hailing from rural American farmland attends university, falls in love with literature, and decides to dedicate himself to fulfill his passion. He starts teaching at the university, gets married by following his desire, but without falling in love, has a passionate love affair and, in the end, dies without having accomplished much.</p>
|
||
<p>But the way Mr. Williams writes this simple story is mesmerizing, to say the least. There’s an existential dread in all the interactions, always pulsing with energy, and the prose flows with a perfection, almost to a fault. When I looked back at the book having finished my 4-hour marathon run through it, I noticed that for the first 100 pages or so, the book had a lot of markings - sentences I had loved, descriptions I had enjoyed - however as it moved further, I got tired of doing so, simply because it only got better and better. If I had continued, the whole book would have been messed up by my pencil.</p>
|
||
<p>Throughout the book, I could sense Camus’s influence on his writing; the existential dread always present. All the characters felt as if they could easily exist in my universe. The slow torment that the protagonist went through, at times, felt too personal, as if someone had mercilessly ripped out a few chapters from my life and laid it bare for the world to see. One of these moving passages is written at approximately two-third of the book, which I can’t help but quote below:</p>
|
||
<blockquote>
|
||
<p>In his extreme youth, Stoner had thought of love as an absolute state of being to which, if one were lucky, one might find access; in his maturity, he had decided it was the heaven of a false religion, toward which he ought to gaze with an amused disbelief, a gently familiar contempt, and an embarrassed nostalgia. Now in his middle age he began to know that it was neither a state of grace nor an illusion; he saw it as a human act of becoming, a condition that was invented and modified moment by moment and day by day, by the will and the intelligence and the heart.</p>
|
||
</blockquote>
|
||
<p>To illustrate an example of the existential feelings at play in the novel, here’s another passage where Stoner wonders about the futility of knowledge at a tumultuous point in his life:</p>
|
||
<blockquote>
|
||
<p>He had come to that moment in his age when there occurred to him, with increasing intensity, a question of such overwhelming simplicity that he had no means to face it. He found himself wondering if his life were worth the living; if it had ever been. It was a question, he suspected, that came to all men at one time or another; he wondered if it came to them with such impersonal force as it came to him. The question brought with it a sadness, but it was a general sadness which (he thought) had little to do with himself or with his particular fate; he was not even sure that the question sprang from the most immediate and obvious causes, from what his own life had become. It came, he believed, from the accretion of his years, from the density of accident and circumstance, and from what he had come to understand of them. He took a grim and ironic pleasure from the possibility that what little learning he had managed to acquire had led him to this knowledge; that in the long run all things, even the learning that let him know this, were futile and empty, and at last diminished into a nothingness they did not alter.</p>
|
||
</blockquote>
|
||
<p>I should stop lest I give myself a free rein and quote the entire book itself. And so I shall stop here. Pick this book up from dusty old shelves of second-hand bookshops and pass it onto others with a note saying, “Thank you for accepting this gift. Thank you for existing.” Maybe someday somewhere, this gift would end up saving someone.</p>
|
||
<p>P.S: If one picture could summarise this whole book for me, it would be the famous oil painting by Edward Hopper, named Nighthawks.</p>
|
||
<p><img loading="lazy" src="/images/nighthawks.jpg" alt="Nighthawks" />
|
||
</p>
|
||
|
||
|
||
</div>
|
||
<br>
|
||
<details>
|
||
<summary class="post-comment">View comments</summary><script data-isso="https://comments.siddharthagolu.com/" src="https://comments.siddharthagolu.com/js/embed.min.js"></script>
|
||
<section id = "isso-thread"></section>
|
||
|
||
</details>
|
||
|
||
|
||
<footer class="post-footer">
|
||
<ul class="post-tags">
|
||
<li><a href="https://www.siddharthagolu.com/tags/fiction/">fiction</a></li>
|
||
</ul>
|
||
<nav class="paginav">
|
||
<a class="prev" href="https://www.siddharthagolu.com/posts/reading/azadi/">
|
||
<span class="title">« Prev</span>
|
||
<br>
|
||
<span>Azadi by Arundhati Roy</span>
|
||
</a>
|
||
<a class="next" href="https://www.siddharthagolu.com/posts/drawings/a-beautiful-woman/">
|
||
<span class="title">Next »</span>
|
||
<br>
|
||
<span>A Beautiful Woman</span>
|
||
</a>
|
||
</nav>
|
||
|
||
</footer>
|
||
|
||
<hr>
|
||
<section class="webring">
|
||
<h3 class="header">Articles from blogs I follow around the net</h3>
|
||
<section class="articles">
|
||
|
||
<div class="article">
|
||
<h4 class="title">
|
||
<a href="https://jvns.ca/blog/2024/01/05/do-we-think-of-git-commits-as-diffs--snapshots--or-histories/" target="_blank" rel="noopener">Do we think of git commits as diffs, snapshots, and/or histories?</a>
|
||
</h4>
|
||
<p class="summary">Hello! I’ve been extremely slowly trying to figure how to explain every core
|
||
concept in Git (commits! branches! remotes! the staging area!) and commits have
|
||
been surprisingly tricky.
|
||
|
||
Understanding how git commits are implemented feels pretty straightforward …</p>
|
||
<small class="source">
|
||
via <a href="http://jvns.ca">Julia Evans</a>
|
||
</small>
|
||
<small class="date">January 5, 2024</small>
|
||
</div>
|
||
|
||
<div class="article">
|
||
<h4 class="title">
|
||
<a href="http://blog.miguelgrinberg.com/post/how-to-add-dark-mode-support-to-your-website" target="_blank" rel="noopener">How To Add Dark Mode Support To Your Website</a>
|
||
</h4>
|
||
<p class="summary">You may have noticed that I have recently added a dark mode to this blog. The default color theme now follows the theme setting in your operating system by default, and you can also select which mode to enable from the top navigation bar.
|
||
|
||
Nice, right? I ha…</p>
|
||
<small class="source">
|
||
via <a href="http://blog.miguelgrinberg.com/feed">http://blog.miguelgrinberg.com/feed</a>
|
||
</small>
|
||
<small class="date">January 1, 2024</small>
|
||
</div>
|
||
|
||
<div class="article">
|
||
<h4 class="title">
|
||
<a href="https://jlcollinsnh.com/2023/11/29/41-intriguing-quotes-about-family-endgame-the-little-girl-who-wouldnt-listen-from-pathfinders/" target="_blank" rel="noopener">41 Intriguing Quotes about Family, Endgame & The Little Girl Who Wouldn’t Listen from Pathfinders</a>
|
||
</h4>
|
||
<p class="summary">This is the third and final post of “intriguing quotes” since the October 31st launch of… Pathfinders It has been two years in the making and it is a book I have wanted to bring to you since 2016 after The Simple Path to Wealth was published. Within month…</p>
|
||
<small class="source">
|
||
via <a href="https://jlcollinsnh.com/">JLCollinsnh</a>
|
||
</small>
|
||
<small class="date">November 29, 2023</small>
|
||
</div>
|
||
|
||
</section>
|
||
<p class="attribution">
|
||
Generated by
|
||
<a href="https://git.sr.ht/~sircmpwn/openring">openring</a>
|
||
</p>
|
||
</section>
|
||
<style>
|
||
.webring .header {
|
||
margin: 0 0 12px;
|
||
}
|
||
.webring .articles {
|
||
display: flex;
|
||
flex-wrap: wrap;
|
||
margin: -0.5rem;
|
||
}
|
||
.webring .title {
|
||
margin: 4px 0 12px;
|
||
}
|
||
.webring .article {
|
||
flex: 1 1 0;
|
||
display: flex;
|
||
flex-direction: column;
|
||
margin: 0.5rem;
|
||
padding: 0.5rem;
|
||
background: var(--openring-bg);
|
||
min-width: 10rem;
|
||
}
|
||
.webring .summary {
|
||
font-size: 0.8rem;
|
||
flex: 1 1 0;
|
||
}
|
||
.webring .attribution {
|
||
text-align: right;
|
||
font-size: 0.8rem;
|
||
color: #555;
|
||
}
|
||
</style>
|
||
|
||
|
||
</article>
|
||
</main>
|
||
|
||
<footer class="footer">
|
||
<span>© 2024 <a href="https://www.siddharthagolu.com/">Siddhartha Golu</a></span>
|
||
<span>
|
||
Powered by
|
||
<a href="https://gohugo.io/" rel="noopener noreferrer" target="_blank">Hugo</a> &
|
||
<a href="https://github.com/adityatelange/hugo-PaperMod/" rel="noopener" target="_blank">PaperMod</a>
|
||
</span>
|
||
</footer>
|
||
<a href="#top" aria-label="go to top" title="Go to Top (Alt + G)" class="top-link" id="top-link" accesskey="g">
|
||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 12 6" fill="currentColor">
|
||
<path d="M12 6H0l6-6z" />
|
||
</svg>
|
||
</a>
|
||
|
||
<script>
|
||
let menu = document.getElementById('menu')
|
||
if (menu) {
|
||
menu.scrollLeft = localStorage.getItem("menu-scroll-position");
|
||
menu.onscroll = function () {
|
||
localStorage.setItem("menu-scroll-position", menu.scrollLeft);
|
||
}
|
||
}
|
||
|
||
document.querySelectorAll('a[href^="#"]').forEach(anchor => {
|
||
anchor.addEventListener("click", function (e) {
|
||
e.preventDefault();
|
||
var id = this.getAttribute("href").substr(1);
|
||
if (!window.matchMedia('(prefers-reduced-motion: reduce)').matches) {
|
||
document.querySelector(`[id='${decodeURIComponent(id)}']`).scrollIntoView({
|
||
behavior: "smooth"
|
||
});
|
||
} else {
|
||
document.querySelector(`[id='${decodeURIComponent(id)}']`).scrollIntoView();
|
||
}
|
||
if (id === "top") {
|
||
history.replaceState(null, null, " ");
|
||
} else {
|
||
history.pushState(null, null, `#${id}`);
|
||
}
|
||
});
|
||
});
|
||
|
||
</script>
|
||
<script>
|
||
var mybutton = document.getElementById("top-link");
|
||
window.onscroll = function () {
|
||
if (document.body.scrollTop > 800 || document.documentElement.scrollTop > 800) {
|
||
mybutton.style.visibility = "visible";
|
||
mybutton.style.opacity = "1";
|
||
} else {
|
||
mybutton.style.visibility = "hidden";
|
||
mybutton.style.opacity = "0";
|
||
}
|
||
};
|
||
|
||
</script>
|
||
<script>
|
||
document.getElementById("theme-toggle").addEventListener("click", () => {
|
||
if (document.body.className.includes("dark")) {
|
||
document.body.classList.remove('dark');
|
||
localStorage.setItem("pref-theme", 'light');
|
||
} else {
|
||
document.body.classList.add('dark');
|
||
localStorage.setItem("pref-theme", 'dark');
|
||
}
|
||
})
|
||
|
||
</script>
|
||
<script>
|
||
document.querySelectorAll('pre > code').forEach((codeblock) => {
|
||
const container = codeblock.parentNode.parentNode;
|
||
|
||
const copybutton = document.createElement('button');
|
||
copybutton.classList.add('copy-code');
|
||
copybutton.innerHTML = 'copy';
|
||
|
||
function copyingDone() {
|
||
copybutton.innerHTML = 'copied!';
|
||
setTimeout(() => {
|
||
copybutton.innerHTML = 'copy';
|
||
}, 2000);
|
||
}
|
||
|
||
copybutton.addEventListener('click', (cb) => {
|
||
if ('clipboard' in navigator) {
|
||
navigator.clipboard.writeText(codeblock.textContent);
|
||
copyingDone();
|
||
return;
|
||
}
|
||
|
||
const range = document.createRange();
|
||
range.selectNodeContents(codeblock);
|
||
const selection = window.getSelection();
|
||
selection.removeAllRanges();
|
||
selection.addRange(range);
|
||
try {
|
||
document.execCommand('copy');
|
||
copyingDone();
|
||
} catch (e) { };
|
||
selection.removeRange(range);
|
||
});
|
||
|
||
if (container.classList.contains("highlight")) {
|
||
container.appendChild(copybutton);
|
||
} else if (container.parentNode.firstChild == container) {
|
||
|
||
} else if (codeblock.parentNode.parentNode.parentNode.parentNode.parentNode.nodeName == "TABLE") {
|
||
|
||
codeblock.parentNode.parentNode.parentNode.parentNode.parentNode.appendChild(copybutton);
|
||
} else {
|
||
|
||
codeblock.parentNode.appendChild(copybutton);
|
||
}
|
||
});
|
||
</script>
|
||
</body>
|
||
|
||
</html>
|