Add open-graph stuff
This commit is contained in:
parent
b56c0d37d8
commit
ee6921f1b6
|
@ -1,14 +1,24 @@
|
|||
VERSION?="0.3.22"
|
||||
|
||||
build:
|
||||
@echo "==> Starting build in Docker..."
|
||||
@docker run \
|
||||
--interactive \
|
||||
--rm \
|
||||
--tty \
|
||||
--volume "$(shell pwd):/website" \
|
||||
hashicorp/middleman-hashicorp:${VERSION} \
|
||||
bundle exec middleman build --verbose --clean
|
||||
|
||||
website:
|
||||
@echo "==> Starting website in Docker..."
|
||||
@docker run \
|
||||
--interactive \
|
||||
--rm \
|
||||
--interactive \
|
||||
--rm \
|
||||
--tty \
|
||||
--publish "4567:4567" \
|
||||
--publish "35729:35729" \
|
||||
--volume "$(shell pwd):/website" \
|
||||
hashicorp/middleman-hashicorp:${VERSION}
|
||||
|
||||
.PHONY: website
|
||||
.PHONY: build website
|
||||
|
|
|
@ -8,6 +8,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
|
||||
|
|
Binary file not shown.
After Width: | Height: | Size: 161 KiB |
|
@ -3,12 +3,17 @@ $white: #FFFFFF;
|
|||
$black: #000000;
|
||||
$gray-darker: #555555;
|
||||
|
||||
$consul-pink: #D62783;
|
||||
$consul-pink-dark: #961D59;
|
||||
$packer-blue: #1DAEFF;
|
||||
$packer-blue-dark: #1D94DD;
|
||||
$terraform-purple: #5C4EE5;
|
||||
$terraform-purple-dark: #4040B2;
|
||||
$vagrant-blue: #1563FF;
|
||||
$vagrant-blue-dark: #104EB2;
|
||||
$vault-black: #000000;
|
||||
$vault-blue: #00ABE0;
|
||||
$vault-gray: #919FA8;
|
||||
|
||||
// Typography
|
||||
$font-family-klavika: 'klavika-web', 'Open Sans', "Helvetica Neue", Helvetica, Arial, sans-serif;
|
||||
|
|
|
@ -14,6 +14,17 @@
|
|||
<meta name="msapplication-config" content="/microsoft-tile.xml" />
|
||||
<meta name="theme-color" content="#ffffff">
|
||||
|
||||
<meta name="twitter:card" content="summary_large_image" />
|
||||
<meta name="twitter:site" content="@HashiCorp" />
|
||||
<meta name="twitter:creator" content="@HashiCorp" />
|
||||
<meta property="og:url" content="<%= File.join(base_url, current_page.url) %>" />
|
||||
<meta property="og:title" content="<%= title_for(current_page) %>" />
|
||||
<meta property="og:site_name" content="Vagrant by HashiCorp"/>
|
||||
<meta property="og:image" content="<%= image_url("og-image.png") %>"/>
|
||||
<meta property="og:image:width" content="1200"/>
|
||||
<meta property="og:image:height" content="1200"/>
|
||||
<meta property="og:description" content="<%= description_for(current_page) %>" />
|
||||
|
||||
<title><%= title_for(current_page) %></title>
|
||||
|
||||
<%= stylesheet_link_tag "application" %>
|
||||
|
|
Loading…
Reference in New Issue