Remove the .centered div around figuers

This commit is contained in:
Eryn Wells 2022-09-24 07:47:39 -07:00
parent 05d87dfa19
commit 430846449d
2 changed files with 13 additions and 19 deletions

View file

@ -1,14 +1,10 @@
{{ $img := (.Page.Resources.GetMatch (.Get "name")) }} {{ $img := (.Page.Resources.GetMatch (.Get "name")) }}
{{ $resized_img := $img.Fit "1280x1280" }} {{ $resized_img := $img.Fit "1280x1280" }}
<div class="centered"> <figure>
<figure>
<a href="{{ $img.RelPermalink }}"> <a href="{{ $img.RelPermalink }}">
<img src="{{ $resized_img.RelPermalink }}" /> <img src="{{ $resized_img.RelPermalink }}" />
</a> </a>
{{ if $img.Title }} {{ if $img.Title }}
<figcaption> <figcaption>{{ $img.Title }}</figcaption>
<p>{{ $img.Title }}</p>
</figcaption>
{{ end }} {{ end }}
</figure> </figure>
</div>

View file

@ -4,11 +4,9 @@
{{- $id := .Get "id" | default (.Get 0) -}} {{- $id := .Get "id" | default (.Get 0) -}}
{{- $class := .Get "class" | default (.Get 1) -}} {{- $class := .Get "class" | default (.Get 1) -}}
{{- $title := .Get "title" | default "YouTube Video" }} {{- $title := .Get "title" | default "YouTube Video" }}
<div class="centered"> <figure>
<figure>
<div class="youtube"> <div class="youtube">
<iframe src="https://{{ $ytHost }}/embed/{{ $id }}{{ with .Get "autoplay" }}{{ if eq . "true" }}?autoplay=1{{ end }}{{ end }}" allowfullscreen frameborder=0 title="{{ $title }}"></iframe> <iframe src="https://{{ $ytHost }}/embed/{{ $id }}{{ with .Get "autoplay" }}{{ if eq . "true" }}?autoplay=1{{ end }}{{ end }}" allowfullscreen frameborder=0 title="{{ $title }}"></iframe>
</div> </div>
</figure> </figure>
</div>
{{ end -}} {{ end -}}