Comments (7)
Your issue with authors is probably due to incorrect naming in your project. For example in your eleventy.js
where the authors
collection is generated from a glob, you are referencing a folder that no longer exists:
eleventyConfig.addCollection("authors", (collection) => {
const blogs = collection.getFilteredByGlob("posts/*.md");
If you change the posts/
folder to articles/
then the collection should be generated correctly.
Check your project for any other small inconsistencies like that, and then everything should work.
Let us know if you need any more help. And post any errors here so that we can see what's going on in your build.
Thanks!
from eleventy-netlify-boilerplate.
@danurbanowicz It is not working at all. & I'm not recieving any errors at all at runtime. This time I tried it on another repo, but it is not giving me right result, instead giving me this screen when clicking on author.
Repo: https://github.com/talmax1124/knighttimesnews-restore
from eleventy-netlify-boilerplate.
From your code it looks like you are mixing this project with another similar starter project, maybe that is where the problems are originating?
The GET error above likely points to a problem with your permalink setup in your frontmatter. i.e. the pages are being output somewhere different. The first step is to check your output directory and see what it is actually outputting there.
from eleventy-netlify-boilerplate.
@danurbanowicz I am using the https://github.com/kevin-powell/new-website repository
from eleventy-netlify-boilerplate.
I think that maybe the issue is that there is no authors folder. I don't know how your repo is generating the authors. I just have my authors in the frontmatter when making a post. @danurbanowicz
from eleventy-netlify-boilerplate.
An authors folder is not required.
The authors collection is added in eleventy.js using eleventyConfig.addCollection
It looks for the author inside each post's frontmatter and uses author.njk to paginate the collection and generate a page of posts for each author.
Hopefully this helps!
from eleventy-netlify-boilerplate.
I'm closing this issue for now but do let me know if you need me to re-open and investigate this further. Thanks!
from eleventy-netlify-boilerplate.
Related Issues (20)
- Multiple authors ? HOT 2
- How can I activate drafts? HOT 2
- Auto-redirect doesn't work HOT 1
- Images and text are not fully responsive/cut off on mobile HOT 1
- Bulky netlify-identity-widget script include HOT 3
- How was the /about page generated? HOT 1
- Add a thanks page for the contact form to redirect to after submission
- Notice: Temporary interaction limits
- Problem writing eleventy templates (more info in DEBUG output) HOT 2
- TemplatePassthroughManagerCopyError
- CMS access for private forked repo HOT 3
- MarkdownItAnchor is not defined.
- Form submissions not working HOT 5
- Use minifyCSS and minifyJS options in html-minifier instead? HOT 3
- Using TailwindCSS HOT 1
- Moving rooted templates to directories. HOT 2
- 'Invalid DateTime' in article HOT 6
- v2 beta update HOT 5
- Feature Requests
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from eleventy-netlify-boilerplate.