From 4d4cfcbf72fd61e15fba23abc85ba2e8e492f93e Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Tue, 29 Aug 2017 01:19:02 +0200 Subject: gap --- index.js | 23 ++++++------- public/assets/css.css | 8 +++-- public/assets/gap.png | Bin 0 -> 23831 bytes templates/entry.liquid | 90 +++++++++++++++++++++++++++++++++++++++++++++++++ templates/index.liquid | 84 ++++----------------------------------------- 5 files changed, 113 insertions(+), 92 deletions(-) create mode 100644 public/assets/gap.png create mode 100644 templates/entry.liquid diff --git a/index.js b/index.js index d707be8..ea922cb 100644 --- a/index.js +++ b/index.js @@ -3,18 +3,9 @@ var path = require('path') var isProduction = process.env.OK_PRODUCTION === 'true' -var viewConfig = { - template: 'index', - data: [ - {type: 'entry', query: '*'}, - {type: 'page', query: '*'}, - {type: 'testimonial', query: '*'}, - ] -} - var app = okcms.createApp({ - project: 'Folkestone Gossip', + project: 'How To Make A Folkestone', debug: !isProduction, production: isProduction, @@ -62,8 +53,16 @@ var app = okcms.createApp({ ], views: { - '/': viewConfig, - '/entry/:id': viewConfig, + '/': { + template: 'index', + }, + '/entry/:id': { + template: 'entry', + data: [ + {type: 'entry', query: ':id'}, + {type: 'testimonial', query: '*'}, + ] + }, '/acknowledgements': { template: 'acknowledgements', data: [{type:'page',query:'*'}] }, }, diff --git a/public/assets/css.css b/public/assets/css.css index d951efd..013a0ee 100644 --- a/public/assets/css.css +++ b/public/assets/css.css @@ -10,7 +10,8 @@ html,body { font-family: sans-serif; font-weight: 300; text-align: center; - background: #fff; + background-color: white; + color: black; } body.about, body.entry, @@ -132,17 +133,18 @@ h2 { .media iframe { margin: 10px auto; max-height: 30vh; - max-width: 100%; + max-width: 90%; } .media img { display: block; margin: 10px auto; - max-width: 100%; + max-width: 90%; } .content { padding: 20px; line-height: 1.5; background: white; + color: black; max-width: 600px; margin: 0 auto; } diff --git a/public/assets/gap.png b/public/assets/gap.png new file mode 100644 index 0000000..a4263e0 Binary files /dev/null and b/public/assets/gap.png differ diff --git a/templates/entry.liquid b/templates/entry.liquid new file mode 100644 index 0000000..6b1e688 --- /dev/null +++ b/templates/entry.liquid @@ -0,0 +1,90 @@ + + + + + + + + + + + + + + + + + + + + How to make a Folkestone. + + + + + + + +
+ {% unless entry.disabled %} +
+
+ {{ entry.title }} +
+
+ {% for media in entry.media %} + {% if media.type == 'youtube' %} + + {% else %} + + {% endif %} + {% endfor %} +
+
+ {{ entry.body | newline_to_br }} +
+
+ {% endunless %} +
+ + + +
+
+
×
+
+

+
+
+
+ + + + + + diff --git a/templates/index.liquid b/templates/index.liquid index 1968816..ad198a0 100644 --- a/templates/index.liquid +++ b/templates/index.liquid @@ -18,86 +18,16 @@ How to make a Folkestone. - - - - - - -
- {% for entry in entries %} - {% unless entry.disabled %} -
-
- {{ entry.title }} -
-
- {% for media in entry.media %} - {% if media.type == 'youtube' %} - - {% else %} - - {% endif %} - {% endfor %} -
-
- {{ entry.body | newline_to_br }} -
-
- {% endunless %} - {% endfor %} -
- -{% for page in pages %} - {% unless page.disabled %} -
-
-

{{ page.title }}

- {{ page.body | newline_to_br }} -
-
- {% endunless %} + +
+{% for entry in entries %} + {{ entry.title }} {% endfor %} - - - -
-
-
×
-
-

-
-
- - - + -- cgit v1.2.3-70-g09d2