summaryrefslogtreecommitdiff
path: root/template/doc.tmpl
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2017-12-26 13:04:18 +0100
committerDimitri Sokolyuk <demon@dim13.org>2017-12-26 13:04:18 +0100
commitc3e64686145b5b2c31e72a182b3f8ff6c3ae3ef9 (patch)
tree219a56b651b50f7021e27b1cbc38360f8b876a0e /template/doc.tmpl
parentaa3789452fd34c174268aaaa088e1fd97601a2d3 (diff)
Switch to bootstrap
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}}