summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2017-03-27 21:23:37 +0200
committerJonas Smedegaard <dr@jones.dk>2017-03-27 21:23:37 +0200
commite94300c91bb91e3932da990a17213749d87a007f (patch)
tree59731f043467d231e94213479f154c1d02577984
parentba6451dfa10f8e9c14e80f16d7fee74cc4d8f02a (diff)
Fix use template for column.
-rw-r--r--index.mdwn21
-rw-r--r--templates/column.mdwn3
2 files changed, 13 insertions, 11 deletions
diff --git a/index.mdwn b/index.mdwn
index 0374071..84a2e50 100644
--- a/index.mdwn
+++ b/index.mdwn
@@ -1,7 +1,7 @@
[[!meta script="/usr/share/javascript/jquery/jquery.min.js"]]
[[!meta script="/usr/share/javascript/bootstrap/js/bootstrap.min.js"]]
-[[!template id=container content=<<CONTAINER
+[[!template id=container content=<<CONTAINER_OUTER
[[!template id=jumbotron content=<<JUMBOTRON
<img src="logo2_out.png" width="400" height="auto"/>
## We value your Privacy
@@ -20,9 +20,8 @@ business and law enforcement around the world
in creating a safer, happier place to live, work and play.
JUMBOTRON]]
-<div class="container">
-<div class="col-md-7 col-md-offset-1">
-
+[[!template id=container content=<<CONTAINER_INNER
+[[!template id=column size=7 offset=1 content=<<COLUMN
### Our tailored contents include
* ID optimization
@@ -54,19 +53,18 @@ JUMBOTRON]]
### Duration
Flexible – contact us today for an assessment of your needs.
+COLUMN]]
-</div>
-
+[[!template id=column size=4 content=<<COLUMN
<div class="col-md-4">
<div class="well">
<h2>FREE Live Webinar</h2>
<p/><a href="show/" class="btn btn-primary btn-lg" role="button"><span class="glyphicon glyphicon-film" aria-hidden="true"></span> Go to Webinar</a></p>
</div>
</div>
-</div>
-
-<div class="col-md-8">
+COLUMN]]
+[[!template id=column size=8 content=<<COLUMN
### Contact
Partner & Head of branch, Denmark: Ms Gustafsson.
@@ -95,5 +93,6 @@ Partner & Head of branch, Denmark: Ms Gustafsson.
</fieldset>
</form>
</div>
-</div>
-CONTAINER]]
+COLUMN]]
+CONTAINER_INNER]]
+CONTAINER_OUTER]]
diff --git a/templates/column.mdwn b/templates/column.mdwn
new file mode 100644
index 0000000..dfe2b8b
--- /dev/null
+++ b/templates/column.mdwn
@@ -0,0 +1,3 @@
+<div class="col-<TMPL_IF breakpoint><TMPL_VAR breakpoint><TMPL_ELSE>md</TMPL_IF>-<TMPL_VAR size><TMPL_IF offset> col-offset-<TMPL_IF breakpoint><TMPL_VAR breakpoint><TMPL_ELSE>md</TMPL_IF>-<TMPL_VAR offset></TMPL_IF>">
+<TMPL_VAR content>
+</div>