I use following query in combination with a space-lua for customising the date :
# 📔 Recent Notes
${query[[
from index.tag "page"
where not table.includes(tags,"meta") and not name:startsWith("Library/Std")
order by lastModified desc
select {
Page = "[[" .. name .. "]]",
Modified = os.date("%Y-%m-%d %H:%M:%S", parse_iso_datetime(_.lastModified)),
Tags = tags and #tags > 0 and "#" .. table.concat(tags, " #") or ""
}
limit 20
]]}
here is the space-lua function to format the date:
function parse_iso_datetime(str)
local year, month, day, hour, min, sec = str:match("(%d+)%-(%d+)%-(%d+)T(%d+):(%d+):(%d+)")
return os.time({
year = year,
month = month,
day = day,
hour = hour,
min = min,
sec = sec,
})
end
this will create following table with the clickable name which will jump directly to that page: