Open utterances-bot opened 1 year ago
Thanks for the great post! This motivated me to make the transition, too. I especially appreciated the warning about Utterances because I love those too. I dug around a bit more, and I think that I found a way that you can potentially bring your old comments over if you want with just two changes to your _quarto.yml
file:
pagetitle:
option to force post titles to follow the same pattern as the old site ( discucssion here ) utterances:
options to use issue-term: title
( more about options here )So, for example, the relevant parts of my yaml file look like this:
project:
type: website
website:
title: "Emily Riederer"
favicon: icon.png
comments:
utterances:
repo: emilyriederer/website
issue-term: title
format:
html:
pagetitle: "{{< meta title >}} | Emily Riederer"
and (serving locally - not yet deployed live to internet) that brought back my old comments!
Emily, thanks so much for these tips and resources! I made the changes you outlined (#102), deployed my site, and was very happy to see my Utterances return! 💬 🥳
Also, I'm looking forward to seeing your brand new site! 🚀
Thanks a ton Silvia! I found your HTML partials explanation particularly helpful. I didn’t even know that it was an option. Bravo on the new Quarto site! 👏 🙌
Additionally, the Pandoc manual's Partials section is a great resource for understanding these things. All resources just helped me add a custom partial to my personal site. Examples below:
_quarto.yml
:
format:
html:
template: _pandoc/template.html
template-partials: [_pandoc/custom.html]
_pandoc/template.html
, i.e. contents of template.html with the new custom partial added:
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" lang="$lang$" xml:lang="$lang$"$if(dir)$ dir="$dir$"$endif$>
<head>
$metadata.html()$
{... truncated}
$custom.html()$
</body>
</html>
_pandoc/custom.html
, i.e. your custom html:
<script>
console.log('Hello world!')
</script>
Thank you @prncevince! I'm happy to hear the post was helpful. And thanks for sharing the additional resource on partials! I'm sure it will come in handy to me and others 🙌🏽
Thanks for your time to compile this amazing post! 👌
Silvia Canelón - Hello Quarto: Porting my Website from Hugo Apéro
https://silviacanelon.com/blog/2023-09-29-hello-quarto/