summaryrefslogtreecommitdiff
path: root/template/doc.tmpl
diff options
context:
space:
mode:
Diffstat (limited to 'template/doc.tmpl')
-rw-r--r--template/doc.tmpl16
1 files changed, 11 insertions, 5 deletions
diff --git a/template/doc.tmpl b/template/doc.tmpl
index 26b9624..f82bec4 100644
--- a/template/doc.tmpl
+++ b/template/doc.tmpl
@@ -24,7 +24,9 @@
</ul>
{{end}}
-{{define "newline"}}{{end}}
+{{define "newline"}}
+{{/* newline */}}
+{{end}}
{{define "section"}}
<h4 id="TOC_{{.FormattedNumber}}">{{.Title}}</h4>
@@ -51,21 +53,25 @@
{{end}}
{{define "code"}}
- <code>{{.Text}}</code>
+ <div class="code">{{.Text}}</div>
{{end}}
{{define "image"}}
- <img src="{{.URL}}"{{with .Height}} height="{{.}}"{{end}}{{with .Width}} width="{{.}}"{{end}} alt="image">
+ <img src="https://www.dim13.org/{{.URL}}"{{with .Height}} height="{{.}}"{{end}}{{with .Width}} width="{{.}}"{{end}} alt="image">
{{end}}
{{define "caption"}}
- <div class="figcaption">{{style .Text}}</div>
+ <figcaption>{{style .Text}}</figcaption>
{{end}}
{{define "iframe"}}
+<div class="iframe">
<iframe src="{{.URL}}"{{with .Height}} height="{{.}}"{{end}}{{with .Width}} width="{{.}}"{{end}} frameborder="0" allowfullscreen mozallowfullscreen webkitallowfullscreen></iframe>
+</div>
{{end}}
-{{define "link"}}<p><a href="{{.URL}}" target="_blank">{{style .Label}}</a></p>{{end}}
+{{define "link"}}
+ <p class="link"><a href="{{.URL}}" target="_blank">{{style .Label}}</a></p>
+{{end}}
{{define "html"}}{{.HTML}}{{end}}