Replies: 1 comment 6 replies
-
Days plugin is leading to |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
inspired by this Obsidian video and @inzagi1's question
Steps
Install
Days
plugin (weekly pages available only since v0.18Optionally install
Another Embed
plugin for nice-looking embed queries.Let's prepare the queries. Create anywhere in Logseq (ex: in «Queries» page) the following queries. I'll use 2 queries for #podcast and #diary records. But you can setup your own ones:
Fill the body of queries with the same one code. Insert it between
#+BEGIN_QUERY
and#+END_QUERY
with replacing the «…» (use copy button in the top right corner):Restriction: currently there is no way in Logseq to avoid copying of query body. Please vote for this feature here and like this comment.
Create
🏛template
anywhere in Logseq (ex: in «Templates» page). (Use copy button in the top right corner):Copy reference to both of queries via right clicking on corresponding bullet and selecting «Copy block embed»:

…and insert them under «Overview» heading. It should look like:
Now, let's setup
Days
plugin to automatically insert🏛️template
. Create another template:And add it's name to

Days
plugin's settingweekPageTemplate
:Additionally you can setup
Awesome Links
plugin to have colored references to Weekly Pages (according totype:: week
):t s
) → Awesome Links and set theinheritFromProp
setting totype
:[[week]]
page and add page propertycolor:: mediumseagreen
(choose any value you want via this service).❤️ Enjoy the full automatic weekly page creation!
FAQ
Why are queries embedded instead of being written directly in the template?
Because if you want to change the query, you would only need to modify it in one place - and the changes will be immediately visible on all already created weekly pages. This is very handy. But if you don't need this - you can do without embed and each time "enclose" the query inside the weekly page. Then, when changing the query in the template, only new pages will see its new look.
Why is the property
reference::
with the value#podcast
displayed in the query block?#podcast
to something else (for example, to#youtube-video
).podcast
page. This is handy if you want to rename thepodcast
page (e.g. to🎙️
). The block with the query will be renamed automatically. If it is not in Linked References, you will have to a) remember that the block with the query on the pages requires manual modification b) carry out this manual modification.custom.css
:Can I achieve the same result but without plugins?
Yes, see Option B here. The disadvantage of this approach is the need to manually create links to weekly pages somewhere.
Also you can't combine Weekly Pages with Monthly Pages approach.
Additional info
Beta Was this translation helpful? Give feedback.
All reactions