diff --git a/website/data/news.yml b/website/data/news.yml new file mode 100644 index 000000000..d7dbac295 --- /dev/null +++ b/website/data/news.yml @@ -0,0 +1,19 @@ +default_link_text: 'Read more' + +featured_post: + media_html: Webinar Register Now + title: Controlling Your Organization With HashiCorp Terraform and Google Cloud Platform + body: Register for our upcoming webinar with Google Cloud on May 24th. Learn how to build your entire infrastructure across Google Cloud with one command. + link_url: http://hashi.co/2qO6A2H + link_text: Register + +additional_posts: + - + title: Terraform 0.9 Released + body: Terraform 0.9 adds major new functionality to Terraform. Read the highlights from the 0.9 release. + link_url: https://www.hashicorp.com/blog/terraform-0-9/ + - + title: 'Webinar: Multi-Cloud, One Command with Terraform' + body: Watch our recent webinar with Mitchell Hashimoto to learn how Terraform provisions infrastructure across different clouds using a consistent workflow. + link_url: https://youtu.be/nLg7fpVcIv4 + link_text: Watch Now diff --git a/website/source/assets/images/news/webinar-register-2000w.png b/website/source/assets/images/news/webinar-register-2000w.png new file mode 100644 index 000000000..57a2e2b9e Binary files /dev/null and b/website/source/assets/images/news/webinar-register-2000w.png differ diff --git a/website/source/assets/images/news/webinar-register-585w.png b/website/source/assets/images/news/webinar-register-585w.png new file mode 100644 index 000000000..1f23bd903 Binary files /dev/null and b/website/source/assets/images/news/webinar-register-585w.png differ diff --git a/website/source/index.html.erb b/website/source/index.html.erb index a47f59ae7..97425655e 100644 --- a/website/source/index.html.erb +++ b/website/source/index.html.erb @@ -177,33 +177,26 @@ description: |-

Latest News

+ <% feature = data.news.featured_post %>
- - <%#= image_tag 'news/webinar-Terraform-4-4-2017.png', alt: 'Webinar April 4, 2017, 10:00 AM PST' %> -

Webinar: Multi-Cloud, One Command with Terraform

-

- Watch our recent webinar with Mitchell Hashimoto to learn how Terraform provisions infrastructure across different clouds using a consistent workflow. -

- Watch Now + <%= feature.media_html %> +

<%= feature.title %>

+ <%= simple_format feature.body %> + <% if feature.link_url %> + <%= feature.link_text || data.news.default_link_text %> + <% end %>
-
-

Terraform 0.9 Released

-

- Terraform 0.9 adds major new functionality to Terraform. Read the - highlights from the 0.9 release -

- Read more -
-
-

Applying Graph Theory to Infrastructure As Code

-

- Watch this talk from HashiConf 2016 where we explore the graph - theory at the heart of Terraform's orchestration engine. -

- Watch Video -
+ <% data.news.additional_posts.each do |post| %> +
+

<%= post.title %>

+ <%= simple_format post.body %> + <% if post.link_url %> + <%= post.link_text || data.news.default_link_text %> + <% end %> +
+ <% end %>