removes all space consuming symbols in templates

This commit is contained in:
Huy Tran 2018-07-30 07:41:49 +10:00
parent c5ab13bf48
commit 90a8c7d5af
26 changed files with 126 additions and 126 deletions

View file

@ -21,8 +21,8 @@
src="{{ (printf "%s%s" $permalink $image) }}"
{{ end }}
{{ if .Get "alt" }}alt="{{ .Get "alt" | markdownify | plainify }}"
{{- else if .Get "caption" }}alt="{{ .Get "caption" | markdownify | plainify }}"
{{- end }}
{{ else if .Get "caption" }}alt="{{ .Get "caption" | markdownify | plainify }}"
{{ end }}
{{ with .Get "align" }}align="{{ . }}"{{ end }}
width="{{ .Get "width" | default "100%"}}"
{{ with .Get "height" }}width="{{ . }}"{{ end }} />
@ -33,9 +33,9 @@
<span class="img--caption">
Figure {{ $.Page.Scratch.Get "fig" }}. {{ $fig.Get "caption" | markdownify | plainify }}
{{ if .Get "attr" }}
[{{- with .Get "attrlink"}}<a href="{{ . | markdownify }}">{{ end -}}
[{{ with .Get "attrlink"}}<a href="{{ . | markdownify }}">{{ end }}
{{ .Get "attr" | markdownify }}
{{- if .Get "attrlink"}}</a>{{- end }}]
{{ if .Get "attrlink"}}</a>{{ end }}]
{{ end }}
</span>
</figcaption>

View file

@ -1 +1 @@
<kbd>{{- .Get 0 -}}</kbd>
<kbd>{{ .Get 0 }}</kbd>

View file

@ -1,4 +1,4 @@
<blockquote {{ with .Get "class" }}class="{{.}}"{{ end }}>
<strong>{{ .Get 0 | default "Note" }}</strong><br>
{{- .Inner -}}
</blockquote>
{{ .Inner }}
</blockquote>

View file

@ -1,4 +1,4 @@
<blockquote class="warning">
<strong>{{ .Get 0 | default "Warning" }}</strong><br>
{{- .Inner -}}
{{ .Inner }}
</blockquote>