I was thoroughly inspired by Eilleen’s Quartz Change Log and decided to do much the same. Hopefully this is a massive benefit to future me and a minor benefit to those who want to know what I’ve done to make my site look slightly different from other quartz sites.
Enable social media image generation in config
Added: Jan 11 2025
Updated the quartz.config.ts
to generate dynamic preview images. These settings are the default with the exception of generating them in dark mode.
Add recent documents table to front page with quartz component
Added: Jan 11 2025
This change piggybacks on the Quartz Changelog > Add Date Modified to files post. Its another almost full rip from Eilleen. I borrow her iteration of a custom “OnlyFor” component.
Its better to reference these files in their current state so what I did was create: https://github.com/steven-smith-IT/quartz-ssmith/blob/v4/quartz/components/_OnlyFor.tsx
Then you have to make sure to update index.ts
in the components
folder to export this new component.
I then added this block to the AfterBody
group in quartz.layout.ts
to make sure this element only appears on the main page.
The below may change as I tweak the settings for display. Check my Quartz Layout for the most currently live version.
Add recent documents table inside the body of other content
Added: Jan 11 2025
This change piggybacks on the Quartz Changelog > Add Date Modified to files post. Its a low/no code way to do it and I really appreciate that it requires no changes to the files in obsidian.
- I use Obsidian-Linter to create the
created
andmodified
for each. - I have created a dataview table using the Obsidian Dataview Plugin that queries my library for these fields and creates a dynamic table
- I upload my files using Enveloppe which automatically translates the query to a markdown table so every time I publish there is a new table generated on the index of my site.
Dataview Query Example
Note: If i wanted to change this to be last modified, I could instead do
TABLE modified AS "Date Modified"
and change the last line toSORT modified desc
. The limit also determines how many entries are in the table. I like 5 as more feels a bit clunky.TABLE created AS "Date Created" FROM -"tags" WHERE file.name != "index" and share = true LIMIT 5 SORT created desc
Add date modified to files
Added: December 28 2024
This change takes heavy inspiration from Eilleen in that I borrow her logic entirely and just made use of some pre-existing variables that the lastmod.ts
transformer creates.
I first added Obsidian-Linter to my vault and created created a frontmatter key of created
with the value of the file creation date as YYYY-MM-DD
format. I then created a modified
key with the value of files’s last modified time and the same format.
I then edited the below file as such: