I’m using my own customized homepage in logseq (rather than the “journal” page as default). However, I’d like to show the content of the daily journal on my homepage as well. Is there a specific link of the daily journal page that I can quote or embed? Many thanks.
1 Like
Hi! Did you end up figuring this out?
I need this too!
The only way I found is to use a query that fetches the block of the current journal but that’s not elegent ![]()
Here’s an example:
#+BEGIN_QUERY
{:title "JournalQuery"
:query [:find (pull ?h [*])
:in $ ?today
:where
;;[?h :block/marker ?marker]
;;[(contains? #{"NOW" "DOING"} ?marker)]
[?h :block/page ?p]
[?p :block/journal? true]
[?p :block/journal-day ?d]
[(== ?d ?today)]
]
:inputs [:today]
;;:result-transform (fn [result]
;; (sort-by (fn [h]
;; (get h :block/priority "Z")) result))
:breadcrumb-show? false
:group-by-page? true
:collapsed? false}
#+END_QUERY
- Add the following macro inside file
config.edn, insidemacros{}::journal "{{embed <%today%>}}" - Use it somewhere else like this:
{{journal}}
3 Likes