add optinmonster script, fix makefile, remove es6

This commit is contained in:
Jeff Escalante 2018-03-15 13:05:42 -04:00
parent b0937ff94d
commit 2f420c38b2
5 changed files with 15 additions and 9 deletions

View File

@ -1,3 +1,3 @@
source "https://rubygems.org"
gem "middleman-hashicorp", "0.3.32"
gem "middleman-hashicorp", "0.3.34"

View File

@ -78,7 +78,7 @@ GEM
rack (>= 1.4.5, < 2.0)
thor (>= 0.15.2, < 2.0)
tilt (~> 1.4.1, < 2.0)
middleman-hashicorp (0.3.32)
middleman-hashicorp (0.3.34)
bootstrap-sass (~> 3.3)
builder (~> 3.2)
middleman (~> 3.4)
@ -153,7 +153,7 @@ PLATFORMS
ruby
DEPENDENCIES
middleman-hashicorp (= 0.3.32)
middleman-hashicorp (= 0.3.34)
BUNDLED WITH
1.16.1

View File

@ -1,4 +1,4 @@
VERSION?="0.3.32"
VERSION?="0.3.34"
build:
@echo "==> Starting build in Docker..."
@ -7,8 +7,9 @@ build:
--rm \
--tty \
--volume "$(shell pwd):/website" \
-e "ENV=production" \
hashicorp/middleman-hashicorp:${VERSION} \
ENV=production bundle exec middleman build --verbose --clean
bundle exec middleman build --verbose --clean
website:
@echo "==> Starting website in Docker..."

View File

@ -1,9 +1,9 @@
document.addEventListener('DOMContentLoaded', () => {
track('.downloads .download a', el => {
document.addEventListener('DOMContentLoaded', function() {
track('.downloads .download a', function(el) {
return {
event: 'Download',
category: 'Button',
label: `Packer | v${el.href.match(/\/(\d+\.\d+\.\d+)\//)[1]}`
label: 'Packer | v' + el.href.match(/\/(\d+\.\d+\.\d+)\//)[1]
}
})
})

View File

@ -130,7 +130,12 @@
analytics.page();
}}();
</script>
<script>
// optinmonster
var om597a24292a958,om597a24292a958_poll=function(){var b=0;return function(d,c){clearInterval(b);b=setInterval(d,c)}}();
!function(b,d,c){if(b.getElementById(c))om597a24292a958_poll(function(){if(window.om_loaded&&!om597a24292a958)return om597a24292a958=new OptinMonsterApp,om597a24292a958.init({s:"35109.597a24292a958",staging:0,dev:0,beta:0})},25);else{var e=!1,a=b.createElement(d);a.id=c;a.src="//a.optnmstr.com/app/js/api.min.js";a.async=!0;a.onload=a.onreadystatechange=function(){if(!(e||this.readyState&&"loaded"!==this.readyState&&"complete"!==this.readyState))try{e=om_loaded=!0,om597a24292a958=new OptinMonsterApp,
om597a24292a958.init({s:"35109.597a24292a958",staging:0,dev:0,beta:0}),a.onload=a.onreadystatechange=null}catch(f){}};(document.getElementsByTagName("head")[0]||document.documentElement).appendChild(a)}}(document,"script","omapi-script");
</script>
<script type="application/ld+json">
{
"@context": "http://schema.org",