Git Product home page Git Product logo

Comments (10)

benbalter avatar benbalter commented on May 22, 2024

Is there a way to make something like this work with jekyll-feed?

This is not something that's currently supported. Author information must either be universal in the configuration or specific to the post.

from jekyll-feed.

silvenon avatar silvenon commented on May 22, 2024

Ok. It's not that big of a deal anyway.

from jekyll-feed.

parkr avatar parkr commented on May 22, 2024

I certainly wouldn't mind supporting something like this if we decide we think having an authors datafile is the "best practice".

from jekyll-feed.

silvenon avatar silvenon commented on May 22, 2024

Ok, I'll reopen for a possible discussion. Close if you decide against it 👍

from jekyll-feed.

sondr3 avatar sondr3 commented on May 22, 2024

Please do, it would be great to have some official best practices regarding naming stuff in your _config.yml file and so on, because right now it's a bit of a mess 😃

from jekyll-feed.

silvenon avatar silvenon commented on May 22, 2024

This seems reasonable…

config.yml:

authors:
  default:
    name: "Default"
    email: "[email protected]"
    url: "http://default.com"
  foo:
    name: "Foo"
    email: "[email protected]"
    uri: "http://foo.com"
  bar:
    name: "Bar"
    email: "[email protected]"
    uri: "http://bar.com"

_posts/my-post.md:

title: My Post
# author defaults to site.authors.default

_posts/my-other-post.md

title: My Other Post
author: foo
# maps to site.authors.foo

But I guess in order for this to make sense, it needs to be a Jekyll feature?

from jekyll-feed.

parkr avatar parkr commented on May 22, 2024

Check out jekyll/jekyll#3983. This may solve everything for you.

from jekyll-feed.

silvenon avatar silvenon commented on May 22, 2024

@parkr yes, that's perfect ❤️

Because this is really a jekyll shortcoming, not jeykll-feed's, you can close if you want.

from jekyll-feed.

eirc avatar eirc commented on May 22, 2024

As a workaround for author display names you can you the author's display name as the key in the authors yaml hash. This still won't be able to provide you with the author's email & uri for the feed since the plugin will just get the name string, it will provide you with a friendly name though:

_config.yml:

authors:
  Mr Poster:
    attribute1: value1
    attribute2: value2

_posts/my-post.md:

title: My Post
author: Mr Poster

from jekyll-feed.

pathawks avatar pathawks commented on May 22, 2024

If author data is going to be stored separately from the post, it seems that the way to do it would be with a data file, rather than cluttering up the _config.yml

from jekyll-feed.

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.