contentful / blog-in-5-minutes Goto Github PK
View Code? Open in Web Editor NEWLicense: MIT License
License: MIT License
I have a simple task.
List of publications and list of authors.
The publication may have several authors, the author may have several publications.
As soon as I create a reference field with the option many and link the publications to the authors and back, I get this error.
<ul>
<li v-for="post in posts">
<h4>Post title: {{ post.fields.title }}</h4>
<h4>Post authors:</h4>
<ul>
<li v-for="person in post.fields.person">
<h5>Person name: {{ person.fields.name }}</h5>
</li>
</ul>
</li>
</ul>
asyncData ({env}) {
return Promise.all([
client.getEntries({
'content_type': env.CTF_BLOG_POST_TYPE_ID,
order: '-sys.createdAt'
}),
client.getEntries({
'content_type': env.CTF_PERSON_TYPE_ID
})
]).then(([posts, people]) => {
return {
posts: posts.items,
people: people.items
}
}).catch(console.error)
},
How can this problem be solved?
WARNING in asset size limit: The following asset(s) exceed the recommended size limit (300 kB).
This can impact web performance.
Assets:
0.nuxt.bundle.d53300abac932dadda62.js (1.75 MB)
1.nuxt.bundle.9d2bf7f2e8a6ca79d3ec.js (1.75 MB)
ERROR in 0.nuxt.bundle.d53300abac932dadda62.js from UglifyJs
Unexpected token: operator (>) [./~/markdown-it-highlightjs/index.js:3,0][0.nuxt.bundle.d53300abac932dadda62.js:31299,17]
ERROR in 1.nuxt.bundle.9d2bf7f2e8a6ca79d3ec.js from UglifyJs
Unexpected token: operator (>) [./~/markdown-it-highlightjs/index.js:3,0][1.nuxt.bundle.9d2bf7f2e8a6ca79d3ec.js:31301,17]
Error: Webpack build exited with errors
A blog in 5 minutes that you create by cloning a github repo is not a blog in 5 minutes.
no longer using foundation, so should remove it from the readme
#11
Page titles are static, should be dynamic i.e., Blog entry title doesn't change.
Hi,
I have a space in which I have a blog post type, which has contents and linked image assets. I'm able retrieve all content except for the linked images.
I keep getting "Cannot read property 'file' of undefined" error and I can't seem to figure out what I'm doing wrong.
Thanks
I am deploying my site on Netlify however without the .contentful.json
file, Netlify can not deploy. I am deploying from my GitHub repo so .contentful.json
is ignored and for good reason.
However I'm not sure how to get the .contentful.json
file onto Netlify. Does anyone have any tips please?
now
is quite heavy as it downloads the binary, as the result trying is a little pain. Also it has problem with yarn
(vercel/vercel#602). I my self didn't install now
with yarn, but do install other global package with yarn.
Further more, why install now
locally?
I wonder if maybe you have run into anything like this? I have followed your tutorial and example to create my project but I am having a very strange issue.
When I get the JSON object back for my post, I am not able to access anything inside of the image object.
error: https://imgur.com/F35pMlQ
Full issue description:
KyleTryon/VidFireBlog#1
Looks like someone force pushed
The content model import is not working for me. There is no error message returned and the progress wheel just continues to spin. I believe there is an issue with the download-content-model.js file
I use the instructed command
npm run import-data -- --space-id YOUR_SPACE_ID --management-token YOUR_CONTENT_MANAGEMENT_ACCESS_TOKEN
Tried with multiple tokens and no luck.
Can you please verify and fix so I can complete this tutorial? Thanks!
Do I have to run the deployment script every time something changes on Contentful?
Thanks!
Currently we're doing a git clone on master... We should do a proper download of a given version.
Got this error :
? Where should the 'contentful-custom-app' folder be located? /home/muhajir/test
✔ Download and extract source code of the Contentful Custom app
✔ Installing dependencies
✔ Generating custom delivery access token with the name 'Contentful Get Started Guide'
⠙ Setting up project configuration file
events.js:182
throw er; // Unhandled 'error' event
^
Error: ENOENT: no such file or directory, open '/home/muhajir/test/contentful-custom-app/.contentful.sample.json'```
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.