removes all space consuming symbols in templates
This commit is contained in:
parent
c5ab13bf48
commit
90a8c7d5af
26 changed files with 126 additions and 126 deletions
|
@ -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>
|
||||
|
|
|
@ -1 +1 @@
|
|||
<kbd>{{- .Get 0 -}}</kbd>
|
||||
<kbd>{{ .Get 0 }}</kbd>
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
<blockquote {{ with .Get "class" }}class="{{.}}"{{ end }}>
|
||||
<strong>{{ .Get 0 | default "Note" }}</strong><br>
|
||||
{{- .Inner -}}
|
||||
</blockquote>
|
||||
{{ .Inner }}
|
||||
</blockquote>
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
<blockquote class="warning">
|
||||
<strong>{{ .Get 0 | default "Warning" }}</strong><br>
|
||||
{{- .Inner -}}
|
||||
{{ .Inner }}
|
||||
</blockquote>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue