From 3eeb1e0714d8584053856af0d729d1881b8954b9 Mon Sep 17 00:00:00 2001 From: Lorin Werthen Date: Tue, 10 Apr 2018 11:56:30 +0200 Subject: [PATCH] okay fix figure stuff for real --- content/assets/stylesheets/includes/blogpost.scss | 2 +- lib/helpers/blog.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/content/assets/stylesheets/includes/blogpost.scss b/content/assets/stylesheets/includes/blogpost.scss index b316e69..ea20a7b 100644 --- a/content/assets/stylesheets/includes/blogpost.scss +++ b/content/assets/stylesheets/includes/blogpost.scss @@ -116,7 +116,7 @@ $sel: ''; } } -.full-width { +.content figure.full-width { margin-left: -50vw; margin-right: -50vw; width: 100vw; diff --git a/lib/helpers/blog.rb b/lib/helpers/blog.rb index 73bfd50..96db131 100644 --- a/lib/helpers/blog.rb +++ b/lib/helpers/blog.rb @@ -17,7 +17,7 @@ module BlogHelper def figure(img_url, caption, alt = nil, img_class: nil) alt ||= caption <<~HTML -
+
#{alt}