per-environment copy, analytics
This commit is contained in:
parent
ebcfabfa83
commit
8d20bb37e6
8 changed files with 63 additions and 27 deletions
3
_data/deployment.yml
Normal file
3
_data/deployment.yml
Normal file
|
|
@ -0,0 +1,3 @@
|
||||||
|
# Deployment-specific variables to specify what features to surface.
|
||||||
|
has_internet: true
|
||||||
|
show_chat: false
|
||||||
3
_data/deployments/butterbox/deployment.yml
Normal file
3
_data/deployments/butterbox/deployment.yml
Normal file
|
|
@ -0,0 +1,3 @@
|
||||||
|
# Deployment-specific variables to specify what features to surface.
|
||||||
|
has_internet: false
|
||||||
|
show_chat: true
|
||||||
3
_data/deployments/web/deployment.yml
Normal file
3
_data/deployments/web/deployment.yml
Normal file
|
|
@ -0,0 +1,3 @@
|
||||||
|
# Deployment-specific variables to specify what features to surface.
|
||||||
|
has_internet: true
|
||||||
|
show_chat: false
|
||||||
|
|
@ -1,10 +1,17 @@
|
||||||
site_name: 'Butter'
|
site_name: 'Butter'
|
||||||
page_logo: ['/assets/images/butter-logo-feature-large.svg', 'Butter App Feature Logo']
|
page_logo: ['/assets/images/butter-logo-feature-large.svg', 'Butter App Feature Logo']
|
||||||
title: 'Life without internet made smoother. <br /> Get access to tools that help.'
|
title: 'Life without internet made smoother. <br /> Get access to tools that help.'
|
||||||
text: |
|
text:
|
||||||
This Butter Box offers an Android app store and chat rooms. You can use the app store to discover and download free, ad-free apps or to spread the love and share apps offline. The chat rooms hang on to messages while you're gone and deliver them whenever a device reconnects to the Butter Box.
|
show_chat: |
|
||||||
|
This Butter Box offers an Android app store and chat rooms. <br />
|
||||||
|
Download the Butter app to discover and download free, ad-free <br />
|
||||||
|
apps or to spread the love and share apps offline. Or, create a <br />
|
||||||
|
chat room which hangs on to messages while you're gone and <br/>
|
||||||
|
delivers them whenever your device reconnects to the Butter Box.
|
||||||
|
dont_show_chat: |
|
||||||
|
Butter features a collection of apps to make life without <br /> the internet a little smoother. Use it to discover and download <br /> free, ad-free apps or to spread the love and share offline.
|
||||||
fdroid_apps_caption: Just a few of the apps available via Butter.
|
fdroid_apps_caption: Just a few of the apps available via Butter.
|
||||||
fdroid_button_text: 'Download Android App Store'
|
fdroid_button_text: 'Download Android App'
|
||||||
chat_button_text: 'Start a chat room instantly'
|
chat_button_text: 'Start a chat room instantly'
|
||||||
image: ['/assets/images/butter-collection-features-offline-essentials.svg', 'Butter App features collection']
|
image: ['/assets/images/butter-collection-features-offline-essentials.svg', 'Butter App features collection']
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,14 @@
|
||||||
site_name: 'Mantequilla'
|
site_name: 'Mantequilla'
|
||||||
page_logo: ['/assets/images/butter-logo-feature-large.svg', 'Butter App Feature Logo']
|
page_logo: ['/assets/images/butter-logo-feature-large.svg', 'Butter App Feature Logo']
|
||||||
title: 'Para hacer tu vida sin Internet más fácil. <br /> Obtén herramientas que ayudan.'
|
title: 'Para hacer tu vida sin Internet más fácil. Obtén herramientas que ayudan.'
|
||||||
text: |
|
text:
|
||||||
|
show_chat: |
|
||||||
|
Este Caja de Mantequilla presenta una colección de aplicaciones de Android y salas de chat. Descarga la aplicación Mantequilla para descubrir y descargar aplicaciones gratuitas y sin publicidad o compartir cuando no tienes conexión. O, crea una sala de chat que conserva mensajes cuando no estás aquí y los entrega cuando se vuelve a conectar a la Caja de Mantequilla.
|
||||||
|
dont_show_chat: |
|
||||||
Mantequilla presenta una colección de aplicaciones para ayudarte cuando no tienes acceso a Internet. Úsala para descubrir y descargar aplicaciones gratuitas y sin publicidad o compartir cuando no tienes conexión.
|
Mantequilla presenta una colección de aplicaciones para ayudarte cuando no tienes acceso a Internet. Úsala para descubrir y descargar aplicaciones gratuitas y sin publicidad o compartir cuando no tienes conexión.
|
||||||
button_text: 'DESCARGA LA APLICACIÓN ANDROID'
|
fdroid_apps_caption: Unas aplicaciónes disponible de Mantequilla
|
||||||
|
fdroid_button_text: 'DESCARGA LA APLICACIÓN ANDROID'
|
||||||
|
chat_button_text: Crea una sala de chat
|
||||||
image: ['/assets/images/butter-collection-features-offline-essentials.svg', 'Butter App features collection']
|
image: ['/assets/images/butter-collection-features-offline-essentials.svg', 'Butter App features collection']
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,10 +1,17 @@
|
||||||
site_name: 'Butter'
|
site_name: 'Butter'
|
||||||
page_logo: ['/assets/images/butter-logo-feature-large.svg', 'Butter App Feature Logo']
|
page_logo: ['/assets/images/butter-logo-feature-large.svg', 'Butter App Feature Logo']
|
||||||
title: 'Life without internet made smoother. <br /> Get access to tools that help.'
|
title: 'Life without internet made smoother. <br /> Get access to tools that help.'
|
||||||
text: |
|
text:
|
||||||
This Butter Box offers an Android app store and chat rooms. You can use the app store to discover and download free, ad-free apps or to spread the love and share apps offline. The chat rooms hang on to messages while you're gone and deliver them whenever a device reconnects to the Butter Box.
|
show_chat: |
|
||||||
|
This Butter Box offers an Android app store and chat rooms. <br />
|
||||||
|
Download the Butter app to discover and download free, ad-free <br />
|
||||||
|
apps or to spread the love and share apps offline. Or, create a <br />
|
||||||
|
chat room which hangs on to messages while you're gone and <br/>
|
||||||
|
delivers them whenever your device reconnects to the Butter Box.
|
||||||
|
dont_show_chat: |
|
||||||
|
Butter features a collection of apps to make life without <br /> the internet a little smoother. Use it to discover and download <br /> free, ad-free apps or to spread the love and share offline.
|
||||||
fdroid_apps_caption: Just a few of the apps available via Butter.
|
fdroid_apps_caption: Just a few of the apps available via Butter.
|
||||||
fdroid_button_text: 'Download Android App Store'
|
fdroid_button_text: 'Download Android App'
|
||||||
chat_button_text: 'Start a chat room instantly'
|
chat_button_text: 'Start a chat room instantly'
|
||||||
image: ['/assets/images/butter-collection-features-offline-essentials.svg', 'Butter App features collection']
|
image: ['/assets/images/butter-collection-features-offline-essentials.svg', 'Butter App features collection']
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -21,23 +21,23 @@
|
||||||
<script src="{{ site.baseurl }}/assets/js/micromodal.min.js"></script>
|
<script src="{{ site.baseurl }}/assets/js/micromodal.min.js"></script>
|
||||||
<script src="{{ site.baseurl }}/assets/js/main.js"></script>
|
<script src="{{ site.baseurl }}/assets/js/main.js"></script>
|
||||||
|
|
||||||
|
{% if site.data.deployment.has_internet %}
|
||||||
<!-- Matomo -->
|
<!-- Matomo -->
|
||||||
<script>
|
<script>
|
||||||
var _paq = window._paq = window._paq || [];
|
var _paq = window._paq = window._paq || [];
|
||||||
/* tracker methods like "setCustomDimension" should be called before "trackPageView" */
|
/* tracker methods like "setCustomDimension" should be called before "trackPageView" */
|
||||||
_paq.push(['trackPageView']);
|
_paq.push(['trackPageView']);
|
||||||
_paq.push(['enableLinkTracking']);
|
_paq.push(['enableLinkTracking']);
|
||||||
(function() {
|
(function() {
|
||||||
var u="https://metrics.cleaninsights.org/";
|
var u="https://metrics.cleaninsights.org/";
|
||||||
_paq.push(['setTrackerUrl', u+'matomo.php']);
|
_paq.push(['setTrackerUrl', u+'matomo.php']);
|
||||||
_paq.push(['setSiteId', '20']);
|
_paq.push(['setSiteId', '20']);
|
||||||
var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
|
var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
|
||||||
g.async=true; g.src=u+'matomo.js'; s.parentNode.insertBefore(g,s);
|
g.async=true; g.src=u+'matomo.js'; s.parentNode.insertBefore(g,s);
|
||||||
})();
|
})();
|
||||||
</script>
|
</script>
|
||||||
<!-- End Matomo Code -->
|
<!-- End Matomo Code -->
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
|
||||||
10
index.html
10
index.html
|
|
@ -9,13 +9,21 @@ layout: default
|
||||||
<div class="content-area-wrapper text-center">
|
<div class="content-area-wrapper text-center">
|
||||||
<img src="{{site.baseurl}}{{ page_data.page_logo[0] }}" alt="{{ page_data.page_logo[1] }}" />
|
<img src="{{site.baseurl}}{{ page_data.page_logo[0] }}" alt="{{ page_data.page_logo[1] }}" />
|
||||||
<h1 class="content-title mb-2 mt-2">{{ page_data.title }}</h1>
|
<h1 class="content-title mb-2 mt-2">{{ page_data.title }}</h1>
|
||||||
<p class="content-text text-black ls-40 mb-2">{{ page_data.text }}</p>
|
<p class="content-text text-black ls-40 mb-2">
|
||||||
|
{% if site.data.deployment.show_chat %}
|
||||||
|
{{ page_data.text.show_chat }}
|
||||||
|
{% else %}
|
||||||
|
{{ page_data.text.dont_show_chat }}
|
||||||
|
{% endif %}
|
||||||
|
</p>
|
||||||
<div class="content-img">
|
<div class="content-img">
|
||||||
<img src="{{site.baseurl}}{{ page_data.image[0] }}" alt="{{ page_data.image[1] }}" />
|
<img src="{{site.baseurl}}{{ page_data.image[0] }}" alt="{{ page_data.image[1] }}" />
|
||||||
<p class="caption ls-40 mb-2">{{ page_data.fdroid_apps_caption }}</p>
|
<p class="caption ls-40 mb-2">{{ page_data.fdroid_apps_caption }}</p>
|
||||||
</div>
|
</div>
|
||||||
<a class="btn-main btn-modal" href="#" data-micromodal-trigger="product-modal">{{ page_data.fdroid_button_text | upcase }}</a>
|
<a class="btn-main btn-modal" href="#" data-micromodal-trigger="product-modal">{{ page_data.fdroid_button_text | upcase }}</a>
|
||||||
|
{% if site.data.deployment.show_chat %}
|
||||||
<a class="btn-main btn-modal" href="/chat">{{ page_data.chat_button_text | upcase }}</a>
|
<a class="btn-main btn-modal" href="/chat">{{ page_data.chat_button_text | upcase }}</a>
|
||||||
|
{% endif %}
|
||||||
<p class="content-text text-black ls-40 mb-2">{{ page_data.chat_text }}</p>
|
<p class="content-text text-black ls-40 mb-2">{{ page_data.chat_text }}</p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue