Comments (1)
Hello!
Just like days.js
documentation shows:
![](https://private-user-images.githubusercontent.com/1984175/276322663-ac460333-41f6-4330-ad86-6dd04027c851.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTgyMzQ3NzMsIm5iZiI6MTcxODIzNDQ3MywicGF0aCI6Ii8xOTg0MTc1LzI3NjMyMjY2My1hYzQ2MDMzMy00MWY2LTQzMzAtYWQ4Ni02ZGQwNDAyN2M4NTEucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDYxMiUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDA2MTJUMjMyMTEzWiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9YmIyNTAyMmZkNjFkYTM2ZjkzMzFjNTk3YWU1YThkM2NhODc3MmQ1YjkzZjgyM2I0NDllNWVjMjA4MDNmZGU0NCZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.DHZXcCvw99w8FjInfhW7UweFI3Ej19HxqwazWzknzGY)
For your example I've made some changes:
- Prefer new syntax style:
``...``
instead of old one:``{...}``
- Used
c.page.day
to accessday.js
object related to journal page (it is empty for non-journal), instead of parsing page name withdate.from
- Changed
.week
to.isoWeek
- Add
Variant 2
to access iso week number via.format
(seeday.js
documentation)
Variant 1: Today Work [[``c.page.day.year()``-W``c.page.day.isoWeek()``]]
Variant 2: Today Work [[``c.page.day.format('YYYY-[W]W')``]]
![](https://private-user-images.githubusercontent.com/1984175/276326469-ba272a8e-5c64-428a-994a-4697bd595e0d.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTgyMzQ3NzMsIm5iZiI6MTcxODIzNDQ3MywicGF0aCI6Ii8xOTg0MTc1LzI3NjMyNjQ2OS1iYTI3MmE4ZS01YzY0LTQyOGEtOTk0YS00Njk3YmQ1OTVlMGQucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDYxMiUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDA2MTJUMjMyMTEzWiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9NDg5YzYyMTE5OTQ1OTIzNTQ4NDI2YjI5ZGJjODdmOWQ4YTM0ZmI3MDRiMWIyYjg0MDRhZDFjNjBiNDFiYjdjYiZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.XyTplA3ykKeOd1K71SHt2RQ6CqNCGeHwWrFk8Se4oGQ)
from logseq13-full-house-plugin.
Related Issues (20)
- [Showcases] Adapt `Glass Card` for Light color themes HOT 1
- Template Inheritance HOT 1
- [Context] Blocks Navigation — Get next / prev siblings, parent blocks & children
- Set cursor position after inserting template
- Make copy-paste of a rendered template easy HOT 1
- Add an option to disable rendering within the template block HOT 1
- [Template tags] `macro` to easily add macro calls to render AFTER template insertion HOT 1
- [Template tags] Including templates HOT 3
- Queries with params HOT 1
- Macro style (width) changed after loading plugin HOT 2
- [UI] Select template from a list HOT 2
- [Core] Rendering standard templates with <% %> syntax HOT 1
- Render template loss inner block HOT 6
- Render result has duplicate blocks. HOT 3
- How should I use the new syntax HOT 2
- Rendering is space sensitive HOT 1
- Included template renders `template-list-as` property HOT 1
- Page-ref macro arg confused with other args HOT 1
- Date language HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from logseq13-full-house-plugin.