-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2611c54
commit 2f915f1
Showing
17 changed files
with
306 additions
and
810 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,31 @@ | ||
# Logseq Plugin Starter | ||
# Logseq Block Calendar | ||
|
||
[![Github All Releases](https://img.shields.io/github/downloads/vipzhicheng-starter/logseq-plugin-starter-vite/total.svg)](https://github.com/vipzhicheng-starter/logseq-plugin-starter-vite/releases) | ||
[![Github All Releases](https://img.shields.io/github/downloads/vipzhicheng/logseq-plugin-block-calendar/total.svg)](https://github.com/vipzhicheng/logseq-plugin-block-calendar/releases) | ||
|
||
A Logseq plugin starter based on vite and tailwindcss. | ||
A plugin to render a calendar in block, so you can put it onto right side bar. | ||
|
||
## What's in it. | ||
![screencast](./screencast.gif) | ||
|
||
* Just a hello world for now. | ||
* No vue/react included. | ||
## Features | ||
|
||
## How to use it. | ||
* Click date to jump to journal page. | ||
* Switch month back and forth. | ||
* Set back to today's month. | ||
* Show if journal page exist by showing a red dot. | ||
* Support setting first day of week. | ||
|
||
1. Clone | ||
2. Run `npm install` | ||
3. Run `npm run build` | ||
4. In logseq, click `Plugins` which is in right top dropdown menu | ||
5. Click `Load unpacked plugin` button and select the `dist` sub directory. | ||
6. If plugin not work, you can try to disable and enable the plugin by clicking the switch button on Plugins page. | ||
## Usage | ||
|
||
- Slash command `/Insert Block Calendar` to insert a calendar | ||
- `{{renderer block-calender:RandomID, [2022], [7], [en], [nohead|nonav]}}` | ||
- `[2022]`, `[7]`, `[en]` is optional. | ||
- Only support `zh-CN` and `en` language, PR is welcome. | ||
- `nohead` means do not have table head, so no month and year and month switcher. | ||
- `nonav` means still have month and year, but no month switcher. | ||
|
||
## ❤️ Buy me a coffee | ||
|
||
If you like this plugin and you will, you can choose to buy me a coffee via [this](https://www.buymeacoffee.com/vipzhicheng) and [this](https://afdian.net/@vipzhicheng), that means a lot to me. | ||
|
||
## Licence | ||
MIT |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.