Skip to content

Commit

Permalink
fix getgrav#8
Browse files Browse the repository at this point in the history
  • Loading branch information
olivierdalang committed Feb 23, 2017
1 parent e2d043e commit 24b975a
Show file tree
Hide file tree
Showing 8 changed files with 23 additions and 8 deletions.
4 changes: 3 additions & 1 deletion templates/modular/features.html.twig
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
<section id="features" class="section-features text-center">
{% macro pageLinkName(text) %}{{ text|lower|replace({' ':'_'}) }}{% endmacro %}

<section id="{{ _self.pageLinkName(page.menu) }}" haha class="section-features text-center">
<div class="container">
<div class="row">
{{ page.content }}
Expand Down
4 changes: 3 additions & 1 deletion templates/modular/form.html.twig
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
<section class="section-signup bg-faded">
{% macro pageLinkName(text) %}{{ text|lower|replace({' ':'_'}) }}{% endmacro %}

<section id="{{ _self.pageLinkName(page.menu) }}" class="section-signup bg-faded">
<div class="container">
{{ page.content }}

Expand Down
4 changes: 3 additions & 1 deletion templates/modular/intro.html.twig
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
<section class="section-intro bg-faded text-center hidden-overflow">
{% macro pageLinkName(text) %}{{ text|lower|replace({' ':'_'}) }}{% endmacro %}

<section id="{{ _self.pageLinkName(page.menu) }}" class="section-intro bg-faded text-center hidden-overflow">
<div class="container">
{% if page.header.title %}
<h3 class="wp wp-1">{{ page.header.title }}</h3>
Expand Down
4 changes: 3 additions & 1 deletion templates/modular/news.html.twig
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
<section id="news" class="section-news">
{% macro pageLinkName(text) %}{{ text|lower|replace({' ':'_'}) }}{% endmacro %}

<section id="{{ _self.pageLinkName(page.menu) }}" class="section-news">
<div class="container">
<h3 class="sr-only">{{ page.header.title }}</h3>
<div class="bg-inverse">
Expand Down
4 changes: 3 additions & 1 deletion templates/modular/pricing.html.twig
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
<section id="subscriptions" class="section-pricing bg-faded text-center">
{% macro pageLinkName(text) %}{{ text|lower|replace({' ':'_'}) }}{% endmacro %}

<section id="{{ _self.pageLinkName(page.menu) }}" class="section-pricing bg-faded text-center">
<div class="container">
{{ page.content }}
{% if page.header.pricing %}
Expand Down
4 changes: 3 additions & 1 deletion templates/modular/testimonials.html.twig
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
<section class="section-testimonials text-center bg-inverse">
{% macro pageLinkName(text) %}{{ text|lower|replace({' ':'_'}) }}{% endmacro %}

<section id="{{ _self.pageLinkName(page.menu) }}" class="section-testimonials text-center bg-inverse">
<div class="container">
{{ page.content }}
<div id="carousel-testimonials" class="carousel slide" data-ride="carousel" data-interval="0">
Expand Down
4 changes: 3 additions & 1 deletion templates/modular/text.html.twig
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
<section class="section-text">
{% macro pageLinkName(text) %}{{ text|lower|replace({' ':'_'}) }}{% endmacro %}

<section id="{{ _self.pageLinkName(page.menu) }}" class="section-text">
<div class="container">
{{ page.content }}
{% for row in page.header.text|batch(2) %}
Expand Down
3 changes: 2 additions & 1 deletion templates/modular/video.html.twig
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{% macro pageLinkName(text) %}{{ text|lower|replace({' ':'_'}) }}{% endmacro %}

{% for video in page.header.videos %}
<section class="section-video bg-inverse text-center wp wp-4">
<section id="{{ _self.pageLinkName(page.menu) }}" class="section-video bg-inverse text-center wp wp-4">
<video id="video{{ loop.index }}" class="video-js vjs-default-skin vjs-big-play-centered" controls poster="{{ page.media[video.poster].url }}" data-setup='{}'>
{% for source in video.sources %}
<source src="{{ source.url }}" type='{{ source.type }}'>
Expand Down

0 comments on commit 24b975a

Please sign in to comment.