https://www.dendron.so/ logo
a

AshSimmonds

05/26/2022, 8:45 AM
Re: meta content on export, is it trivial or complicated to modify the
<meta name="description" content="Dendron is a local-first, markdown based blah"/>
stuff? (what is displayed in various social media previews when pasting a link)
Just want to know before I go spelunking through the code, back in the day I did SEO guru stuff for a living, and want to optimise the exported outputs.
h

hikchoi

05/26/2022, 9:20 AM
this can be set in
dendron.yml
. See: https://wiki.dendron.so/notes/NDMKzlG6GpZE5VuMuyRxO/
Copy code
yml
...
publishing:
  seo:
    description: "your description here"
...
a

AshSimmonds

05/26/2022, 9:32 AM
I understand that, however it's vault-wide. I'm talking about picking up the data dynamically, such as from the
description
or such that you can put into the front-matter.
Here's an example of standard export output when I paste a link here: https://bluedwarf.space/dendron/notes/02gh49nh6fhaac1gyi9niz9/
Here's one that I modified manually, but it uses information already available in the page itself: https://bluedwarf.space/dendron/notes/kvawfud3js7d1wovboey2tp/
h

hikchoi

05/26/2022, 9:46 AM
the
excerpt
field in your note's frontmatter will be used as the
og:description
a

AshSimmonds

05/26/2022, 9:48 AM
Ah cool thanks, I hadn't stumbled on that meta bit yet..
Looks like that's the stuff I was seeking, should sort out most of my needs there.
h

hikchoi

05/26/2022, 9:50 AM
this is on us. this was documented with our legacy publishing docs, but this bit of information seems to have been omitted while we were refactoring publishing related docs 😅
a

AshSimmonds

05/26/2022, 9:53 AM
Cool bananas, just glad I asked before trying to mod it myself.
h

hikchoi

05/26/2022, 9:55 AM
Feel free to ask anything that's not clear in Discord 🙂 Someone will always be here to help. I'll take note of this omitted bit of info and make sure we include it in our up to date docs.
11 Views