blob: a2574d5025c44efb8eec00f6e38eac6f0c9c076f (
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 -}}
<side-note-aside>
<label for="{{ $id }}" title="{{ .Inner | replaceRE "\n" " " | markdownify }}"><span>{{ $mark | markdownify }}</span></label>
<input type="checkbox" id="{{ $id }}" name="toggle">
<side-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>
</side-node>
</side-note-aside>
|