mirror of
https://gitlab.com/EternalWanderer/vugo.git
synced 2024-11-28 21:13:51 +01:00
I don't like leading spaces
This commit is contained in:
parent
2bb8efab1f
commit
d1063e7df6
|
@ -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 }}
|
|
@ -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.
|
||||
|
|
1
layouts/shortcodes/hyperbowl.html
Normal file
1
layouts/shortcodes/hyperbowl.html
Normal file
|
@ -0,0 +1 @@
|
|||
<blockquote class="hyperbowl">{{ .Get "content" }}</blockquote>
|
Loading…
Reference in a new issue