From 1393929bfdb4f9638cd75994ba76d64422fa5dac Mon Sep 17 00:00:00 2001 From: osmarks Date: Fri, 22 Mar 2024 11:39:39 +0000 Subject: [PATCH] Switch to internal comments system --- blog/other-stuff.md | 8 +++++++- src/comments.css | 1 + src/index.js | 4 +++- templates/layout.pug | 4 ++-- 4 files changed, 13 insertions(+), 4 deletions(-) create mode 100644 src/comments.css diff --git a/blog/other-stuff.md b/blog/other-stuff.md index 339466c..fbefed2 100644 --- a/blog/other-stuff.md +++ b/blog/other-stuff.md @@ -2,7 +2,7 @@ title: Other things you may like description: A nonexhaustive list of... content/media... which I like and which you may also be interested in as a visitor of my site. created: 11/06/2020 -updated: 01/03/2024 +updated: 22/03/2024 slug: otherstuff --- I'm excluding music from this because music preferences seem to be even more varied between the people I interact with than other stuff. @@ -65,6 +65,10 @@ Obviously this is just stuff *I* like; you might not like it, which isn't really * [Bastion](https://www.goodreads.com/book/show/59521676-bastion) - great worldbuilding, somewhat annoying characters (though they improve somewhat). * [Dogs of War](https://www.goodreads.com/book/show/35827220-dogs-of-war) - pretty good scifi, though I am not sure it's very "thought-provoking" as some reviewers claim inasmuch as the ethical questions in it are not very hard. * [Lexicon](https://www.goodreads.com/book/show/16158596-lexicon) - fun, though I think the connection to data privacy issues is poorly done, perhaps because it's from 2013 and this feels outdated. +* [Thresholder](https://www.royalroad.com/fiction/60396/thresholder) - a "jumpchain" story done very well. +* [Luminous](https://www.goodreads.com/book/show/156782.Luminous)/[Oceanic](https://www.goodreads.com/book/show/6741362-oceanic)/[Instantiation](https://www.goodreads.com/book/show/50641444-instantiation) and other Greg Egan short stories - great high-concept scifi; I think Egan works better at short story length than full novels, though the only novel from him I have actually read is [Schild's Ladder](https://www.goodreads.com/book/show/156780.Schild_s_Ladder). +* [The Lost Books of the Odyssey](https://www.goodreads.com/book/show/2199365.The_Lost_Books_of_the_Odyssey) - same author as Void Star so my notes about the prose apply. An interesting take on the mythology and at times even rather funny. +* [Accelerando](https://www.antipope.org/charlie/blog-static/fiction/accelerando/accelerando.html) - the best fictional depiction of the posthuman technocapital singularity I'm aware of. Special mentions (i.e. "I haven't gotten around to reading these but they are well-reviewed and sound interesting") to: * [Children of Time](https://www.goodreads.com/book/show/25499718-children-of-time) by Adrian Tchaikovsky. @@ -76,6 +80,8 @@ Special mentions (i.e. "I haven't gotten around to reading these but they are we * [House of Suns](https://www.goodreads.com/book/show/1126719.House_of_Suns) by Alastair Reynolds. * "house of suns is really very good, you should read" - baidicoot/Aidan, creator of the world-renowned [Emu War](/emu-war) game * [Singularity Sky](https://www.goodreads.com/book/show/81992.Singularity_Sky) by Charlie Stross. +* [Zones of Thought](https://www.goodreads.com/series/52585-zones-of-thought) by Vernor Vinge. +* [Cradle](https://www.goodreads.com/series/192821-cradle) by Will Wight. If you want EPUB versions of the free web serials here for your e-reader, there are tools to generate those, or you can contact me for a copy. diff --git a/src/comments.css b/src/comments.css new file mode 100644 index 0000000..99f200d --- /dev/null +++ b/src/comments.css @@ -0,0 +1 @@ +.name.svelte-m0gh76{font-weight:600}.internal.svelte-m0gh76{background:linear-gradient(to right,red,lime,blue);background-clip:text;color:transparent}textarea.svelte-1xxfb50{width:100%;resize:vertical}.error.svelte-1xxfb50{padding:.5em}.controls.svelte-1xxfb50{display:flex;justify-content:space-between}.children.svelte-10v2gkf.svelte-10v2gkf{padding-left:.5em;border-left:3px solid black}.comment.svelte-10v2gkf.svelte-10v2gkf{margin-top:.5em;margin-bottom:1.5em}.comment.svelte-10v2gkf .content.svelte-10v2gkf{padding:.25em}.comment.svelte-10v2gkf .container.svelte-10v2gkf{display:flex}.comment.svelte-10v2gkf .container .avatar.svelte-10v2gkf{width:3em;height:3em;margin-right:1em}.comment.svelte-10v2gkf.svelte-10v2gkf:last-of-type{margin-bottom:none}.controls.svelte-10v2gkf a.svelte-10v2gkf{text-decoration:none;color:#76cd26} diff --git a/src/index.js b/src/index.js index 3b52885..047d8c5 100644 --- a/src/index.js +++ b/src/index.js @@ -272,11 +272,13 @@ const runOpenring = async () => { } const compileCSS = async () => { - const css = sass.renderSync({ + let css = sass.renderSync({ data: await readFile(path.join(srcDir, "style.sass")), outputStyle: "compressed", indentedSyntax: true }).css + css += "\n" + css += await fsp.readFile(path.join(srcDir, "comments.css")) globalData.css = css } diff --git a/templates/layout.pug b/templates/layout.pug index 3207e6e..27158ae 100644 --- a/templates/layout.pug +++ b/templates/layout.pug @@ -29,7 +29,7 @@ html(lang="en") meta(content=`https://${domain}/assets/images/logo256.png`, property="og:image") style!= css if comments !== "off" - script(src=`https://${domain}/isso/js/embed.min.js`, async=true, data-isso=`https://${domain}/isso/`) + script(src=`https://${domain}/rsapi/static/comments.js`, async=true) body .nav-container nav @@ -68,4 +68,4 @@ html(lang="en") if comments !== "off" main(class=!haveSidenotes ? "fullwidth isso" : "isso") - section(id="isso-thread") \ No newline at end of file + section(id="comments-wrapper") \ No newline at end of file