I don't like leading spaces

This commit is contained in:
Nox Sluijtman 2022-08-23 23:41:20 +02:00
parent 2bb8efab1f
commit d1063e7df6
5 changed files with 31 additions and 61 deletions

View file

@ -1,24 +0,0 @@
{{- $cover := false -}}
{{- $autoCover := default $.Site.Params.autoCover false }}
{{- if index .Params "cover" -}}
{{- if .Resources.GetMatch .Params.Cover }}
{{- $cover = (.Resources.GetMatch .Params.Cover).RelPermalink -}}
{{- else -}}
{{- $cover = absURL .Params.Cover -}}
{{- end -}}
{{- else if $.Site.Params.AutoCover -}}
{{- if (not .Params.Cover) -}}
{{- if .Resources.GetMatch "cover.*" -}}
{{- $cover = (.Resources.GetMatch "cover.*").RelPermalink -}}
{{- end -}}
{{- end -}}
{{- end -}}
{{if $cover -}}
<!-- Cover image found -->
<img src="{{ $cover }}"
class="post-cover"
alt="{{ .Title | plainify | default " " }}"
title="{{ .Params.CoverCredit |plainify|default "Cover Image" }}" />
{{- end }}

View file

@ -1,10 +1,3 @@
<!--
class: class of the figure
link: url the image directs to
alt: alternative text
caption: caption
mouse: what the image says when moused over ("title" in HTML)
-->
<audio controls="true">
<source src="{{.Get "src" }}" type="audio/{{.Get "audio" }}">
Sorry mate, your browser doesn't support playing audio files.

View file

@ -0,0 +1 @@
<blockquote class="hyperbowl">{{ .Get "content" }}</blockquote>