From 5bb9412c8088474af25d0510776a4525e23bdc55 Mon Sep 17 00:00:00 2001 From: marco ranieri Date: Wed, 31 Aug 2022 11:54:42 +0200 Subject: [PATCH] FIX: fixed code format in blog page + updated statuspage API for homepage widget + VERSION --- lib/nexmo_developer/app/assets/stylesheets/blog/blog.scss | 6 +++--- lib/nexmo_developer/app/views/blog/blogpost/show.html.erb | 2 ++ .../app/webpacker/javascript/api_status/index.js | 2 +- lib/nexmo_developer/version.rb | 2 +- 4 files changed, 7 insertions(+), 5 deletions(-) diff --git a/lib/nexmo_developer/app/assets/stylesheets/blog/blog.scss b/lib/nexmo_developer/app/assets/stylesheets/blog/blog.scss index 691aed579..c7e96ecd9 100644 --- a/lib/nexmo_developer/app/assets/stylesheets/blog/blog.scss +++ b/lib/nexmo_developer/app/assets/stylesheets/blog/blog.scss @@ -132,9 +132,9 @@ color: #374151; margin: 1em 0; - strong { - display: inline-block; - margin: 1em 0; + code { + font-size: 1.4rem; + word-break: break-word; } } diff --git a/lib/nexmo_developer/app/views/blog/blogpost/show.html.erb b/lib/nexmo_developer/app/views/blog/blogpost/show.html.erb index 554421cea..8f4ee6012 100644 --- a/lib/nexmo_developer/app/views/blog/blogpost/show.html.erb +++ b/lib/nexmo_developer/app/views/blog/blogpost/show.html.erb @@ -8,9 +8,11 @@ <% content_for :header_img_url do %> <%= @blogpost.header_img_url.strip %> <% end %> + <% content_for :title do %> <%= @blogpost.title.strip %> <% end %> + <% content_for :description do %> <%= @blogpost.description.truncate(150).strip %> <% end %> diff --git a/lib/nexmo_developer/app/webpacker/javascript/api_status/index.js b/lib/nexmo_developer/app/webpacker/javascript/api_status/index.js index 7892c4588..5fd918c4d 100644 --- a/lib/nexmo_developer/app/webpacker/javascript/api_status/index.js +++ b/lib/nexmo_developer/app/webpacker/javascript/api_status/index.js @@ -1,7 +1,7 @@ import 'whatwg-fetch' export default () => { - fetch('https://xb8glk41jfrv.statuspage.io/api/v2/status.json') + fetch('https://k4cdqxp909c5.statuspage.io/api/v2/status.json') .then((response) => response.json()) .then((payload) => { var color; diff --git a/lib/nexmo_developer/version.rb b/lib/nexmo_developer/version.rb index 0d1020df3..3305fc2d0 100644 --- a/lib/nexmo_developer/version.rb +++ b/lib/nexmo_developer/version.rb @@ -1,3 +1,3 @@ module NexmoDeveloper - VERSION = '0.5.5'.freeze + VERSION = '0.5.6'.freeze end