blob: d69966f2e68a26d6d6cb4b39f45d7723ff11b54e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
{{- $mark := (.Get `mark`) -}}
{{- $set := (.Get `set`) -}}
{{- $source := (.Get `source`) -}}
{{- $title := (.Get `title`) -}}
{{- $id := md5 (printf $mark .Inner) -}}
{{- $imageFile := print "public" $source -}}
{{- $image := imageConfig $imageFile -}}
<margin-note-aside>
<label for="{{ $id }}" title="{{ .Inner | replaceRE "\n" " " | markdownify }}"><span>{{ $mark | markdownify }}</span></label>
<input type="checkbox" id="{{ $id }}" name="toggle">
<margin-note title="{{ $mark }}" image {{ $set }}>
<a href="{{ $source }}" onclick="return false;">
<img data-image-zoom
src="{{ $source }}"
title="{{ $title }}"
width="{{ $image.Width }}"
height="{{ $image.Height }}"
alt="{{ .Inner | markdownify }}"
/>
</a>
<mark>{{ .Inner | markdownify }}</mark>
</margin-note>
</margin-note-aside>
|