- {{ $paginator := .Paginate (where site.RegularPages "Type" "posts") }}
+ {{ $paginator := .Paginate (where site.RegularPages "Type" "posts") -}}
{{- range $i, $page := $paginator.Pages -}}
{{- /* Don't lazyload the first video in each page */ -}}
{{- $lazyload := cond (eq $i 0) false true -}}
diff --git a/src/layouts/_default/videos.html b/src/layouts/_default/videos.html
index 9aff332b2..79b21b8ec 100644
--- a/src/layouts/_default/videos.html
+++ b/src/layouts/_default/videos.html
@@ -1,6 +1,6 @@
{{ define "main" }}
{{ $postsWithVideos := where (where site.RegularPages "Type" "posts") ".Params.video" "!=" nil -}}
-{{- range $index, $post := $postsWithVideos }}
+{{- range $index, $post := $postsWithVideos -}}
{{- if eq $index 0 -}}
{{- end }}
diff --git a/src/layouts/partials/social.html b/src/layouts/partials/social.html
index db161712f..6001c300f 100644
--- a/src/layouts/partials/social.html
+++ b/src/layouts/partials/social.html
@@ -13,8 +13,10 @@
{{ template "_internal/opengraph.html" . -}}
+
{{- /* Manually add `og:image`'s dimensions since Hugo's internal shortcode doesn't do it */ -}}
-{{ with (imageConfig (path.Join "src/static" (index $.Site.Params.images 0))) -}}
+{{- $socialImage := path.Join "src/static" (index $.Site.Params.images 0) -}}
+{{- with imageConfig $socialImage -}}
{{- end }}
diff --git a/src/layouts/partials/video.html b/src/layouts/partials/video.html
index b1a053e4d..0f1527d6d 100644
--- a/src/layouts/partials/video.html
+++ b/src/layouts/partials/video.html
@@ -5,5 +5,12 @@
{{- $video_start := .context.Params.video_start -}}
-
+