Hey! So looking at some of the other templates, if you want to add a page number and page link, add the following line in next to any of the annotation types where you want to have a page number link available.
[(pg. {{annot.page}})](zotero://open-pdf/library/items/{{annot.attachment.itemKey}}?page={{annot.page}})
I added a commented version of the annotations section of the previous template, indicating the type of annotation, and where I added the page number and page link. Currently, it is only added to text highlights.
Also, a small change from before, I will highlight headers and section titles in whatever text I am reading, and then directly edit the annotation to include ## to indicate a markdown header. I added a line or two to filter that and format appropriately so you get nice little markdown section headers from those highlights. It is really useful if you are annotating huge books and long review.
# Annotations
{% persist "annotations" %}
{% set annots = annotations | filterby("date", "dateafter", lastImportDate) -%}
{% if annots.length > 0 %}
{% for annot in annots -%}
{#-**Annotations that start with #, to be turned into markdown style section headers**-#}
{% if annot.annotatedText and "#" in annot.annotatedText %}
{{annot.annotatedText|nl2br|lower|title}}
{#-**Regular text annotations w/ page number and page link**-#}
{%- elif annot.annotatedText %}
- <mark style="background: {{annot.color}}">{{annot.annotatedText | nl2br}} </mark> [(pg. {{annot.page}})](zotero://open-pdf/library/items/{{annot.attachment.itemKey}}?page={{annot.page}}) {#**page link**#}
{%- endif -%}
{#-**Image annotations**-#}
{%- if annot.imageRelativePath %}
![[{{annot.imageRelativePath}}]]
{%- endif %}
{#-**comment annotations**-#}
{%- if annot.comment %}
>[!annot] Comment
>{{annot.comment | nl2br}}
{%- endif %}
{%- endfor %}
{%- endif -%}
{%- endpersist -%}
Hope it is helpful!