mirror of
https://gitlab.com/EternalWanderer/vugo.git
synced 2024-11-29 05:23:50 +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,14 +1,14 @@
|
||||||
<nav class="menu">
|
<nav class="menu">
|
||||||
<a href="/">home </a>
|
<a href="/">home </a>
|
||||||
{{ range $.Site.Menus.main }}
|
{{ range $.Site.Menus.main }}
|
||||||
{{ if not .HasChildren }}
|
{{ if not .HasChildren }}
|
||||||
<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>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</nav>
|
</nav>
|
||||||
|
|
|
@ -1,20 +1,20 @@
|
||||||
<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 }}">
|
||||||
<span class="button__icon">←</span>
|
<span class="button__icon">←</span>
|
||||||
<span class="button__text">{{ $.Site.Params.newerPosts | default "Newer posts" }}</span>
|
<span class="button__text">{{ $.Site.Params.newerPosts | default "Newer posts" }}</span>
|
||||||
</a>
|
</a>
|
||||||
</span>
|
</span>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ if .Paginator.HasNext }}
|
{{ if .Paginator.HasNext }}
|
||||||
<span class="button next">
|
<span class="button next">
|
||||||
<a href="{{ .Paginator.Next.URL }}">
|
<a href="{{ .Paginator.Next.URL }}">
|
||||||
<span class="button__text">{{ $.Site.Params.olderPosts | default "Older posts" }}</span>
|
<span class="button__text">{{ $.Site.Params.olderPosts | default "Older posts" }}</span>
|
||||||
<span class="button__icon">→</span>
|
<span class="button__icon">→</span>
|
||||||
</a>
|
</a>
|
||||||
</span>
|
</span>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -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.
|
||||||
|
|
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