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

@ -5,7 +5,7 @@
<a href="{{ .URL }}">{{ .Name }} </a> <a href="{{ .URL }}">{{ .Name }} </a>
{{ end }} {{ end }}
{{ end }} {{ end }}
<hr /> <hr />
{{ range $.Site.Menus.services }} {{ range $.Site.Menus.services }}
{{ if not .HasChildren }} {{ if not .HasChildren }}
<a href="{{ .URL }}">{{ .Name }} </a> <a href="{{ .URL }}">{{ .Name }} </a>

View file

@ -1,5 +1,5 @@
<div class="pagination"> <div class="pagination">
<div class="pagination__buttons"> <div class="pagination__buttons">
{{ if .Paginator.HasPrev }} {{ if .Paginator.HasPrev }}
<span class="button prev"> <span class="button prev">
<a href="{{ .Paginator.Prev.URL }}"> <a href="{{ .Paginator.Prev.URL }}">
@ -16,5 +16,5 @@
</a> </a>
</span> </span>
{{ end }} {{ end }}
</div> </div>
</div> </div>

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"> <audio controls="true">
<source src="{{.Get "src" }}" type="audio/{{.Get "audio" }}"> <source src="{{.Get "src" }}" type="audio/{{.Get "audio" }}">
Sorry mate, your browser doesn't support playing audio files. Sorry mate, your browser doesn't support playing audio files.

View file

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