Showcase your template(s) #32
Replies: 7 comments 10 replies
-
Beta Was this translation helpful? Give feedback.
-
Dropping by to share my template in progress! I adapted the default template by adding front matter, adding a markdown table, using @Index to have collapsable sections for each highlight, and putting the highlight text in a callout. I experimented with some Dataview tables but I found I liked the markdown table better for my use case. I also built in links to other files for the book, since the importer overwrites any changes to the imported highlights file this gives me somewhere to add thoughts and comments.
|
Beta Was this translation helpful? Give feedback.
-
Thanks for developing this extension. It suites very nice to my workflow! Here is my template: ---
title: {{{bookTitle}}}
author: {{{bookAuthor}}}
highlights: {{annotations.length}}
opened: {{dateFormat bookLastOpenedDate "YYYY-MM-DD"}}
cover: {{bookCoverUrl}}
---
## Annotations from {{{bookTitle}}}
Go to the [Book](ibooks://assetid/{{bookId}})
{{#each annotations}}
----
## [[{{dateFormat highlightCreationDate "YYYY-MM-DD"}}]]
{{#if contextualText}} > {{{contextualText}}} {{else}}> [...]{{/if}}
"{{{highlight}}}" {{#if highlightLocation}} [Highlight Link](ibooks://assetid/ {{../bookId}} # {{highlightLocation}}) {{else}}[...]{{/if}} {{#if note}} {{{note}}} {{else}}...{{/if}}
{{/each}}
How it looks: It is also cool that as we can use the cover, I created a project view that lets me keep my books on a sort of shelf: PS: Some of my books don't have covers though, Is it possible to improve the extraction of covers or use others like in the obsidian-book-search-plugin? Best. |
Beta Was this translation helpful? Give feedback.
-
The idea with this being to make all underlines into Headings and have all the highlights as code blocks that can be copied by a click. |
Beta Was this translation helpful? Give feedback.
-
More or less similar to the standard colour highlights template, but making the underlines as headings. |
Beta Was this translation helpful? Give feedback.
-
Making each of your coloured highlights into coloured callouts. This one does involve having to make your own custom callouts titled 0, 1, 2, 3, 4, 5 Sharing my example css anyway: .callout[data-callout="0"] {--callout-color: 54,152,142; --callout-icon: plane-takeoff;}
.callout[data-callout="1"] {--callout-color: 175,213,151; --callout-icon: plane-takeoff;}
.callout[data-callout="2"] {--callout-color: 181,205,238; --callout-icon: plane-takeoff;}
.callout[data-callout="3"] {--callout-color: 249,213,108; --callout-icon: plane-takeoff;}
.callout[data-callout="4"] {--callout-color: 242,178,188; --callout-icon: plane-takeoff;}
.callout[data-callout="5"] {--callout-color: 214,192,238; --callout-icon: plane-takeoff;} |
Beta Was this translation helpful? Give feedback.
-
Thank to @jun6lee made my own template. Added notes, if there are any. ---
Title: {{{bookTitle}}}
Author: {{{bookAuthor}}}
Annotations: {{{annotations.length}}}
---
Title: {{{bookTitle}}}
Author: {{{bookAuthor}}}
Link: [Apple Books Link](ibooks://assetid/{{bookId}})
{{#each annotations}}
> [!{{{highlightStyle}}}]
{{{highlight}}}
{{#if note}}Note: {{{note}}}
{{/if}}
*{{dateFormat highlightModificationDate "DD MMMM ′YY · hh:mm"}} · {{#if highlightLocation}}[Show in Books](ibooks://assetid/{{../bookId}}#{{highlightLocation}}){{else}}N/A{{/if}}*
{{/each}} Also updated snippet to: .callout[data-callout="0"] {--callout-color: 54,152,142; --callout-icon: plane-takeoff;}
.callout[data-callout="0"] .callout-title {display: none;}
.callout[data-callout="0"] p {margin: 16px 0px !important;}
.callout[data-callout="1"] {--callout-color: 175,213,151; --callout-icon: plane-takeoff;}
.callout[data-callout="1"] .callout-title {display: none;}
.callout[data-callout="1"] p {margin: 16px 0px !important;}
.callout[data-callout="2"] {--callout-color: 181,205,238; --callout-icon: plane-takeoff;}
.callout[data-callout="2"] .callout-title {display: none;}
.callout[data-callout="2"] p {margin: 16px 0px !important;}
.callout[data-callout="3"] {--callout-color: 249,213,108; --callout-icon: plane-takeoff;}
.callout[data-callout="3"] .callout-title {display: none;}
.callout[data-callout="3"] p {margin: 16px 0px !important;}
.callout[data-callout="4"] {--callout-color: 242,178,188; --callout-icon: plane-takeoff;}
.callout[data-callout="4"] .callout-title {display: none;}
.callout[data-callout="4"] p {margin: 16px 0px !important;}
.callout[data-callout="5"] {--callout-color: 214,192,238; --callout-icon: plane-takeoff;}
.callout[data-callout="5"] .callout-title {display: none;}
.callout[data-callout=""] p {margin: 16px 0px !important;} |
Beta Was this translation helpful? Give feedback.
-
Hi guys,
My plugin provides you with great opportunity to customize the options for how you want to see the generated notes for your highlights. And I thought that it would be great for you to showcase your templates and tell a little story about why you feel so special about it.
I will place a link to this discussion to the README file so that anyone can contribute to it. And new users who are playing around with the plugin, may find their inspiration here as well.
Let's start, I go first. Basically, I'm using the default template as it contains all the bells and whistles I expect from a Literature note. At this moment, in my Zettelkasten setup, Literature notes are temporary where all the highlights eventually dissolve in other notes and become a part of something bigger. However, I want to keep my registry of the books I've read but I'm still playing around with the format.
My template
Rendered version
It's your turn now! Can't wait to see your work! Don't be shy☺️
Beta Was this translation helpful? Give feedback.
All reactions