summaryrefslogtreecommitdiff
path: root/examples/templates
diff options
context:
space:
mode:
Diffstat (limited to 'examples/templates')
-rw-r--r--examples/templates/bread.liquid14
-rw-r--r--examples/templates/index.liquid28
-rw-r--r--examples/templates/page.liquid19
-rw-r--r--examples/templates/project.liquid2
4 files changed, 50 insertions, 13 deletions
diff --git a/examples/templates/bread.liquid b/examples/templates/bread.liquid
new file mode 100644
index 0000000..da36cce
--- /dev/null
+++ b/examples/templates/bread.liquid
@@ -0,0 +1,14 @@
+<!DOCTYPE html>
+<html>
+ <head>
+ <link rel="stylesheet" href="../css/main.css">
+ </head>
+ <body>
+ <div class="container">
+ <h1>{{bread.type | capitalize}}</h1>
+ <p>
+ {{bread.description}}
+ </p>
+ </div>
+ </body>
+</html>
diff --git a/examples/templates/index.liquid b/examples/templates/index.liquid
index 21d8764..7c12a86 100644
--- a/examples/templates/index.liquid
+++ b/examples/templates/index.liquid
@@ -4,11 +4,27 @@
<link rel="stylesheet" href="css/main.css">
</head>
<body>
- {{meta.project}}
- <ul>
- {% for project in projects %}
- <li>{{project.id}}</li>
- {% endfor %}
- </ul>
+ <div class="container">
+ <header>
+ <h1>Cheryl's Deli and Bakery</h1>
+ </header>
+ <section class="main">
+ <nav>
+ <ul>
+ {% for page in pages %}
+ <li><a href="{{page.id}}">{{page.id | capitalize}}</a></li>
+ {% endfor %}
+ </ul>
+ <nav>
+ <div class="breads">
+ <h2>Great breads:</h2>
+ <ul>
+ {% for bread in breads %}
+ <li><a href="{{bread.id}}">{{bread.id | capitalize}}</a></li>
+ {% endfor %}
+ </ul>
+ </div>
+ </section>
+ </div>
</body>
</html>
diff --git a/examples/templates/page.liquid b/examples/templates/page.liquid
index f7d899f..e90f7ce 100644
--- a/examples/templates/page.liquid
+++ b/examples/templates/page.liquid
@@ -1,5 +1,14 @@
-woop
-<h1>{{page.title}}</h1>
-<p>
- {{page.body}}
-</p>
+<!DOCTYPE html>
+<html>
+ <head>
+ <link rel="stylesheet" href="../css/main.css">
+ </head>
+ <body>
+ <div class="container">
+ <h1>{{page.title | capitalize}}</h1>
+ <p>
+ {{page.body}}
+ </p>
+ </div>
+ </body>
+</html>
diff --git a/examples/templates/project.liquid b/examples/templates/project.liquid
deleted file mode 100644
index dac1d8d..0000000
--- a/examples/templates/project.liquid
+++ /dev/null
@@ -1,2 +0,0 @@
-babaganuj
-{{project.id}}