GithubHelp home page GithubHelp logo

Comments (7)

danurbanowicz avatar danurbanowicz commented on May 8, 2024

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.

talmax1124 avatar talmax1124 commented on May 8, 2024

@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.
Screen Shot 2021-09-16 at 6 47 55 PM

Repo: https://github.com/talmax1124/knighttimesnews-restore

from eleventy-netlify-boilerplate.

danurbanowicz avatar danurbanowicz commented on May 8, 2024

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.

talmax1124 avatar talmax1124 commented on May 8, 2024

@danurbanowicz I am using the https://github.com/kevin-powell/new-website repository

from eleventy-netlify-boilerplate.

talmax1124 avatar talmax1124 commented on May 8, 2024

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.

danurbanowicz avatar danurbanowicz commented on May 8, 2024

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.

danurbanowicz avatar danurbanowicz commented on May 8, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.