diff --git a/components/article-preview.vue b/components/article-preview.vue
index 12f6811..1e4df1f 100644
--- a/components/article-preview.vue
+++ b/components/article-preview.vue
@@ -5,8 +5,8 @@
:srcset="`${post.fields.heroImage.fields.file.url}?w=350&h=196&fit=fill 350w, ${post.fields.heroImage.fields.file.url}?w=1000&h=562&fit=fill 1000w, ${post.fields.heroImage.fields.file.url}?w=2000&h=1125&fit=fill 2000w`"
sizes="(min-width: 1024px) 400px, 100vw"
>
- {{ ( new Date(post.fields.publishDate)).toDateString() }}
-
{{ post.fields.title }}
+ {{ ( new Date(post.fields.publishDate)).toDateString() }}
+ {{ post.fields.title }}
{{ post.fields.description }}
@@ -24,3 +24,44 @@ export default {
components: {}
}
+
+
diff --git a/components/greeting.vue b/components/greeting.vue
new file mode 100644
index 0000000..5239fe1
--- /dev/null
+++ b/components/greeting.vue
@@ -0,0 +1,69 @@
+
+
+
+
+
+
+ There you go! You just set up a Contentful account and a custom app. Now go ahead and try the Web App or head over to the Documentation to learn more about building with Contentful. If you want to remove this message, delete line 3
in layouts/default.vue
.
+
+
Try the Web App
+
+
+
+
+
+
+
+
diff --git a/components/navigation.vue b/components/navigation.vue
index bc5d229..241bfd7 100644
--- a/components/navigation.vue
+++ b/components/navigation.vue
@@ -1,13 +1,10 @@
-
-
-
-
+
+
@@ -16,3 +13,37 @@ export default {
components: {}
}
+
+
diff --git a/docs/images/home.png b/docs/images/home.png
index 96595b4..2f16c81 100644
Binary files a/docs/images/home.png and b/docs/images/home.png differ
diff --git a/layouts/default.vue b/layouts/default.vue
index 75901f0..9121fcd 100644
--- a/layouts/default.vue
+++ b/layouts/default.vue
@@ -1,11 +1,111 @@
+
+
+
diff --git a/nuxt.config.js b/nuxt.config.js
index 36060c2..5f19dfe 100644
--- a/nuxt.config.js
+++ b/nuxt.config.js
@@ -7,15 +7,15 @@ const config = {
** Headers of the page
*/
head: {
- title: 'starter',
+ title: 'Custom app with Contentful',
meta: [
{ charset: 'utf-8' },
{ name: 'viewport', content: 'width=device-width, initial-scale=1' },
- { hid: 'description', name: 'description', content: 'Create a Contentful blog in 5 minutes' }
+ { hid: 'description', name: 'description', content: 'Custom app in under 5 minutes' }
],
link: [
- { rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' },
- { rel: 'stylesheet', href: 'https://dhbhdrzi4tiry.cloudfront.net/cdn/sites/foundation.min.css' }
+ { rel: 'icon', type: 'image/x-icon', href: '/favicon.png' },
+ { rel: 'stylesheet', href: 'https://cdnjs.cloudflare.com/ajax/libs/minireset.css/0.0.2/minireset.min.css' }
]
},
/*
@@ -38,7 +38,13 @@ const config = {
exclude: /(node_modules)/
})
}
- }
+ },
+
+ postcss: [
+ require('autoprefixer')({
+ browsers: ['> 5%']
+ })
+ ]
},
/*
diff --git a/package.json b/package.json
index a75c14b..4941ae6 100644
--- a/package.json
+++ b/package.json
@@ -23,6 +23,7 @@
"devDependencies": {
"babel-eslint": "^7.1.1",
"contentful-import": "^4.4.3",
+ "cz-conventional-changelog": "^2.0.0",
"eslint": "^3.15.0",
"eslint-config-standard": "^6.2.1",
"eslint-loader": "^1.6.1",
@@ -32,5 +33,10 @@
"gh-pages": "^1.0.0",
"git-clone": "^0.1.0",
"now": "^5.3.0"
+ },
+ "config": {
+ "commitizen": {
+ "path": "./node_modules/cz-conventional-changelog"
+ }
}
}
diff --git a/pages/blog/_slug.vue b/pages/blog/_slug.vue
index 042a2aa..fec9592 100644
--- a/pages/blog/_slug.vue
+++ b/pages/blog/_slug.vue
@@ -1,24 +1,35 @@
-
-
-
-
{{ ( new Date(post.fields.publishDate)).toDateString() }}
-
{{ post.fields.title }}
+
+
-
-
-
-
{{post.fields.body}}
+
-
+
+
+
+
+
+ {{ ( new Date(post.fields.publishDate)).toDateString() }}
+
{{ post.fields.title }}
+
+
+ {{post.fields.body}}
+
+
+
+
@@ -47,7 +58,26 @@ export default {
diff --git a/pages/blog/index.vue b/pages/blog/index.vue
index 88fac17..de50d91 100644
--- a/pages/blog/index.vue
+++ b/pages/blog/index.vue
@@ -1,35 +1,36 @@
-
-
-
-
Blog
+
+
+
-
-
-
-
-
{{ ( new Date(post.fields.publishDate)).toDateString() }}
-
{{ post.fields.title }}
-
{{ post.fields.description }}
-
-
Read more
-
+
+
+
All articles ({{ posts.length }})
-
+
+
+
diff --git a/pages/index.vue b/pages/index.vue
index 0c4940c..6529a12 100644
--- a/pages/index.vue
+++ b/pages/index.vue
@@ -1,52 +1,50 @@
-
-
-
-
{{ person.fields.name }}
- {{ person.fields.title }}
+
+
-
-
-
-
-
-
-
"{{ person.fields.slogan }}"
-
{{ person.fields.shortBio }}
-
-
+
+
+
+
{{ person.fields.title }}
+
{{ person.fields.shortBio }}
+
+
-
-
-
+
-
-
Recent Articles
-
-
-
@@ -80,6 +78,72 @@ export default {
diff --git a/pages/tags/_tag.vue b/pages/tags/_tag.vue
index 5b79489..a087513 100644
--- a/pages/tags/_tag.vue
+++ b/pages/tags/_tag.vue
@@ -1,35 +1,35 @@
-
-
-
-
#{{ tag }}
+
+
-
-
-
-
-
-
{{ ( new Date(post.fields.publishDate)).toDateString() }}
-
{{ post.fields.title }}
-
{{ post.fields.description }}
+
-
Read more
-
+
+
+
All articles tagged #{{ tag }} ({{ posts.length }})
-
+
+
diff --git a/static/avenir-400.woff b/static/avenir-400.woff
new file mode 100644
index 0000000..ee6bd30
Binary files /dev/null and b/static/avenir-400.woff differ
diff --git a/static/avenir-400.woff2 b/static/avenir-400.woff2
new file mode 100644
index 0000000..3273d7d
Binary files /dev/null and b/static/avenir-400.woff2 differ
diff --git a/static/favicon.ico b/static/favicon.ico
deleted file mode 100644
index 382fecb..0000000
Binary files a/static/favicon.ico and /dev/null differ
diff --git a/static/favicon.png b/static/favicon.png
new file mode 100644
index 0000000..836f3de
Binary files /dev/null and b/static/favicon.png differ