Skip to content

Commit e086b66

Browse files
authored
Merge pull request #814 from gruntwork-io/opentf-banner
Add a new banner include and show OpenTF blog post banner
2 parents b269aaf + 7248c7e commit e086b66

File tree

2 files changed

+39
-0
lines changed

2 files changed

+39
-0
lines changed

_includes/banner.html

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
<style>
2+
.banner {
3+
padding: 1em;
4+
text-align: center;
5+
color: white;
6+
font-size: smaller;
7+
}
8+
.banner .btn {
9+
font-size: 1em;
10+
margin-left: 1em;
11+
min-width: 0;
12+
}
13+
</style>
14+
<div class="banner gradient-steel gradient-diagonal">
15+
{{ include.text }} {% if include.link_text and include.link_url %}
16+
<a
17+
href="{{ include.link_url }}"
18+
target="{{ include.target }}"
19+
class="{% if include.has_button %}btn get-a-demo{% endif %}"
20+
role="button"
21+
>
22+
{{ include.link_text }}
23+
</a>
24+
{% endif %}
25+
</div>

_layouts/default.html

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,20 @@
44
{% include head.html %}
55
</head>
66
<body{% if page.slug %} class="{{ page.slug }}{% if page.slug != 'index-page' and page.slug !='how-it-works' %} sub-page{% endif %}" {% endif %}>
7+
<!--{% include banner.html
8+
text="✨&nbsp;&nbsp;Looking to establish your own world-class DevOps foundations?"
9+
link_url="https://blog.gruntwork.io/"
10+
link_text="Learn how"
11+
target="_blank"
12+
has_button=true
13+
%}-->
14+
{% include banner.html
15+
text="✨&nbsp;&nbsp;We’re committed to an open source Terraform future. "
16+
link_url="https://blog.gruntwork.io/the-future-of-terraform-must-be-open-ab0b9ba65bca"
17+
link_text="Learn more"
18+
target="_blank"
19+
has_button=false
20+
%}
721
{% include navbar.html %}
822
{{ content }}
923
{% include footer.html %}

0 commit comments

Comments
 (0)