summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJules Laplace <jules@okfoc.us>2016-03-28 16:32:21 -0400
committerJules Laplace <jules@okfoc.us>2016-03-28 16:32:21 -0400
commitdb68967feb8805852b90133062015ea4ef920719 (patch)
treeed4ef1ce5f95e4a67c2fef00cd952b3bdef0d873
parent53a4752825910cbfd5db7de8a71c2d9a2d4da90f (diff)
fix links field
-rw-r--r--db.json11
-rw-r--r--index.js2
-rw-r--r--public/assets/js/app.js11
-rw-r--r--templates/index.liquid6
4 files changed, 18 insertions, 12 deletions
diff --git a/db.json b/db.json
index cb0f96a..4efbeca 100644
--- a/db.json
+++ b/db.json
@@ -5,14 +5,21 @@
"year": 2016,
"title": "Annapurna Pictures",
"link": "http://annapurna.pictures/",
- "NatureOfWork": "DesignProgramming",
+ "NatureOfWork": "Design\r\nProgramming",
"brief": "Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.\r\n",
"image": {
"uri": "https://ltho.s3.amazonaws.com/ebd3062e-1cf4-4a2d-a7f3-240f66e32258.png",
"caption": ""
},
"press": [
- "http://asdf.us/"
+ {
+ "text": "New York Times",
+ "uri": "http://nytimes.com/"
+ },
+ {
+ "text": "WSJ",
+ "uri": "http://wsj.com/"
+ }
],
"__index": "0",
"dateCreated": "Sat, 26 Mar 2016 20:34:21 GMT",
diff --git a/index.js b/index.js
index 8de3947..5927a34 100644
--- a/index.js
+++ b/index.js
@@ -23,7 +23,7 @@ var app = okcms.createApp({
title: {type: 'string'},
client: {type: 'string'},
link: {type: 'string'},
- NatureOfWork: {type: 'tag-list'},
+ NatureOfWork: {type: 'text'},
brief: {type: 'text'},
image: {type: 'image'},
containImage: {type: 'flag'},
diff --git a/public/assets/js/app.js b/public/assets/js/app.js
index 974d51e..278c7e3 100644
--- a/public/assets/js/app.js
+++ b/public/assets/js/app.js
@@ -16,10 +16,9 @@ $('.top').flickity({
pageDots: false,
wrapAround: true,
arrowShape: {
- x0: 10,
- x1: 35, y1: 25,
- x2: 40, y2: 25,
- x3: 15
-}
-
+ x0: 10,
+ x1: 35, y1: 25,
+ x2: 40, y2: 25,
+ x3: 15
+ }
}); \ No newline at end of file
diff --git a/templates/index.liquid b/templates/index.liquid
index d48e2ea..f8f4144 100644
--- a/templates/index.liquid
+++ b/templates/index.liquid
@@ -59,7 +59,7 @@
<span>{{ project.title }}</span>
<span>
<ul>
- {% assign categories = project.NatureOfWork | split "\n" %}
+ {% assign categories = project.NatureOfWork | newline_to_br | split: '<br />' %}
{% for category in categories %}
<li>
{{ category }}
@@ -72,9 +72,9 @@
</span>
<span>
<ul>
- {% for link in project.links %}
+ {% for link in project.press %}
<li>
- <a href="{{ link.url }}">{{ link.name }}</a>
+ <a href="{{ link.uri }}">{{ link.text }}</a>
</li>
{% endfor %}
</ul>