diff --git a/website/config.rb b/website/config.rb index c38011c881..02df75a67d 100644 --- a/website/config.rb +++ b/website/config.rb @@ -1,7 +1,3 @@ -#------------------------------------------------------------------------- -# Configure Middleman -#------------------------------------------------------------------------- - set :base_url, "https://www.consul.io/" activate :hashicorp do |h| @@ -11,6 +7,15 @@ activate :hashicorp do |h| end helpers do + # Returns the FQDN of the image URL. + # + # @param [String] path + # + # @return [String] + def image_url(path) + File.join(base_url, image_path(path)) + end + # Get the title for the page. # # @param [Middleman::Page] page diff --git a/website/source/assets/images/og-image.png b/website/source/assets/images/og-image.png new file mode 100644 index 0000000000..da63279f10 Binary files /dev/null and b/website/source/assets/images/og-image.png differ diff --git a/website/source/layouts/layout.erb b/website/source/layouts/layout.erb index 0f0b9c0c12..f0bf841ee4 100644 --- a/website/source/layouts/layout.erb +++ b/website/source/layouts/layout.erb @@ -10,10 +10,21 @@ " sizes="32x32"> " sizes="16x16"> - " color="#23414a"> + " color="#961D59"> + + + + + + + "/> + + + + <%= title_for(current_page) %> <%= stylesheet_link_tag "application" %>