Skip to content

Commit

Permalink
Add shortTitle as a template option
Browse files Browse the repository at this point in the history
See #9
  • Loading branch information
MunGell committed Oct 26, 2024
1 parent e38f6f2 commit 6380589
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ Following keywords are acceptable in the template:

* `{{ key }}` – Zotero item key
* `{{ title }}` – item title
* `{{ shortTitle }}` – item short title
* `{{ date.year }}` – publication year e.g. 2011
* `{{ date.month }}` – publication month e.g. 10
* `{{ date.day }}` – publication day e.g. 31
Expand Down
1 change: 1 addition & 0 deletions src/ZoteroLinkSettingTab.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ export class ZoteroLinkSettingTab extends PluginSettingTab {
const keywordList = availableKeywords.createEl('ul');
keywordList.appendChild(availableKeywords.createEl('li', { text: '{{ key }} - Zotero item key' }));
keywordList.appendChild(availableKeywords.createEl('li', { text: '{{ title }} - item title' }));
keywordList.appendChild(availableKeywords.createEl('li', { text: '{{ shortTitle }} - item short title' }));
keywordList.appendChild(availableKeywords.createEl('li', { text: '{{ date.year }} - publication year e.g. 2011'}));
keywordList.appendChild(availableKeywords.createEl('li', { text: '{{ date.month }} - publication month e.g. 10' }));
keywordList.appendChild(availableKeywords.createEl('li', { text: '{{ date.day }} - publication day e.g. 31' }));
Expand Down

0 comments on commit 6380589

Please sign in to comment.